diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml new file mode 100644 index 00000000..b697229f --- /dev/null +++ b/.github/workflows/unit-tests.yml @@ -0,0 +1,38 @@ +name: Run DWAPI Unit Tests + +on: + push: + branches: [ dev ] + + +jobs: + build: + name: Run-Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 2.1.805 + - name: Install dependencies + run: dotnet restore Dwapi.sln + - name: Build + run: dotnet build src/Dwapi/Dwapi.csproj --configuration Release --no-restore + - name: Test + run: ls test/*/*.Tests.csproj | xargs -L 1 dotnet test + - name: Setup Angular + uses: actions/setup-node@v1 + with: + node-version: '14.x' + - run: npm install --prefix src/Dwapi + - run: npm run build --prefix src/Dwapi + + - name: Pub .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.201 + - name: Publish + run: dotnet publish src/Dwapi/Dwapi.csproj --configuration Release -o dwapi + - name: Zip Folder + run: zip -r dwapi.zip dwapi diff --git a/Dockerfile b/Dockerfile index 2999e36e..f1b85cde 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM microsoft/dotnet:2.2-aspnetcore-runtime AS base +FROM mcr.microsoft.com/dotnet/aspnet:2.1 AS base WORKDIR /app EXPOSE 5757 5753 -FROM microsoft/dotnet:2.2-sdk AS build +FROM mcr.microsoft.com/dotnet/sdk:2.1 AS build WORKDIR /src COPY src/Dwapi/Dwapi.csproj src/Dwapi/ COPY src/Dwapi.SharedKernel/Dwapi.SharedKernel.csproj src/Dwapi.SharedKernel/ @@ -25,4 +25,4 @@ RUN dotnet publish Dwapi.csproj -c Release -o /app FROM base AS final WORKDIR /app COPY --from=publish /app . -ENTRYPOINT ["dotnet", "Dwapi.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "Dwapi.dll"] diff --git a/pub-qa.bat b/pub-qa.bat new file mode 100644 index 00000000..fe449aae --- /dev/null +++ b/pub-qa.bat @@ -0,0 +1,2 @@ +docker build -t kenyahmis/dwapi:qa . +docker push kenyahmis/dwapi:qa diff --git a/pub-upi.bat b/pub-upi.bat new file mode 100644 index 00000000..b8781f5a --- /dev/null +++ b/pub-upi.bat @@ -0,0 +1,2 @@ +docker build -t kenyahmis/dwapi:upi . +docker push kenyahmis/dwapi:upi diff --git a/pub.bat b/pub.bat new file mode 100644 index 00000000..c943a0eb --- /dev/null +++ b/pub.bat @@ -0,0 +1,2 @@ +docker build -t kenyahmis/dwapi:latest . +docker push kenyahmis/dwapi:latest diff --git a/src/Dwapi.Contracts/Crs/IClientRegistry.cs b/src/Dwapi.Contracts/Crs/IClientRegistry.cs new file mode 100644 index 00000000..ee9ce930 --- /dev/null +++ b/src/Dwapi.Contracts/Crs/IClientRegistry.cs @@ -0,0 +1,48 @@ +using System; + +namespace Dwapi.Contracts.Crs +{ + public interface IClientRegistry + { + string CCCNumber { get; set;} + string NationalId { get; set;} + string Passport { get; set;} + string HudumaNumber { get; set;} + string BirthCertificateNumber { get; set;} + string AlienIdNo { get; set;} + string DrivingLicenseNumber { get; set;} + string PatientClinicNumber { get; set;} + string FirstName { get; set;} + string MiddleName { get; set;} + string LastName { get; set;} + DateTime? DateOfBirth { get; set;} + string Sex { get; set;} + string MaritalStatus { get; set;} + string Occupation { get; set;} + string HighestLevelOfEducation { get; set;} + string PhoneNumber { get; set;} + string AlternativePhoneNumber { get; set;} + string SpousePhoneNumber { get; set;} + string NameOfNextOfKin { get; set;} + string NextOfKinRelationship { get; set;} + string NextOfKinTelNo { get; set;} + string County { get; set;} + string SubCounty { get; set;} + string Ward { get; set;} + string Location { get; set;} + string Village { get; set;} + string Landmark { get; set;} + string FacilityName { get; set;} + string MFLCode { get; set;} + DateTime? DateOfInitiation { get; set;} + string TreatmentOutcome { get; set;} + DateTime? DateOfLastEncounter { get; set;} + DateTime? DateOfLastViralLoad { get; set;} + DateTime? NextAppointmentDate { get; set;} + string LastRegimen { get; set;} + string LastRegimenLine { get; set;} + string CurrentOnART { get; set;} + DateTime? DateOfHIVdiagnosis { get; set;} + string LastViralLoadResult { get; set;} + } +} \ No newline at end of file diff --git a/src/Dwapi.Contracts/Ct/IContactListing.cs b/src/Dwapi.Contracts/Ct/IContactListing.cs index b0221181..6446e0da 100644 --- a/src/Dwapi.Contracts/Ct/IContactListing.cs +++ b/src/Dwapi.Contracts/Ct/IContactListing.cs @@ -4,19 +4,20 @@ namespace Dwapi.Contracts.Ct { public interface IContactListing { - string FacilityName { get; set; } - int ? PartnerPersonID { get; set; } - string ContactAge { get; set; } - string ContactSex { get; set; } - string ContactMaritalStatus { get; set; } - string RelationshipWithPatient { get; set; } - string ScreenedForIpv { get; set; } - string IpvScreening { get; set; } - string IPVScreeningOutcome { get; set; } - string CurrentlyLivingWithIndexClient { get; set; } - string KnowledgeOfHivStatus { get; set; } - string PnsApproach { get; set; } - DateTime? Date_Created { get; set; } - DateTime? Date_Last_Modified { get; set; } + string FacilityName { get; set; } + int? PartnerPersonID { get; set; } + string ContactAge { get; set; } + string ContactSex { get; set; } + string ContactMaritalStatus { get; set; } + string RelationshipWithPatient { get; set; } + string ScreenedForIpv { get; set; } + string IpvScreening { get; set; } + string IPVScreeningOutcome { get; set; } + string CurrentlyLivingWithIndexClient { get; set; } + string KnowledgeOfHivStatus { get; set; } + string PnsApproach { get; set; } + DateTime? Date_Created { get; set; } + DateTime? Date_Last_Modified { get; set; } + int? ContactPatientPK { get; set; } } } diff --git a/src/Dwapi.Contracts/Ct/ICovid.cs b/src/Dwapi.Contracts/Ct/ICovid.cs new file mode 100644 index 00000000..f1b5c00c --- /dev/null +++ b/src/Dwapi.Contracts/Ct/ICovid.cs @@ -0,0 +1,43 @@ +using System; + +namespace Dwapi.Contracts.Ct +{ + public interface ICovid + { + string FacilityName { get; set; } + int? VisitID { get; set; } + DateTime? Covid19AssessmentDate { get; set; } + string ReceivedCOVID19Vaccine { get; set; } + DateTime? DateGivenFirstDose { get; set; } + string FirstDoseVaccineAdministered { get; set; } + DateTime? DateGivenSecondDose { get; set; } + string SecondDoseVaccineAdministered { get; set; } + string VaccinationStatus { get; set; } + string VaccineVerification { get; set; } + string BoosterGiven { get; set; } + string BoosterDose { get; set; } + DateTime? BoosterDoseDate { get; set; } + string EverCOVID19Positive { get; set; } + DateTime? COVID19TestDate { get; set; } + string PatientStatus { get; set; } + string AdmissionStatus { get; set; } + string AdmissionUnit { get; set; } + string MissedAppointmentDueToCOVID19 { get; set; } + string COVID19PositiveSinceLasVisit { get; set; } + DateTime? COVID19TestDateSinceLastVisit { get; set; } + string PatientStatusSinceLastVisit { get; set; } + string AdmissionStatusSinceLastVisit { get; set; } + DateTime? AdmissionStartDate { get; set; } + DateTime? AdmissionEndDate { get; set; } + string AdmissionUnitSinceLastVisit { get; set; } + string SupplementalOxygenReceived { get; set; } + string PatientVentilated { get; set; } + string TracingFinalOutcome { get; set; } + string CauseOfDeath { get; set; } + DateTime? Date_Created { get; set; } + DateTime? Date_Last_Modified { get; set; } + + string COVID19TestResult { get; set; } + string Sequence { get; set; } + } +} diff --git a/src/Dwapi.Contracts/Ct/IDefaulterTracing.cs b/src/Dwapi.Contracts/Ct/IDefaulterTracing.cs new file mode 100644 index 00000000..a4ab8d74 --- /dev/null +++ b/src/Dwapi.Contracts/Ct/IDefaulterTracing.cs @@ -0,0 +1,22 @@ +using System; + +namespace Dwapi.Contracts.Ct +{ + public interface IDefaulterTracing + { + string FacilityName { get; set; } + int? VisitID { get; set; } + DateTime? VisitDate { get; set; } + int? EncounterId { get; set; } + string TracingType { get; set; } + string TracingOutcome { get; set; } + int? AttemptNumber { get; set; } + string IsFinalTrace { get; set; } + string TrueStatus { get; set; } + string CauseOfDeath { get; set; } + string Comments { get; set; } + DateTime? BookingDate { get; set; } + DateTime? Date_Created { get; set; } + DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.Contracts/Ct/IPatient.cs b/src/Dwapi.Contracts/Ct/IPatient.cs index 26de845d..603a221a 100644 --- a/src/Dwapi.Contracts/Ct/IPatient.cs +++ b/src/Dwapi.Contracts/Ct/IPatient.cs @@ -4,5 +4,6 @@ public interface IPatient { string Pkv { get; set; } string Occupation { get; set; } + string NUPI { get; set; } } } diff --git a/src/Dwapi.Contracts/Ct/IStatus.cs b/src/Dwapi.Contracts/Ct/IStatus.cs index cbfd66ff..d9cb37a5 100644 --- a/src/Dwapi.Contracts/Ct/IStatus.cs +++ b/src/Dwapi.Contracts/Ct/IStatus.cs @@ -7,5 +7,11 @@ public interface IStatus string TOVerified { get; set; } DateTime? TOVerifiedDate { get; set; } DateTime? ReEnrollmentDate { get; set; } + + + string ReasonForDeath { get; set; } + string SpecificDeathReason { get; set; } + DateTime? DeathDate { get; set; } + DateTime? EffectiveDiscontinuationDate { get; set; } } } diff --git a/src/Dwapi.Contracts/Ct/IVisit.cs b/src/Dwapi.Contracts/Ct/IVisit.cs index cfa3a750..2ebc78c6 100644 --- a/src/Dwapi.Contracts/Ct/IVisit.cs +++ b/src/Dwapi.Contracts/Ct/IVisit.cs @@ -1,3 +1,5 @@ +using System; + namespace Dwapi.Contracts.Ct { public interface IVisit @@ -31,5 +33,6 @@ public interface IVisit string Abdomen {get;set;} string CNS {get;set;} string Genitourinary {get;set;} + DateTime? RefillDate { get; set; } } } diff --git a/src/Dwapi.Contracts/Mnch/IHei.cs b/src/Dwapi.Contracts/Mnch/IHei.cs index f3529707..b72f81cc 100644 --- a/src/Dwapi.Contracts/Mnch/IHei.cs +++ b/src/Dwapi.Contracts/Mnch/IHei.cs @@ -12,12 +12,12 @@ public interface IHei DateTime? ConfirmatoryPCRDate { get; set; } DateTime? BasellineVLDate { get; set; } DateTime? FinalyAntibodyDate { get; set; } - DateTime? DNAPCR1 { get; set; } - DateTime? DNAPCR2 { get; set; } - DateTime? DNAPCR3 { get; set; } - DateTime? ConfirmatoryPCR { get; set; } - DateTime? BasellineVL { get; set; } - DateTime? FinalyAntibody { get; set; } + string DNAPCR1 { get; set; } + string DNAPCR2 { get; set; } + string DNAPCR3 { get; set; } + string ConfirmatoryPCR { get; set; } + string BasellineVL { get; set; } + string FinalyAntibody { get; set; } DateTime? HEIExitDate { get; set; } string HEIHIVStatus { get; set; } string HEIExitCritearia { get; set; } diff --git a/src/Dwapi.Contracts/Mnch/IPatientMnch.cs b/src/Dwapi.Contracts/Mnch/IPatientMnch.cs index bd81cc8c..b82e9d17 100644 --- a/src/Dwapi.Contracts/Mnch/IPatientMnch.cs +++ b/src/Dwapi.Contracts/Mnch/IPatientMnch.cs @@ -20,5 +20,6 @@ public interface IPatientMnch string InSchool { get; set; } DateTime? Date_Created { get; set; } DateTime? Date_Last_Modified { get; set; } + string NUPI { get; set; } } } diff --git a/src/Dwapi.Contracts/Prep/IPatientPrep.cs b/src/Dwapi.Contracts/Prep/IPatientPrep.cs new file mode 100644 index 00000000..17a8b488 --- /dev/null +++ b/src/Dwapi.Contracts/Prep/IPatientPrep.cs @@ -0,0 +1,38 @@ +using System; + +namespace Dwapi.Contracts.Prep +{ + public interface IPatientPrep + { + string FacilityName { get; set; } + string PrepNumber { get; set; } + string HtsNumber { get; set; } + DateTime? PrepEnrollmentDate { get; set; } + string Sex { get; set; } + DateTime? DateofBirth { get; set; } + string CountyofBirth { get; set; } + string County { get; set; } + string SubCounty { get; set; } + string Location { get; set; } + string LandMark { get; set; } + string Ward { get; set; } + string ClientType { get; set; } + string ReferralPoint { get; set; } + string MaritalStatus { get; set; } + string Inschool { get; set; } + string PopulationType { get; set; } + string KeyPopulationType { get; set; } + string Refferedfrom { get; set; } + string TransferIn { get; set; } + DateTime? TransferInDate { get; set; } + string TransferFromFacility { get; set; } + DateTime? DatefirstinitiatedinPrepCare { get; set; } + DateTime? DateStartedPrEPattransferringfacility { get; set; } + string ClientPreviouslyonPrep { get; set; } + string PrevPrepReg { get; set; } + DateTime? DateLastUsedPrev { get; set; } + DateTime? Date_Created { get; set; } + DateTime? Date_Last_Modified { get; set; } + string NUPI { get; set; } + } +} diff --git a/src/Dwapi.Contracts/Prep/IPrepAdverseEvent.cs b/src/Dwapi.Contracts/Prep/IPrepAdverseEvent.cs new file mode 100644 index 00000000..cf9ccd7b --- /dev/null +++ b/src/Dwapi.Contracts/Prep/IPrepAdverseEvent.cs @@ -0,0 +1,22 @@ +using System; + +namespace Dwapi.Contracts.Prep +{ + public interface IPrepAdverseEvent + { + string FacilityName { get; set; } + string PrepNumber { get; set; } + string AdverseEvent { get; set; } + DateTime? AdverseEventStartDate { get; set; } + DateTime? AdverseEventEndDate { get; set; } + string Severity { get; set; } + DateTime? VisitDate { get; set; } + string AdverseEventActionTaken { get; set; } + string AdverseEventClinicalOutcome { get; set; } + string AdverseEventIsPregnant { get; set; } + string AdverseEventCause { get; set; } + string AdverseEventRegimen { get; set; } + DateTime? Date_Created { get; set; } + DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.Contracts/Prep/IPrepBehaviourRisk.cs b/src/Dwapi.Contracts/Prep/IPrepBehaviourRisk.cs new file mode 100644 index 00000000..666486b8 --- /dev/null +++ b/src/Dwapi.Contracts/Prep/IPrepBehaviourRisk.cs @@ -0,0 +1,32 @@ +using System; + +namespace Dwapi.Contracts.Prep +{ + public interface IPrepBehaviourRisk + { + string FacilityName { get; set; } + string PrepNumber { get; set; } + string HtsNumber { get; set; } + DateTime? VisitDate { get; set; } + int? VisitID { get; set; } + string SexPartnerHIVStatus { get; set; } + string IsHIVPositivePartnerCurrentonART { get; set; } + string IsPartnerHighrisk { get; set; } + string PartnerARTRisk { get; set; } + string ClientAssessments { get; set; } + string ClientRisk { get; set; } + string ClientWillingToTakePrep { get; set; } + string PrEPDeclineReason { get; set; } + string RiskReductionEducationOffered { get; set; } + string ReferralToOtherPrevServices { get; set; } + DateTime? FirstEstablishPartnerStatus { get; set; } + DateTime? PartnerEnrolledtoCCC { get; set; } + string HIVPartnerCCCnumber { get; set; } + DateTime? HIVPartnerARTStartDate { get; set; } + string MonthsknownHIVSerodiscordant { get; set; } + string SexWithoutCondom { get; set; } + string NumberofchildrenWithPartner { get; set; } + DateTime? Date_Created { get; set; } + DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.Contracts/Prep/IPrepCareTermination.cs b/src/Dwapi.Contracts/Prep/IPrepCareTermination.cs new file mode 100644 index 00000000..d27f775f --- /dev/null +++ b/src/Dwapi.Contracts/Prep/IPrepCareTermination.cs @@ -0,0 +1,16 @@ +using System; + +namespace Dwapi.Contracts.Prep +{ + public interface IPrepCareTermination + { + string FacilityName { get; set; } + string PrepNumber { get; set; } + string HtsNumber { get; set; } + DateTime? ExitDate { get; set; } + string ExitReason { get; set; } + DateTime? DateOfLastPrepDose { get; set; } + DateTime? Date_Created { get; set; } + DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.Contracts/Prep/IPrepLab.cs b/src/Dwapi.Contracts/Prep/IPrepLab.cs new file mode 100644 index 00000000..84cbb737 --- /dev/null +++ b/src/Dwapi.Contracts/Prep/IPrepLab.cs @@ -0,0 +1,19 @@ +using System; + +namespace Dwapi.Contracts.Prep +{ + public interface IPrepLab + { + string FacilityName { get; set; } + string PrepNumber { get; set; } + string HtsNumber { get; set; } + int? VisitID { get; set; } + string TestName { get; set; } + string TestResult { get; set; } + DateTime? SampleDate { get; set; } + DateTime? TestResultDate { get; set; } + string Reason { get; set; } + DateTime? Date_Created { get; set; } + DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.Contracts/Prep/IPrepPharmacy.cs b/src/Dwapi.Contracts/Prep/IPrepPharmacy.cs new file mode 100644 index 00000000..a6eb72cf --- /dev/null +++ b/src/Dwapi.Contracts/Prep/IPrepPharmacy.cs @@ -0,0 +1,17 @@ +using System; + +namespace Dwapi.Contracts.Prep +{ + public interface IPrepPharmacy + { + string FacilityName { get; set; } + string PrepNumber { get; set; } + string HtsNumber { get; set; } + int? VisitID { get; set; } + string RegimenPrescribed { get; set; } + DateTime? DispenseDate { get; set; } + decimal? Duration { get; set; } + DateTime? Date_Created { get; set; } + DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.Contracts/Prep/IPrepVisit.cs b/src/Dwapi.Contracts/Prep/IPrepVisit.cs new file mode 100644 index 00000000..6160cb89 --- /dev/null +++ b/src/Dwapi.Contracts/Prep/IPrepVisit.cs @@ -0,0 +1,59 @@ +using System; + +namespace Dwapi.Contracts.Prep +{ + public interface IPrepVisit + { + string FacilityName { get; set; } + string PrepNumber { get; set; } + string HtsNumber { get; set; } + string EncounterId { get; set; } + string VisitID { get; set; } + DateTime? VisitDate { get; set; } + string BloodPressure { get; set; } + string Temperature { get; set; } + decimal? Weight { get; set; } + decimal? Height { get; set; } + decimal? BMI { get; set; } + string STIScreening { get; set; } + string STISymptoms { get; set; } + string STITreated { get; set; } + string Circumcised { get; set; } + string VMMCReferral { get; set; } + DateTime? LMP { get; set; } + string MenopausalStatus { get; set; } + string PregnantAtThisVisit { get; set; } + DateTime? EDD { get; set; } + string PlanningToGetPregnant { get; set; } + string PregnancyPlanned { get; set; } + string PregnancyEnded { get; set; } + DateTime? PregnancyEndDate { get; set; } + string PregnancyOutcome { get; set; } + string BirthDefects { get; set; } + string Breastfeeding { get; set; } + string FamilyPlanningStatus { get; set; } + string FPMethods { get; set; } + string AdherenceDone { get; set; } + string AdherenceOutcome { get; set; } + string AdherenceReasons { get; set; } + string SymptomsAcuteHIV { get; set; } + string ContraindicationsPrep { get; set; } + string PrepTreatmentPlan { get; set; } + string PrepPrescribed { get; set; } + string RegimenPrescribed { get; set; } + string MonthsPrescribed { get; set; } + string CondomsIssued { get; set; } + string Tobegivennextappointment { get; set; } + string Reasonfornotgivingnextappointment { get; set; } + string HepatitisBPositiveResult { get; set; } + string HepatitisCPositiveResult { get; set; } + string VaccinationForHepBStarted { get; set; } + string TreatedForHepB { get; set; } + string VaccinationForHepCStarted { get; set; } + string TreatedForHepC { get; set; } + DateTime? NextAppointment { get; set; } + string ClinicalNotes { get; set; } + DateTime? Date_Created { get; set; } + DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Cleaner/Crs/ClearCrsExtracts.cs b/src/Dwapi.ExtractsManagement.Core/Cleaner/Crs/ClearCrsExtracts.cs new file mode 100644 index 00000000..bbd1e01e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Cleaner/Crs/ClearCrsExtracts.cs @@ -0,0 +1,40 @@ +using System; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Crs; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Crs; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Crs; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Cleaner.Crs +{ + public class ClearCrsExtracts:IClearCrsExtracts + { + private readonly ITempClientRegistryExtractRepository _repository; + private readonly IExtractHistoryRepository _historyRepository; + + public ClearCrsExtracts(ITempClientRegistryExtractRepository repository, IExtractHistoryRepository historyRepository) + { + _repository = repository; + _historyRepository = historyRepository; + } + + public async Task Clean(Guid extractId) + { + _historyRepository.ClearHistory(extractId); + + DomainEvents.Dispatch(new CrsNotification(new ExtractProgress(nameof(ClientRegistryExtract), "clearing..."))); + DomainEvents.Dispatch(new CrsStatusNotification(extractId, ExtractStatus.Clearing)); + + await _repository.Clear(); + + + DomainEvents.Dispatch(new CrsStatusNotification(extractId, ExtractStatus.Cleared)); + } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Cleaner/Hts/ClearHtsExtracts.cs b/src/Dwapi.ExtractsManagement.Core/Cleaner/Hts/ClearHtsExtracts.cs index 123bc771..dec0937c 100644 --- a/src/Dwapi.ExtractsManagement.Core/Cleaner/Hts/ClearHtsExtracts.cs +++ b/src/Dwapi.ExtractsManagement.Core/Cleaner/Hts/ClearHtsExtracts.cs @@ -39,6 +39,7 @@ public async Task Clear(List extractIds) DomainEvents.Dispatch(new HtsNotification(new ExtractProgress(nameof(HtsPartnerTracing) + "Extracts", "clearing..."))); DomainEvents.Dispatch(new HtsNotification(new ExtractProgress(nameof(HtsClientLinkage) + "Extracts", "clearing..."))); DomainEvents.Dispatch(new HtsNotification(new ExtractProgress(nameof(HtsClients) + "Extracts", "clearing..."))); + DomainEvents.Dispatch(new HtsNotification(new ExtractProgress(nameof(HtsEligibilityExtract) + "Extracts", "clearing..."))); foreach (var extractId in extractIds) diff --git a/src/Dwapi.ExtractsManagement.Core/Cleaner/Prep/ClearPrepExtracts.cs b/src/Dwapi.ExtractsManagement.Core/Cleaner/Prep/ClearPrepExtracts.cs new file mode 100644 index 00000000..28b4ade3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Cleaner/Prep/ClearPrepExtracts.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Utilities; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Cleaner.Prep +{ + public class ClearPrepExtracts : IClearPrepExtracts + { + private readonly ITempPatientPrepExtractRepository _tempPatientExtractRepository; + private readonly IExtractHistoryRepository _historyRepository; + private readonly IValidatorRepository _validatorRepository; + + public ClearPrepExtracts(ITempPatientPrepExtractRepository tempPatientExtractRepository, IExtractHistoryRepository historyRepository, IValidatorRepository validatorRepository) + { + _tempPatientExtractRepository = tempPatientExtractRepository; + _historyRepository = historyRepository; + _validatorRepository = validatorRepository; + } + + public async Task Clear(List extractIds) + { + Log.Debug($"Executing ClearPrepExtracts command..."); + + foreach (var extractId in extractIds) + { + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PatientPrepExtract), + nameof(ExtractStatus.Clearing), + 0, 0, 0, 0, 0))); + } + + await _historyRepository.ClearHistory(extractIds); + _validatorRepository.ClearByDocket("PREP"); + await _tempPatientExtractRepository.Clear(); + + + foreach (var extractId in extractIds) + { + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PatientPrepExtract), + nameof(ExtractStatus.Cleared), + 0, 0, 0, 0, 0))); + } + + return 1; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Crs/ExtractClientRegistryExtractHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Crs/ExtractClientRegistryExtractHandler.cs new file mode 100644 index 00000000..8f93be37 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Crs/ExtractClientRegistryExtractHandler.cs @@ -0,0 +1,50 @@ +using System.Threading; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Crs; +using Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Crs; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Crs; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Crs; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Crs; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Crs +{ + public class ExtractClientRegistryExtractHandler : IRequestHandler + { + private readonly IClientRegistryExtractSourceExtractor _clientRegistrySourceExtractor; + private readonly IClientRegistryExtractValidator _clientRegistryValidator; + private readonly IClientRegistryExtractLoader _clientRegistryLoader; + private readonly IClearCrsExtracts _clearExtracts; + + public ExtractClientRegistryExtractHandler(IClientRegistryExtractSourceExtractor clientRegistrySourceExtractor, IClientRegistryExtractValidator clientRegistryValidator, IClientRegistryExtractLoader clientRegistryLoader, IClearCrsExtracts clearExtracts) + { + _clientRegistrySourceExtractor = clientRegistrySourceExtractor; + _clientRegistryValidator = clientRegistryValidator; + _clientRegistryLoader = clientRegistryLoader; + _clearExtracts = clearExtracts; + } + + public async Task Handle(ExtractClientRegistryExtract request, CancellationToken cancellationToken) + { + // clear + await _clearExtracts.Clean(request.Extract.Id); + + // extract + int found = await _clientRegistrySourceExtractor.Extract(request.Extract, request.DatabaseProtocol); + + DomainEvents.Dispatch(new CrsNotification( new ExtractProgress(nameof(ClientRegistryExtract), "validating..."))); + + // await _clientRegistryValidator.Validate(); + + DomainEvents.Dispatch(new CrsNotification(new ExtractProgress(nameof(ClientRegistryExtract), "loading...", found, 0, 0, 0, 0))); + int loaded = await _clientRegistryLoader.Load(request.Extract.Id, found, false); + DomainEvents.Dispatch(new CrsNotification(new ExtractProgress(nameof(ClientRegistryExtract), "loaded", found, loaded, found-loaded, loaded, 0))); + //notify loaded + return true; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Dwh/ExtractCovidHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Dwh/ExtractCovidHandler.cs new file mode 100644 index 00000000..4e3c730b --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Dwh/ExtractCovidHandler.cs @@ -0,0 +1,63 @@ +using System.Threading; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Utilities; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Dwh +{ + public class ExtractCovidHandler :IRequestHandler + { + private readonly ICovidSourceExtractor _CovidSourceExtractor; + private readonly IExtractValidator _extractValidator; + private readonly ICovidLoader _CovidLoader; + private readonly IClearDwhExtracts _clearDwhExtracts; + private readonly IExtractHistoryRepository _extractHistoryRepository; + + public ExtractCovidHandler(ICovidSourceExtractor CovidSourceExtractor, IExtractValidator extractValidator, ICovidLoader CovidLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository) + { + _CovidSourceExtractor = CovidSourceExtractor; + _extractValidator = extractValidator; + _CovidLoader = CovidLoader; + _clearDwhExtracts = clearDwhExtracts; + _extractHistoryRepository = extractHistoryRepository; + } + + public async Task Handle(ExtractCovid request, CancellationToken cancellationToken) + { + //Extract + int found = await _CovidSourceExtractor.Extract(request.Extract, request.DatabaseProtocol); + + //Validate + await _extractValidator.Validate(request.Extract.Id, found, nameof(CovidExtract), $"{nameof(TempCovidExtract)}s"); + + //Load + int loaded = await _CovidLoader.Load(request.Extract.Id, found, request.DatabaseProtocol.SupportsDifferential); + + int rejected = + _extractHistoryRepository.ProcessRejected(request.Extract.Id, found - loaded, request.Extract); + + + _extractHistoryRepository.ProcessExcluded(request.Extract.Id, rejected, request.Extract); + + //notify loaded + DomainEvents.Dispatch( + new ExtractActivityNotification(request.Extract.Id, new DwhProgress( + nameof(CovidExtract), + nameof(ExtractStatus.Loaded), + found, loaded, rejected, loaded, 0))); + + return true; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Dwh/ExtractDefaulterTracingHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Dwh/ExtractDefaulterTracingHandler.cs new file mode 100644 index 00000000..d79c4722 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Dwh/ExtractDefaulterTracingHandler.cs @@ -0,0 +1,63 @@ +using System.Threading; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Utilities; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Dwh +{ + public class ExtractDefaulterTracingHandler :IRequestHandler + { + private readonly IDefaulterTracingSourceExtractor _DefaulterTracingSourceExtractor; + private readonly IExtractValidator _extractValidator; + private readonly IDefaulterTracingLoader _DefaulterTracingLoader; + private readonly IClearDwhExtracts _clearDwhExtracts; + private readonly IExtractHistoryRepository _extractHistoryRepository; + + public ExtractDefaulterTracingHandler(IDefaulterTracingSourceExtractor DefaulterTracingSourceExtractor, IExtractValidator extractValidator, IDefaulterTracingLoader DefaulterTracingLoader, IClearDwhExtracts clearDwhExtracts, IExtractHistoryRepository extractHistoryRepository) + { + _DefaulterTracingSourceExtractor = DefaulterTracingSourceExtractor; + _extractValidator = extractValidator; + _DefaulterTracingLoader = DefaulterTracingLoader; + _clearDwhExtracts = clearDwhExtracts; + _extractHistoryRepository = extractHistoryRepository; + } + + public async Task Handle(ExtractDefaulterTracing request, CancellationToken cancellationToken) + { + //Extract + int found = await _DefaulterTracingSourceExtractor.Extract(request.Extract, request.DatabaseProtocol); + + //Validate + await _extractValidator.Validate(request.Extract.Id, found, nameof(DefaulterTracingExtract), $"{nameof(TempDefaulterTracingExtract)}s"); + + //Load + int loaded = await _DefaulterTracingLoader.Load(request.Extract.Id, found, request.DatabaseProtocol.SupportsDifferential); + + int rejected = + _extractHistoryRepository.ProcessRejected(request.Extract.Id, found - loaded, request.Extract); + + + _extractHistoryRepository.ProcessExcluded(request.Extract.Id, rejected, request.Extract); + + //notify loaded + DomainEvents.Dispatch( + new ExtractActivityNotification(request.Extract.Id, new DwhProgress( + nameof(DefaulterTracingExtract), + nameof(ExtractStatus.Loaded), + found, loaded, rejected, loaded, 0))); + + return true; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHTSClientHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHTSClientHandler.cs index dd620f8a..241735e7 100644 --- a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHTSClientHandler.cs +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHTSClientHandler.cs @@ -1,4 +1,5 @@ -using System.Threading; +using System; +using System.Threading; using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Commands.Hts; using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Hts; @@ -15,6 +16,7 @@ namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Hts { + [Obsolete("No longer Used")] public class ExtractHTSClientHandler :IRequestHandler { private readonly IHTSClientSourceExtractor _patientSourceExtractor; diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHTSClientLinkageHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHTSClientLinkageHandler.cs index 6cd79889..3009dbd3 100644 --- a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHTSClientLinkageHandler.cs +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHTSClientLinkageHandler.cs @@ -1,4 +1,5 @@ -using System.Threading; +using System; +using System.Threading; using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Commands.Hts; using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Hts; @@ -14,6 +15,7 @@ namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Hts { + [Obsolete("No longer Used")] public class ExtractHTSClientLinkageHandler : IRequestHandler { private readonly IHTSClientLinkageSourceExtractor _patientAdverseEventSourceExtractor; diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHTSClientPartnerHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHTSClientPartnerHandler.cs index 83e15691..f4914cf3 100644 --- a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHTSClientPartnerHandler.cs +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHTSClientPartnerHandler.cs @@ -1,4 +1,5 @@ -using System.Threading; +using System; +using System.Threading; using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Commands.Hts; using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Hts; @@ -14,6 +15,7 @@ namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Hts { + [Obsolete("No longer Used")] public class ExtractHTSClientPartnerHandler :IRequestHandler { private readonly IHTSClientPartnerSourceExtractor _patientLaboratorySourceExtractor; diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHtsEligibilityHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHtsEligibilityHandler.cs new file mode 100644 index 00000000..4a4fe30d --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Hts/ExtractHtsEligibilityHandler.cs @@ -0,0 +1,67 @@ +using System.Threading; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Hts; +using Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Hts; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Hts; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Hts; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Hts; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Hts; +using Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Hts +{ + public class ExtractHtsEligibilityHandler : IRequestHandler + { + private readonly IHtsEligibilityExtractSourceExtractor _patientSourceExtractor; + private readonly IHtsExtractValidator _extractValidator; + private readonly IHtsEligibilityExtractLoader _patientLoader; + private readonly IClearHtsExtracts _clearDwhExtracts; + private readonly ITempHtsEligibilityExtractRepository _tempPatientExtractRepository; + private readonly IExtractHistoryRepository _extractHistoryRepository; + + public ExtractHtsEligibilityHandler(IHtsEligibilityExtractSourceExtractor patientSourceExtractor, IHtsExtractValidator extractValidator, IHtsEligibilityExtractLoader patientLoader, IClearHtsExtracts clearDwhExtracts, ITempHtsEligibilityExtractRepository tempPatientExtractRepository, IExtractHistoryRepository extractHistoryRepository) + { + _patientSourceExtractor = patientSourceExtractor; + _extractValidator = extractValidator; + _patientLoader = patientLoader; + _clearDwhExtracts = clearDwhExtracts; + _tempPatientExtractRepository = tempPatientExtractRepository; + _extractHistoryRepository = extractHistoryRepository; + } + + public async Task Handle(ExtractHtsEligibilityExtract request, CancellationToken cancellationToken) + { + + //Extract + int found = await _patientSourceExtractor.Extract(request.Extract, request.DatabaseProtocol); + + + //Validate + await _extractValidator.Validate(request.Extract.Id, found, "HtsEligibilityExtracts", "TempHtsEligibilityExtracts"); + + //Load + int loaded = await _patientLoader.Load(request.Extract.Id, found, false); + + int rejected = + _extractHistoryRepository.ProcessRejected(request.Extract.Id, found - loaded, request.Extract); + + + _extractHistoryRepository.ProcessExcluded(request.Extract.Id, rejected, request.Extract); + + //notify loaded + DomainEvents.Dispatch( + new HtsExtractActivityNotification(request.Extract.Id, new ExtractProgress( + nameof(HtsEligibilityExtract), + nameof(ExtractStatus.Loaded), + found, loaded, rejected, loaded, 0))); + + return true; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/LoadFromEmrHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/LoadFromEmrHandler.cs index ca9909d5..aef04dcc 100644 --- a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/LoadFromEmrHandler.cs +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/LoadFromEmrHandler.cs @@ -56,6 +56,9 @@ private async Task ExtractAll(LoadFromEmrCommand request, CancellationToke var ts5 = new List>(); var ts6 = new List>(); + var ts7 = new List>(); + var ts8 = new List>(); + // ExtractPatientART var patientArtProfile = request.Extracts.FirstOrDefault(x => x.Extract.Name == "PatientArtExtract"); if (null != patientArtProfile) @@ -220,7 +223,7 @@ private async Task ExtractAll(LoadFromEmrCommand request, CancellationToke ts5.Add( _mediator.Send(gbvScreeningCommand, cancellationToken)); } - // ExtractPatientVisit + // ExtractIpt var iptProfile = request.Extracts.FirstOrDefault(x => x.Extract.Name == "IptExtract"); if (null != iptProfile) { @@ -257,6 +260,30 @@ private async Task ExtractAll(LoadFromEmrCommand request, CancellationToke ts6.Add( _mediator.Send(ovcCommand, cancellationToken)); } + // ExtractCovid + var covidProfile = request.Extracts.FirstOrDefault(x => x.Extract.Name == "CovidExtract"); + if (null != covidProfile) + { + var covidCommand = new ExtractCovid() + { + Extract = covidProfile?.Extract, + DatabaseProtocol = covidProfile?.DatabaseProtocol + }; + ts7.Add( _mediator.Send(covidCommand, cancellationToken)); + } + + // ExtractDefaulterTracing + var defaulterTracingProfile = request.Extracts.FirstOrDefault(x => x.Extract.Name == "DefaulterTracingExtract"); + if (null != defaulterTracingProfile) + { + var defaulterTracingCommand = new ExtractDefaulterTracing() + { + Extract = defaulterTracingProfile?.Extract, + DatabaseProtocol = defaulterTracingProfile?.DatabaseProtocol + }; + ts8.Add( _mediator.Send(defaulterTracingCommand, cancellationToken)); + } + var result1 = await Task.WhenAll(ts1); var result2 = await Task.WhenAll(ts2); var result3 = await Task.WhenAll(ts3); @@ -264,6 +291,9 @@ private async Task ExtractAll(LoadFromEmrCommand request, CancellationToke var result5 = await Task.WhenAll(ts5); var result6 = await Task.WhenAll(ts6); + var result7 = await Task.WhenAll(ts7); + var result8 = await Task.WhenAll(ts8); + var result = new List(); result.AddRange(result1); @@ -273,6 +303,9 @@ private async Task ExtractAll(LoadFromEmrCommand request, CancellationToke result.AddRange(result5); result.AddRange(result6); + result.AddRange(result7); + result.AddRange(result8); + return result.All(x => x); } } diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/LoadHtsFromEmrCommandHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/LoadHtsFromEmrCommandHandler.cs index 06903cd6..85c502a5 100644 --- a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/LoadHtsFromEmrCommandHandler.cs +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/LoadHtsFromEmrCommandHandler.cs @@ -48,7 +48,8 @@ public async Task Handle(LoadHtsFromEmrCommand request, CancellationToken private async Task ExtractAll(LoadHtsFromEmrCommand request, CancellationToken cancellationToken) { - Task ClientTestTask = null, TestKitTask = null, ClientTracingTask = null, PartnerTracingTask = null, PNSTask = null, ClientLinkageTask = null; + Task ClientTestTask = null, TestKitTask = null, ClientTracingTask = null, PartnerTracingTask = null, + PNSTask = null, ClientLinkageTask = null, HtsEligibilityExtractTask = null; // HtsClientTestExtract var HtsClientTestExtractProfile = request.Extracts.FirstOrDefault(x => x.Extract.Name == "HtsClientTests"); @@ -121,9 +122,23 @@ private async Task ExtractAll(LoadHtsFromEmrCommand request, CancellationT }; ClientLinkageTask = _mediator.Send(command, cancellationToken); } + + // HtsEligibilityExtract + var HtsEligibilityExtractProfile = request.Extracts.FirstOrDefault(x => x.Extract.Name == "HtsEligibilityExtract"); + if (null != HtsEligibilityExtractProfile) + { + var command = new ExtractHtsEligibilityExtract() + { + Extract = HtsEligibilityExtractProfile?.Extract, + DatabaseProtocol = HtsEligibilityExtractProfile?.DatabaseProtocol + }; + HtsEligibilityExtractTask = _mediator.Send(command, cancellationToken); + } + + // await all tasks - var ts = new List> { ClientTestTask, TestKitTask, ClientTracingTask, PartnerTracingTask, PNSTask, ClientLinkageTask }; + var ts = new List> { ClientTestTask, TestKitTask, ClientTracingTask, PartnerTracingTask, PNSTask, ClientLinkageTask, HtsEligibilityExtractTask }; var result = await Task.WhenAll(ts); return result.All(x=>x); diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/LoadPrepFromEmrHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/LoadPrepFromEmrHandler.cs new file mode 100644 index 00000000..6ad29de5 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/LoadPrepFromEmrHandler.cs @@ -0,0 +1,149 @@ +using Dwapi.ExtractsManagement.Core.Commands; +using Dwapi.ExtractsManagement.Core.Commands.Dwh; +using MediatR; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Prep; + +namespace Dwapi.ExtractsManagement.Core.ComandHandlers +{ + public class LoadPrepFromEmrHandler : IRequestHandler + { + private IMediator _mediator; + + public LoadPrepFromEmrHandler(IMediator mediator) + { + _mediator = mediator; + } + + public async Task Handle(LoadPrepFromEmrCommand request, CancellationToken cancellationToken) + { + var extractIds = request.Extracts.Select(x => x.Extract.Id).ToList(); + + await _mediator.Send(new ClearAllPrepExtracts(extractIds), cancellationToken); + + + var patientProfile = request.Extracts.FirstOrDefault(x => x.Extract.IsPriority); + //Generate extract patient command + if (patientProfile != null) + { + var extractPatient = new ExtractPatientPrep() + { + //todo check if extracts from all emrs are loaded + Extract = patientProfile.Extract, + DatabaseProtocol = patientProfile.DatabaseProtocol + }; + + var result = await _mediator.Send(extractPatient, cancellationToken); + + if (!result) + { + return false; + } + } + + return await ExtractAll(request, cancellationToken); + } + + private async Task ExtractAll(LoadPrepFromEmrCommand request, CancellationToken cancellationToken) + { + var ts1 = new List>(); + var ts2 = new List>(); + var ts3 = new List>(); + var ts4 = new List>(); + + // ExtractPrepAdverseEventExtract + var patientArtProfile = request.Extracts.FirstOrDefault(x => x.Extract.Name == "PrepAdverseEventExtract"); + if (null != patientArtProfile) + { + var patientArtCommand = new ExtractPrepAdverseEvent() + { + Extract = patientArtProfile?.Extract, + DatabaseProtocol = patientArtProfile?.DatabaseProtocol + }; + ts1.Add(_mediator.Send(patientArtCommand, cancellationToken)); + } + + // ExtractPrepArtExtract + var patientBaselinesProfile = + request.Extracts.FirstOrDefault(x => x.Extract.Name == "PrepBehaviourRiskExtract"); + if (null != patientBaselinesProfile) + { + var patientBaselinesCommand = new ExtractPrepBehaviourRisk() + { + Extract = patientBaselinesProfile?.Extract, + DatabaseProtocol = patientBaselinesProfile?.DatabaseProtocol + }; + ts1.Add( _mediator.Send(patientBaselinesCommand, cancellationToken)); + } + + // ExtractAncVisitExtract + var patientLaboratoryProfile = request.Extracts.FirstOrDefault(x => x.Extract.Name == "PrepCareTerminationExtract"); + if (null != patientLaboratoryProfile) + { + var patientLaboratoryCommand = new ExtractPrepCareTermination() + { + Extract = patientLaboratoryProfile?.Extract, + DatabaseProtocol = patientLaboratoryProfile?.DatabaseProtocol + }; + ts2.Add( _mediator.Send(patientLaboratoryCommand, cancellationToken)); + } + + // ExtractPrepVisitExtract + var allergiesChronicIllnessProfile = + request.Extracts.FirstOrDefault(x => x.Extract.Name == "PrepVisitExtract"); + if (null != allergiesChronicIllnessProfile) + { + var allergiesChronicIllnessCommand = new ExtractPrepVisit() + { + Extract = allergiesChronicIllnessProfile?.Extract, + DatabaseProtocol = allergiesChronicIllnessProfile?.DatabaseProtocol + }; + ts2.Add(_mediator.Send(allergiesChronicIllnessCommand, cancellationToken)); + } + + // ExtractPrepPharmacyExtract + var contactListingProfile = request.Extracts.FirstOrDefault(x => x.Extract.Name == "PrepPharmacyExtract"); + if (null != contactListingProfile) + { + var contactListingCommand = new ExtractPrepPharmacy() + { + Extract = contactListingProfile?.Extract, + DatabaseProtocol = contactListingProfile?.DatabaseProtocol + }; + ts3.Add(_mediator.Send(contactListingCommand, cancellationToken)); + } + + // ExtractPrepLabExtract + var depressionScreeningProfile = + request.Extracts.FirstOrDefault(x => x.Extract.Name == "PrepLabExtract"); + if (null != depressionScreeningProfile) + { + var depressionScreeningCommand = new ExtractPrepLab() + { + Extract = depressionScreeningProfile?.Extract, + DatabaseProtocol = depressionScreeningProfile?.DatabaseProtocol + }; + ts4.Add( _mediator.Send(depressionScreeningCommand, cancellationToken)); + } + + + + var result1 = await Task.WhenAll(ts1); + var result2 = await Task.WhenAll(ts2); + var result3 = await Task.WhenAll(ts3); + var result4 = await Task.WhenAll(ts4); + + var result = new List(); + + result.AddRange(result1); + result.AddRange(result2); + result.AddRange(result3); + result.AddRange(result4); + + return result.All(x => x); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ClearAllPrepExtractsHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ClearAllPrepExtractsHandler.cs new file mode 100644 index 00000000..14bc0c53 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ClearAllPrepExtractsHandler.cs @@ -0,0 +1,26 @@ +using System.Threading; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Hts; +using Dwapi.ExtractsManagement.Core.Commands.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Hts; +using Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Prep; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Prep +{ + public class ClearAllPrepExtractsHandler : IRequestHandler + { + private readonly IClearPrepExtracts _clearPrepExtracts; + + public ClearAllPrepExtractsHandler(IClearPrepExtracts clearPrepExtracts) + { + _clearPrepExtracts = clearPrepExtracts; + } + + public async Task Handle(ClearAllPrepExtracts request, CancellationToken cancellationToken) + { + await _clearPrepExtracts.Clear(request.ExtractIds); + return true; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPatientPrepHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPatientPrepHandler.cs new file mode 100644 index 00000000..5928e738 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPatientPrepHandler.cs @@ -0,0 +1,91 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Utilities; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Prep +{ + public class ExtractPatientPrepHandler :IRequestHandler + { + private readonly IPatientPrepSourceExtractor _patientSourceExtractor; + private readonly IPrepExtractValidator _extractValidator; + private readonly IPatientPrepLoader _patientLoader; + private readonly ITempPatientPrepExtractRepository _tempPatientPrepExtractRepository; + private readonly IExtractHistoryRepository _extractHistoryRepository; + + public ExtractPatientPrepHandler(IPatientPrepSourceExtractor patientSourceExtractor, IPrepExtractValidator extractValidator, IPatientPrepLoader patientLoader, ITempPatientPrepExtractRepository tempPatientPrepExtractRepository, IExtractHistoryRepository extractHistoryRepository) + { + _patientSourceExtractor = patientSourceExtractor; + _extractValidator = extractValidator; + _patientLoader = patientLoader; + _tempPatientPrepExtractRepository = tempPatientPrepExtractRepository; + _extractHistoryRepository = extractHistoryRepository; + } + + public async Task Handle(ExtractPatientPrep request, CancellationToken cancellationToken) + { + + //Extract + int found = await _patientSourceExtractor.Extract(request.Extract, request.DatabaseProtocol); + + //TODO Check for duplicate patients with SITE CODE + var patientKeys = _tempPatientPrepExtractRepository.GetAll().Select(k => k.PatientPK); + var distinct = new HashSet(); + var duplicates = new HashSet(); + foreach (var key in patientKeys) + { + if (!distinct.Add(key)) + duplicates.Add(key); + } + + if (duplicates.Any()) + { + var readDuplicates = string.Join(", ", duplicates.ToArray()); + throw new DuplicatePatientPrepException($"Duplicate patient(s) with PatientPK(s) {readDuplicates} found"); + } + + //Validate + await _extractValidator.Validate(request.Extract.Id, found, nameof(PatientPrepExtract), $"{nameof(TempPatientPrepExtract)}s"); + + //Load + int loaded = await _patientLoader.Load(request.Extract.Id, found, request.DatabaseProtocol.SupportsDifferential); + + int rejected = + _extractHistoryRepository.ProcessRejected(request.Extract.Id, found - loaded, request.Extract); + + + // _extractHistoryRepository.ProcessExcluded(request.Extract.Id, rejected,0); + _extractHistoryRepository.ProcessExcluded(request.Extract.Id, rejected,request.Extract); + + //notify loaded + DomainEvents.Dispatch( + new PrepExtractActivityNotification(request.Extract.Id, new DwhProgress( + nameof(PatientPrepExtract), + nameof(ExtractStatus.Loaded), + found, loaded, rejected, loaded, 0))); + + return true; + } + } + + public class DuplicatePatientPrepException : Exception + { + public DuplicatePatientPrepException(string msg) : base(msg) { } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepAdverseEventHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepAdverseEventHandler.cs new file mode 100644 index 00000000..98c20f5e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepAdverseEventHandler.cs @@ -0,0 +1,62 @@ +using System.Threading; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Utilities; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Prep +{ + public class ExtractPrepAdverseEventHandler :IRequestHandler + { + private readonly IPrepAdverseEventSourceExtractor _PrepAdverseEventSourceExtractor; + private readonly IPrepExtractValidator _extractValidator; + private readonly IPrepAdverseEventLoader _PrepAdverseEventLoader; + private readonly IExtractHistoryRepository _extractHistoryRepository; + + public ExtractPrepAdverseEventHandler(IPrepAdverseEventSourceExtractor PrepAdverseEventSourceExtractor, IPrepExtractValidator extractValidator, IPrepAdverseEventLoader PrepAdverseEventLoader, IExtractHistoryRepository extractHistoryRepository) + { + _PrepAdverseEventSourceExtractor = PrepAdverseEventSourceExtractor; + _extractValidator = extractValidator; + _PrepAdverseEventLoader = PrepAdverseEventLoader; + _extractHistoryRepository = extractHistoryRepository; + } + + public async Task Handle(ExtractPrepAdverseEvent request, CancellationToken cancellationToken) + { + //Extract + int found = await _PrepAdverseEventSourceExtractor.Extract(request.Extract, request.DatabaseProtocol); + + //Validate + await _extractValidator.Validate(request.Extract.Id, found, nameof(PrepAdverseEventExtract), $"{nameof(TempPrepAdverseEventExtract)}s"); + + //Load + int loaded = await _PrepAdverseEventLoader.Load(request.Extract.Id, found, request.DatabaseProtocol.SupportsDifferential); + + int rejected = + _extractHistoryRepository.ProcessRejected(request.Extract.Id, found - loaded, request.Extract); + + + _extractHistoryRepository.ProcessExcluded(request.Extract.Id, rejected, request.Extract); + + //notify loaded + DomainEvents.Dispatch( + new PrepExtractActivityNotification(request.Extract.Id, new DwhProgress( + nameof(PrepAdverseEventExtract), + nameof(ExtractStatus.Loaded), + found, loaded, rejected, loaded, 0))); + + return true; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepBehaviourRiskHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepBehaviourRiskHandler.cs new file mode 100644 index 00000000..f49de644 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepBehaviourRiskHandler.cs @@ -0,0 +1,62 @@ +using System.Threading; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Utilities; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Prep +{ + public class ExtractPrepBehaviourRiskHandler :IRequestHandler + { + private readonly IPrepBehaviourRiskSourceExtractor _PrepBehaviourRiskSourceExtractor; + private readonly IPrepExtractValidator _extractValidator; + private readonly IPrepBehaviourRiskLoader _PrepBehaviourRiskLoader; + private readonly IExtractHistoryRepository _extractHistoryRepository; + + public ExtractPrepBehaviourRiskHandler(IPrepBehaviourRiskSourceExtractor PrepBehaviourRiskSourceExtractor, IPrepExtractValidator extractValidator, IPrepBehaviourRiskLoader PrepBehaviourRiskLoader, IExtractHistoryRepository extractHistoryRepository) + { + _PrepBehaviourRiskSourceExtractor = PrepBehaviourRiskSourceExtractor; + _extractValidator = extractValidator; + _PrepBehaviourRiskLoader = PrepBehaviourRiskLoader; + _extractHistoryRepository = extractHistoryRepository; + } + + public async Task Handle(ExtractPrepBehaviourRisk request, CancellationToken cancellationToken) + { + //Extract + int found = await _PrepBehaviourRiskSourceExtractor.Extract(request.Extract, request.DatabaseProtocol); + + //Validate + await _extractValidator.Validate(request.Extract.Id, found, nameof(PrepBehaviourRiskExtract), $"{nameof(TempPrepBehaviourRiskExtract)}s"); + + //Load + int loaded = await _PrepBehaviourRiskLoader.Load(request.Extract.Id, found, request.DatabaseProtocol.SupportsDifferential); + + int rejected = + _extractHistoryRepository.ProcessRejected(request.Extract.Id, found - loaded, request.Extract); + + + _extractHistoryRepository.ProcessExcluded(request.Extract.Id, rejected, request.Extract); + + //notify loaded + DomainEvents.Dispatch( + new PrepExtractActivityNotification(request.Extract.Id, new DwhProgress( + nameof(PrepBehaviourRiskExtract), + nameof(ExtractStatus.Loaded), + found, loaded, rejected, loaded, 0))); + + return true; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepCareTerimnationHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepCareTerimnationHandler.cs new file mode 100644 index 00000000..3f30bf7b --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepCareTerimnationHandler.cs @@ -0,0 +1,62 @@ +using System.Threading; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Utilities; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Prep +{ + public class ExtractPrepCareTerminationHandler :IRequestHandler + { + private readonly IPrepCareTerminationSourceExtractor _PrepCareTerminationSourceExtractor; + private readonly IPrepExtractValidator _extractValidator; + private readonly IPrepCareTerminationLoader _PrepCareTerminationLoader; + private readonly IExtractHistoryRepository _extractHistoryRepository; + + public ExtractPrepCareTerminationHandler(IPrepCareTerminationSourceExtractor PrepCareTerminationSourceExtractor, IPrepExtractValidator extractValidator, IPrepCareTerminationLoader PrepCareTerminationLoader, IExtractHistoryRepository extractHistoryRepository) + { + _PrepCareTerminationSourceExtractor = PrepCareTerminationSourceExtractor; + _extractValidator = extractValidator; + _PrepCareTerminationLoader = PrepCareTerminationLoader; + _extractHistoryRepository = extractHistoryRepository; + } + + public async Task Handle(ExtractPrepCareTermination request, CancellationToken cancellationToken) + { + //Extract + int found = await _PrepCareTerminationSourceExtractor.Extract(request.Extract, request.DatabaseProtocol); + + //Validate + await _extractValidator.Validate(request.Extract.Id, found, nameof(PrepCareTerminationExtract), $"{nameof(TempPrepCareTerminationExtract)}s"); + + //Load + int loaded = await _PrepCareTerminationLoader.Load(request.Extract.Id, found, request.DatabaseProtocol.SupportsDifferential); + + int rejected = + _extractHistoryRepository.ProcessRejected(request.Extract.Id, found - loaded, request.Extract); + + + _extractHistoryRepository.ProcessExcluded(request.Extract.Id, rejected, request.Extract); + + //notify loaded + DomainEvents.Dispatch( + new PrepExtractActivityNotification(request.Extract.Id, new DwhProgress( + nameof(PrepCareTerminationExtract), + nameof(ExtractStatus.Loaded), + found, loaded, rejected, loaded, 0))); + + return true; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepLabHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepLabHandler.cs new file mode 100644 index 00000000..240ecdd8 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepLabHandler.cs @@ -0,0 +1,62 @@ +using System.Threading; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Utilities; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Prep +{ + public class ExtractPrepLabHandler :IRequestHandler + { + private readonly IPrepLabSourceExtractor _PrepLabSourceExtractor; + private readonly IPrepExtractValidator _extractValidator; + private readonly IPrepLabLoader _PrepLabLoader; + private readonly IExtractHistoryRepository _extractHistoryRepository; + + public ExtractPrepLabHandler(IPrepLabSourceExtractor PrepLabSourceExtractor, IPrepExtractValidator extractValidator, IPrepLabLoader PrepLabLoader, IExtractHistoryRepository extractHistoryRepository) + { + _PrepLabSourceExtractor = PrepLabSourceExtractor; + _extractValidator = extractValidator; + _PrepLabLoader = PrepLabLoader; + _extractHistoryRepository = extractHistoryRepository; + } + + public async Task Handle(ExtractPrepLab request, CancellationToken cancellationToken) + { + //Extract + int found = await _PrepLabSourceExtractor.Extract(request.Extract, request.DatabaseProtocol); + + //Validate + await _extractValidator.Validate(request.Extract.Id, found, nameof(PrepLabExtract), $"{nameof(TempPrepLabExtract)}s"); + + //Load + int loaded = await _PrepLabLoader.Load(request.Extract.Id, found, request.DatabaseProtocol.SupportsDifferential); + + int rejected = + _extractHistoryRepository.ProcessRejected(request.Extract.Id, found - loaded, request.Extract); + + + _extractHistoryRepository.ProcessExcluded(request.Extract.Id, rejected, request.Extract); + + //notify loaded + DomainEvents.Dispatch( + new PrepExtractActivityNotification(request.Extract.Id, new DwhProgress( + nameof(PrepLabExtract), + nameof(ExtractStatus.Loaded), + found, loaded, rejected, loaded, 0))); + + return true; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepPharmacyHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepPharmacyHandler.cs new file mode 100644 index 00000000..8426db87 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepPharmacyHandler.cs @@ -0,0 +1,62 @@ +using System.Threading; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Utilities; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Prep +{ + public class ExtractPrepPharmacyHandler :IRequestHandler + { + private readonly IPrepPharmacySourceExtractor _PrepPharmacySourceExtractor; + private readonly IPrepExtractValidator _extractValidator; + private readonly IPrepPharmacyLoader _PrepPharmacyLoader; + private readonly IExtractHistoryRepository _extractHistoryRepository; + + public ExtractPrepPharmacyHandler(IPrepPharmacySourceExtractor PrepPharmacySourceExtractor, IPrepExtractValidator extractValidator, IPrepPharmacyLoader PrepPharmacyLoader, IExtractHistoryRepository extractHistoryRepository) + { + _PrepPharmacySourceExtractor = PrepPharmacySourceExtractor; + _extractValidator = extractValidator; + _PrepPharmacyLoader = PrepPharmacyLoader; + _extractHistoryRepository = extractHistoryRepository; + } + + public async Task Handle(ExtractPrepPharmacy request, CancellationToken cancellationToken) + { + //Extract + int found = await _PrepPharmacySourceExtractor.Extract(request.Extract, request.DatabaseProtocol); + + //Validate + await _extractValidator.Validate(request.Extract.Id, found, nameof(PrepPharmacyExtract), $"{nameof(TempPrepPharmacyExtract)}s"); + + //Load + int loaded = await _PrepPharmacyLoader.Load(request.Extract.Id, found, request.DatabaseProtocol.SupportsDifferential); + + int rejected = + _extractHistoryRepository.ProcessRejected(request.Extract.Id, found - loaded, request.Extract); + + + _extractHistoryRepository.ProcessExcluded(request.Extract.Id, rejected, request.Extract); + + //notify loaded + DomainEvents.Dispatch( + new PrepExtractActivityNotification(request.Extract.Id, new DwhProgress( + nameof(PrepPharmacyExtract), + nameof(ExtractStatus.Loaded), + found, loaded, rejected, loaded, 0))); + + return true; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepVisitHandler.cs b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepVisitHandler.cs new file mode 100644 index 00000000..cc3d08df --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/ComandHandlers/Prep/ExtractPrepVisitHandler.cs @@ -0,0 +1,62 @@ +using System.Threading; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Utilities; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.ComandHandlers.Prep +{ + public class ExtractPrepVisitHandler :IRequestHandler + { + private readonly IPrepVisitSourceExtractor _prepVisitSourceExtractor; + private readonly IPrepExtractValidator _extractValidator; + private readonly IPrepVisitLoader _prepVisitLoader; + private readonly IExtractHistoryRepository _extractHistoryRepository; + + public ExtractPrepVisitHandler(IPrepVisitSourceExtractor prepVisitSourceExtractor, IPrepExtractValidator extractValidator, IPrepVisitLoader prepVisitLoader, IExtractHistoryRepository extractHistoryRepository) + { + _prepVisitSourceExtractor = prepVisitSourceExtractor; + _extractValidator = extractValidator; + _prepVisitLoader = prepVisitLoader; + _extractHistoryRepository = extractHistoryRepository; + } + + public async Task Handle(ExtractPrepVisit request, CancellationToken cancellationToken) + { + //Extract + int found = await _prepVisitSourceExtractor.Extract(request.Extract, request.DatabaseProtocol); + + //Validate + await _extractValidator.Validate(request.Extract.Id, found, nameof(PrepVisitExtract), $"{nameof(TempPrepVisitExtract)}s"); + + //Load + int loaded = await _prepVisitLoader.Load(request.Extract.Id, found, request.DatabaseProtocol.SupportsDifferential); + + int rejected = + _extractHistoryRepository.ProcessRejected(request.Extract.Id, found - loaded, request.Extract); + + + _extractHistoryRepository.ProcessExcluded(request.Extract.Id, rejected, request.Extract); + + //notify loaded + DomainEvents.Dispatch( + new PrepExtractActivityNotification(request.Extract.Id, new DwhProgress( + nameof(PrepVisitExtract), + nameof(ExtractStatus.Loaded), + found, loaded, rejected, loaded, 0))); + + return true; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Crs/ExtractClientRegistryExtract.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Crs/ExtractClientRegistryExtract.cs new file mode 100644 index 00000000..fa62475b --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Crs/ExtractClientRegistryExtract.cs @@ -0,0 +1,11 @@ +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Commands.Crs +{ + public class ExtractClientRegistryExtract : IRequest + { + public DbExtract Extract { get; set; } + public DbProtocol DatabaseProtocol { get; set; } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Dwh/ExtractCovid.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Dwh/ExtractCovid.cs new file mode 100644 index 00000000..639545e9 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Dwh/ExtractCovid.cs @@ -0,0 +1,7 @@ +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Commands.Dwh +{ + public class ExtractCovid: IRequest{public DbExtract Extract { get; set; }public DbProtocol DatabaseProtocol { get; set; }} +} diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Dwh/ExtractDefaulterTracing.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Dwh/ExtractDefaulterTracing.cs new file mode 100644 index 00000000..46bfd559 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Dwh/ExtractDefaulterTracing.cs @@ -0,0 +1,7 @@ +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Commands.Dwh +{ + public class ExtractDefaulterTracing: IRequest{public DbExtract Extract { get; set; }public DbProtocol DatabaseProtocol { get; set; }} +} diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHTSClient.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHTSClient.cs index d9404087..709800c3 100644 --- a/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHTSClient.cs +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHTSClient.cs @@ -1,8 +1,10 @@ -using Dwapi.SharedKernel.Model; +using System; +using Dwapi.SharedKernel.Model; using MediatR; namespace Dwapi.ExtractsManagement.Core.Commands.Hts { + [Obsolete("No longer Used")] public class ExtractHTSClient : IRequest { public DbExtract Extract { get; set; } diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHTSClientLinkage.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHTSClientLinkage.cs index 493d5c96..6891f570 100644 --- a/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHTSClientLinkage.cs +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHTSClientLinkage.cs @@ -1,8 +1,10 @@ +using System; using Dwapi.SharedKernel.Model; using MediatR; namespace Dwapi.ExtractsManagement.Core.Commands.Hts { + [Obsolete("No longer Used")] public class ExtractHTSClientLinkage : IRequest { public DbExtract Extract { get; set; } diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHTSClientPartner.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHTSClientPartner.cs index d523a1fb..8ac7f355 100644 --- a/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHTSClientPartner.cs +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHTSClientPartner.cs @@ -1,8 +1,10 @@ +using System; using Dwapi.SharedKernel.Model; using MediatR; namespace Dwapi.ExtractsManagement.Core.Commands.Hts { + [Obsolete("No longer Used")] public class ExtractHTSClientPartner : IRequest { public DbExtract Extract { get; set; } diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHtsEligibilityScreening.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHtsEligibilityScreening.cs new file mode 100644 index 00000000..cf26f1ee --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Hts/ExtractHtsEligibilityScreening.cs @@ -0,0 +1,11 @@ +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Commands.Hts +{ + public class ExtractHtsEligibilityExtract: IRequest + { + public DbExtract Extract { get; set; } + public DbProtocol DatabaseProtocol { get; set; } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/LoadPrepFromEmrCommand.cs b/src/Dwapi.ExtractsManagement.Core/Commands/LoadPrepFromEmrCommand.cs new file mode 100644 index 00000000..8d714ab7 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Commands/LoadPrepFromEmrCommand.cs @@ -0,0 +1,11 @@ +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.DTOs; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Commands +{ + public class LoadPrepFromEmrCommand : IRequest + { + public IList Extracts { get; set; } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ClearAllMnchExtracts.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ClearAllMnchExtracts.cs new file mode 100644 index 00000000..2227aa07 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ClearAllMnchExtracts.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Commands.Prep +{ + public class ClearAllPrepExtracts:IRequest + { + public List ExtractIds { get; } + + public ClearAllPrepExtracts(List extractIds) + { + ExtractIds = extractIds; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPatientPrep.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPatientPrep.cs new file mode 100644 index 00000000..585fbb2c --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPatientPrep.cs @@ -0,0 +1,17 @@ +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Commands.Prep +{ + public class ExtractPatientPrep : IRequest + { + public DbExtract Extract { get; set; } + public DbProtocol DatabaseProtocol { get; set; } + + public bool IsValid() + { + return null != Extract && null != DatabaseProtocol; + } + } + +} diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepAdverseEvent.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepAdverseEvent.cs new file mode 100644 index 00000000..fc0acb8a --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepAdverseEvent.cs @@ -0,0 +1,11 @@ +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Commands.Prep +{ + public class ExtractPrepAdverseEvent : IRequest + { + public DbExtract Extract { get; set; } + public DbProtocol DatabaseProtocol { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepBehaviourRisk.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepBehaviourRisk.cs new file mode 100644 index 00000000..15d545cf --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepBehaviourRisk.cs @@ -0,0 +1,7 @@ +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Commands.Prep +{ + public class ExtractPrepBehaviourRisk: IRequest{public DbExtract Extract { get; set; }public DbProtocol DatabaseProtocol { get; set; }} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepCareTermination.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepCareTermination.cs new file mode 100644 index 00000000..2345bf70 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepCareTermination.cs @@ -0,0 +1,7 @@ +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Commands.Prep +{ + public class ExtractPrepCareTermination: IRequest{public DbExtract Extract { get; set; }public DbProtocol DatabaseProtocol { get; set; }} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepLab.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepLab.cs new file mode 100644 index 00000000..9b217932 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepLab.cs @@ -0,0 +1,7 @@ +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Commands.Prep +{ + public class ExtractPrepLab: IRequest{public DbExtract Extract { get; set; }public DbProtocol DatabaseProtocol { get; set; }} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepPharmacy.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepPharmacy.cs new file mode 100644 index 00000000..8a8449ca --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepPharmacy.cs @@ -0,0 +1,7 @@ +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Commands.Prep +{ + public class ExtractPrepPharmacy: IRequest{public DbExtract Extract { get; set; }public DbProtocol DatabaseProtocol { get; set; }} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepVisit.cs b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepVisit.cs new file mode 100644 index 00000000..71118b98 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Commands/Prep/ExtractPrepVisit.cs @@ -0,0 +1,7 @@ +using Dwapi.SharedKernel.Model; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Commands.Prep +{ + public class ExtractPrepVisit: IRequest{public DbExtract Extract { get; set; }public DbProtocol DatabaseProtocol { get; set; }} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/DTOs/ExtractSummaryDTO.cs b/src/Dwapi.ExtractsManagement.Core/DTOs/ExtractSummaryDTO.cs new file mode 100644 index 00000000..a196ea3a --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/DTOs/ExtractSummaryDTO.cs @@ -0,0 +1,8 @@ +namespace Dwapi.ExtractsManagement.Core.DTOs +{ + public class ExtractSummaryDto + { + public int TotalExtractClients { get; set; } + public int TotalCurrentOnCare { get; set; } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Dwapi.ExtractsManagement.Core.csproj b/src/Dwapi.ExtractsManagement.Core/Dwapi.ExtractsManagement.Core.csproj index f10f1915..07c4663a 100644 --- a/src/Dwapi.ExtractsManagement.Core/Dwapi.ExtractsManagement.Core.csproj +++ b/src/Dwapi.ExtractsManagement.Core/Dwapi.ExtractsManagement.Core.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/Dwapi.ExtractsManagement.Core/Extractors/Crs/ClientRegistryExtractSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Extractors/Crs/ClientRegistryExtractSourceExtractor.cs new file mode 100644 index 00000000..9050f7e9 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Extractors/Crs/ClientRegistryExtractSourceExtractor.cs @@ -0,0 +1,105 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Crs; +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Crs; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Crs; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; +using Dwapi.ExtractsManagement.Core.Model.Source.Crs; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Extractors.Crs +{ + public class ClientRegistryExtractSourceExtractor : IClientRegistryExtractSourceExtractor + { + private readonly IClientRegistryExtractReader _reader; + private readonly IMediator _mediator; + private readonly ITempClientRegistryExtractRepository _extractRepository; + + public ClientRegistryExtractSourceExtractor(IClientRegistryExtractReader reader, IMediator mediator, ITempClientRegistryExtractRepository extractRepository) + { + _reader = reader; + _mediator = mediator; + _extractRepository = extractRepository; + } + + public async Task Extract(DbExtract extract, DbProtocol dbProtocol) + { + var mapper = dbProtocol.SupportsDifferential ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + int batch = 500; + + DomainEvents.Dispatch(new CrsNotification(new ExtractProgress(nameof(ClientRegistryExtract), "extracting..."))); + //DomainEvents.Dispatch(new CrsStatusNotification(extract.Id,ExtractStatus.Loading)); + + var list = new List(); + + int count = 0; + int totalCount = 0; + + using (var rdr = await _reader.ExecuteReader(dbProtocol, extract)) + { + + while (rdr.Read()) + { + totalCount++; + count++; + // AutoMapper profiles + var extractRecord = mapper.Map(rdr); + extractRecord.Id = LiveGuid.NewGuid(); + list.Add(extractRecord); + + if (count == batch) + { + // TODO: batch and save + _extractRepository.BatchInsert(list); + + try + { + DomainEvents.Dispatch(new CrsNotification(new ExtractProgress(nameof(ClientRegistryExtract), "extracting...",totalCount,count,0,0,0))); + } + catch (Exception e) + { + Log.Error(e,"Notification error"); + + } + count = 0; + list =new List(); + } + + // TODO: Notify progress... + + + } + + if (count > 0) + { + _extractRepository.BatchInsert(list); + } + _extractRepository.CloseConnection(); + } + + try + { + + DomainEvents.Dispatch(new CrsNotification(new ExtractProgress(nameof(ClientRegistryExtract), "extracted", totalCount, 0, 0, 0, 0))); + DomainEvents.Dispatch(new CrsStatusNotification(extract.Id, ExtractStatus.Found, totalCount)); + DomainEvents.Dispatch(new CrsStatusNotification(extract.Id, ExtractStatus.Loaded,totalCount)); + } + catch (Exception e) + { + Log.Error(e, "Notification error"); + + } + + return totalCount; + } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Extractors/Dwh/CovidSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Extractors/Dwh/CovidSourceExtractor.cs new file mode 100644 index 00000000..62d374f6 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Extractors/Dwh/CovidSourceExtractor.cs @@ -0,0 +1,88 @@ +using System.Collections.Generic; +using System.Data; +using System.Threading.Tasks; +using AutoMapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Extractors.Dwh +{ + public class CovidSourceExtractor : ICovidSourceExtractor + { + private readonly IDwhExtractSourceReader _reader; + private readonly IMediator _mediator; + private readonly ITempCovidExtractRepository _extractRepository; + + public CovidSourceExtractor(IDwhExtractSourceReader reader, IMediator mediator, ITempCovidExtractRepository extractRepository) + { + _reader = reader; + _mediator = mediator; + _extractRepository = extractRepository; + } + + public async Task Extract(DbExtract extract, DbProtocol dbProtocol) + { + var mapper = dbProtocol.SupportsDifferential ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + int batch = 500; + + var list = new List(); + + int count = 0; + int loaded = 0; + using (var rdr = await _reader.ExecuteReader(dbProtocol, extract)) + { + while (rdr.Read()) + { + count++; + loaded++; + // AutoMapper profiles + var extractRecord = mapper.Map(rdr); + extractRecord.Id = LiveGuid.NewGuid(); + list.Add(extractRecord); + + if (count == batch) + { + _extractRepository.BatchInsert(list); + + count = 0; + + + DomainEvents.Dispatch( + new ExtractActivityNotification(extract.Id, new DwhProgress( + nameof(CovidExtract), + nameof(ExtractStatus.Finding), + loaded, 0, 0, 0, 0))); + list = new List(); + } + } + + if (count > 0) + { + // save remaining list; + _extractRepository.BatchInsert(list); + } + _extractRepository.CloseConnection(); + } + + // TODO: Notify Completed; + DomainEvents.Dispatch( + new ExtractActivityNotification(extract.Id, new DwhProgress( + nameof(CovidExtract), + nameof(ExtractStatus.Found), + loaded, 0, 0, 0, 0))); + + return loaded; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Extractors/Dwh/DefaulterTracingSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Extractors/Dwh/DefaulterTracingSourceExtractor.cs new file mode 100644 index 00000000..39f14d9b --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Extractors/Dwh/DefaulterTracingSourceExtractor.cs @@ -0,0 +1,88 @@ +using System.Collections.Generic; +using System.Data; +using System.Threading.Tasks; +using AutoMapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Extractors.Dwh +{ + public class DefaulterTracingSourceExtractor : IDefaulterTracingSourceExtractor + { + private readonly IDwhExtractSourceReader _reader; + private readonly IMediator _mediator; + private readonly ITempDefaulterTracingExtractRepository _extractRepository; + + public DefaulterTracingSourceExtractor(IDwhExtractSourceReader reader, IMediator mediator, ITempDefaulterTracingExtractRepository extractRepository) + { + _reader = reader; + _mediator = mediator; + _extractRepository = extractRepository; + } + + public async Task Extract(DbExtract extract, DbProtocol dbProtocol) + { + var mapper = dbProtocol.SupportsDifferential ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + int batch = 500; + + var list = new List(); + + int count = 0; + int loaded = 0; + using (var rdr = await _reader.ExecuteReader(dbProtocol, extract)) + { + while (rdr.Read()) + { + count++; + loaded++; + // AutoMapper profiles + var extractRecord = mapper.Map(rdr); + extractRecord.Id = LiveGuid.NewGuid(); + list.Add(extractRecord); + + if (count == batch) + { + _extractRepository.BatchInsert(list); + + count = 0; + + + DomainEvents.Dispatch( + new ExtractActivityNotification(extract.Id, new DwhProgress( + nameof(DefaulterTracingExtract), + nameof(ExtractStatus.Finding), + loaded, 0, 0, 0, 0))); + list = new List(); + } + } + + if (count > 0) + { + // save remaining list; + _extractRepository.BatchInsert(list); + } + _extractRepository.CloseConnection(); + } + + // TODO: Notify Completed; + DomainEvents.Dispatch( + new ExtractActivityNotification(extract.Id, new DwhProgress( + nameof(DefaulterTracingExtract), + nameof(ExtractStatus.Found), + loaded, 0, 0, 0, 0))); + + return loaded; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Extractors/Hts/HTSClientSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Extractors/Hts/HTSClientSourceExtractor.cs index 5d50b8c3..051a021b 100644 --- a/src/Dwapi.ExtractsManagement.Core/Extractors/Hts/HTSClientSourceExtractor.cs +++ b/src/Dwapi.ExtractsManagement.Core/Extractors/Hts/HTSClientSourceExtractor.cs @@ -19,7 +19,7 @@ namespace Dwapi.ExtractsManagement.Core.Extractors.Hts { - [Obsolete] + [Obsolete("No longer Used")] public class HTSClientSourceExtractor : IHTSClientSourceExtractor { private readonly IHTSExtractSourceReader _reader; diff --git a/src/Dwapi.ExtractsManagement.Core/Extractors/Hts/HtsEligibilityExtractSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Extractors/Hts/HtsEligibilityExtractSourceExtractor.cs new file mode 100644 index 00000000..5b766846 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Extractors/Hts/HtsEligibilityExtractSourceExtractor.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Threading.Tasks; +using AutoMapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Hts; +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Hts; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Hts; +using Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts; +using Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Extractors.Hts +{ + public class HtsEligibilityExtractSourceExtractor : IHtsEligibilityExtractSourceExtractor + { + private readonly IHTSExtractSourceReader _reader; + private readonly IMediator _mediator; + private readonly ITempHtsEligibilityExtractRepository _extractRepository; + + public HtsEligibilityExtractSourceExtractor(IHTSExtractSourceReader reader, IMediator mediator, ITempHtsEligibilityExtractRepository extractRepository) + { + _reader = reader; + _mediator = mediator; + _extractRepository = extractRepository; + } + + public async Task Extract(DbExtract extract, DbProtocol dbProtocol) + { + var mapper = dbProtocol.SupportsDifferential ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + int batch = 500; + + DomainEvents.Dispatch(new HtsNotification(new ExtractProgress(nameof(HtsEligibilityExtract), "extracting..."))); + //DomainEvents.Dispatch(new CbsStatusNotification(extract.Id,ExtractStatus.Loading)); + + var list = new List(); + + int count = 0; + int totalCount = 0; + + using (var rdr = await _reader.ExecuteReader(dbProtocol, extract)) + { + while (rdr.Read()) + { + totalCount++; + count++; + // AutoMapper profiles + var extractRecord = mapper.Map(rdr); + extractRecord.Id = LiveGuid.NewGuid(); + list.Add(extractRecord); + + if (count == batch) + { + // TODO: batch and save + _extractRepository.BatchInsert(list); + + try + { + DomainEvents.Dispatch(new HtsNotification(new ExtractProgress(nameof(HtsEligibilityExtract), "extracting...", totalCount, count, 0, 0, 0))); + } + catch (Exception e) + { + Log.Error(e, "Notification error"); + + } + count = 0; + list = new List(); + } + + // TODO: Notify progress... + + + } + + if (count > 0) + { + _extractRepository.BatchInsert(list); + } + _extractRepository.CloseConnection(); + } + + try + { + + DomainEvents.Dispatch(new HtsNotification(new ExtractProgress(nameof(HtsEligibilityExtract), "extracted", totalCount, 0, 0, 0, 0))); + DomainEvents.Dispatch(new HtsStatusNotification(extract.Id, ExtractStatus.Found, totalCount)); + DomainEvents.Dispatch(new HtsStatusNotification(extract.Id, ExtractStatus.Loaded, totalCount)); + } + catch (Exception e) + { + Log.Error(e, "Notification error"); + + } + + return totalCount; + } + + public Task ReadExtract(DbExtract extract, DbProtocol dbProtocol) + { + throw new NotImplementedException(); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PatientPrepSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PatientPrepSourceExtractor.cs new file mode 100644 index 00000000..01de06c3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PatientPrepSourceExtractor.cs @@ -0,0 +1,87 @@ +using System.Collections.Generic; +using System.Data; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Extractors.Prep +{ + public class PatientPrepSourceExtractor : IPatientPrepSourceExtractor + { + private readonly IPrepExtractSourceReader _reader; + private readonly IMediator _mediator; + private readonly ITempPatientPrepExtractRepository _extractRepository; + + public PatientPrepSourceExtractor(IPrepExtractSourceReader reader, IMediator mediator, ITempPatientPrepExtractRepository extractRepository) + { + _reader = reader; + _mediator = mediator; + _extractRepository = extractRepository; + } + + public async Task Extract(DbExtract extract, DbProtocol dbProtocol) + { + var mapper = dbProtocol.SupportsDifferential ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + int batch = 500; + + var list = new List(); + + int count = 0; + int loaded = 0; + using (var rdr = await _reader.ExecuteReader(dbProtocol, extract)) + { + while (rdr.Read()) + { + count++; + loaded++; + // AutoMapper profiles + var extractRecord = mapper.Map(rdr); + extractRecord.Id = LiveGuid.NewGuid(); + list.Add(extractRecord); + + if (count == batch) + { + _extractRepository.BatchInsert(list); + + count = 0; + + + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PatientPrepExtract), + nameof(ExtractStatus.Finding), + loaded, 0, 0, 0, 0))); + list = new List(); + } + } + + if (count > 0) + { + // save remaining list; + _extractRepository.BatchInsert(list); + } + _extractRepository.CloseConnection(); + } + + // TODO: Notify Completed; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PatientPrepExtract), + nameof(ExtractStatus.Found), + loaded, 0, 0, 0, 0))); + + return loaded; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepAdverseEventSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepAdverseEventSourceExtractor.cs new file mode 100644 index 00000000..2a285ad2 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepAdverseEventSourceExtractor.cs @@ -0,0 +1,87 @@ +using System.Collections.Generic; +using System.Data; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Extractors.Prep +{ + public class PrepAdverseEventSourceExtractor : IPrepAdverseEventSourceExtractor + { + private readonly IPrepExtractSourceReader _reader; + private readonly IMediator _mediator; + private readonly ITempPrepAdverseEventExtractRepository _extractRepository; + + public PrepAdverseEventSourceExtractor(IPrepExtractSourceReader reader, IMediator mediator, ITempPrepAdverseEventExtractRepository extractRepository) + { + _reader = reader; + _mediator = mediator; + _extractRepository = extractRepository; + } + + public async Task Extract(DbExtract extract, DbProtocol dbProtocol) + { + var mapper = dbProtocol.SupportsDifferential ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + int batch = 500; + + var list = new List(); + + int count = 0; + int loaded = 0; + using (var rdr = await _reader.ExecuteReader(dbProtocol, extract)) + { + while (rdr.Read()) + { + count++; + loaded++; + // AutoMapper profiles + var extractRecord = mapper.Map(rdr); + extractRecord.Id = LiveGuid.NewGuid(); + list.Add(extractRecord); + + if (count == batch) + { + _extractRepository.BatchInsert(list); + + count = 0; + + + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PrepAdverseEventExtract), + nameof(ExtractStatus.Finding), + loaded, 0, 0, 0, 0))); + list = new List(); + } + } + + if (count > 0) + { + // save remaining list; + _extractRepository.BatchInsert(list); + } + _extractRepository.CloseConnection(); + } + + // TODO: Notify Completed; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PrepAdverseEventExtract), + nameof(ExtractStatus.Found), + loaded, 0, 0, 0, 0))); + + return loaded; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepBehaviourRiskSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepBehaviourRiskSourceExtractor.cs new file mode 100644 index 00000000..adf075b2 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepBehaviourRiskSourceExtractor.cs @@ -0,0 +1,87 @@ +using System.Collections.Generic; +using System.Data; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Extractors.Prep +{ + public class PrepBehaviourRiskSourceExtractor : IPrepBehaviourRiskSourceExtractor + { + private readonly IPrepExtractSourceReader _reader; + private readonly IMediator _mediator; + private readonly ITempPrepBehaviourRiskExtractRepository _extractRepository; + + public PrepBehaviourRiskSourceExtractor(IPrepExtractSourceReader reader, IMediator mediator, ITempPrepBehaviourRiskExtractRepository extractRepository) + { + _reader = reader; + _mediator = mediator; + _extractRepository = extractRepository; + } + + public async Task Extract(DbExtract extract, DbProtocol dbProtocol) + { + var mapper = dbProtocol.SupportsDifferential ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + int batch = 500; + + var list = new List(); + + int count = 0; + int loaded = 0; + using (var rdr = await _reader.ExecuteReader(dbProtocol, extract)) + { + while (rdr.Read()) + { + count++; + loaded++; + // AutoMapper profiles + var extractRecord = mapper.Map(rdr); + extractRecord.Id = LiveGuid.NewGuid(); + list.Add(extractRecord); + + if (count == batch) + { + _extractRepository.BatchInsert(list); + + count = 0; + + + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PrepBehaviourRiskExtract), + nameof(ExtractStatus.Finding), + loaded, 0, 0, 0, 0))); + list = new List(); + } + } + + if (count > 0) + { + // save remaining list; + _extractRepository.BatchInsert(list); + } + _extractRepository.CloseConnection(); + } + + // TODO: Notify Completed; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PrepBehaviourRiskExtract), + nameof(ExtractStatus.Found), + loaded, 0, 0, 0, 0))); + + return loaded; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepCareTerminationSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepCareTerminationSourceExtractor.cs new file mode 100644 index 00000000..c133be55 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepCareTerminationSourceExtractor.cs @@ -0,0 +1,87 @@ +using System.Collections.Generic; +using System.Data; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Extractors.Prep +{ + public class PrepCareTerminationSourceExtractor : IPrepCareTerminationSourceExtractor + { + private readonly IPrepExtractSourceReader _reader; + private readonly IMediator _mediator; + private readonly ITempPrepCareTerminationExtractRepository _extractRepository; + + public PrepCareTerminationSourceExtractor(IPrepExtractSourceReader reader, IMediator mediator, ITempPrepCareTerminationExtractRepository extractRepository) + { + _reader = reader; + _mediator = mediator; + _extractRepository = extractRepository; + } + + public Task Extract(DbExtract extract, DbProtocol dbProtocol) + { + var mapper = dbProtocol.SupportsDifferential ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + int batch = 500; + + var list = new List(); + + int count = 0; + int loaded = 0; + using (var rdr = _reader.ExecuteReaderSync(dbProtocol, extract)) + { + while (rdr.Read()) + { + count++; + loaded++; + // AutoMapper profiles + var extractRecord = mapper.Map(rdr); + extractRecord.Id = LiveGuid.NewGuid(); + list.Add(extractRecord); + + if (count == batch) + { + _extractRepository.BatchInsert(list); + + count = 0; + + + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PrepCareTerminationExtract), + nameof(ExtractStatus.Finding), + loaded, 0, 0, 0, 0))); + list = new List(); + } + } + + if (count > 0) + { + // save remaining list; + _extractRepository.BatchInsert(list); + } + _extractRepository.CloseConnection(); + } + + // TODO: Notify Completed; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PrepCareTerminationExtract), + nameof(ExtractStatus.Found), + loaded, 0, 0, 0, 0))); + + return Task.FromResult(loaded); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepLabSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepLabSourceExtractor.cs new file mode 100644 index 00000000..4a20fcf4 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepLabSourceExtractor.cs @@ -0,0 +1,87 @@ +using System.Collections.Generic; +using System.Data; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Extractors.Prep +{ + public class PrepLabSourceExtractor : IPrepLabSourceExtractor + { + private readonly IPrepExtractSourceReader _reader; + private readonly IMediator _mediator; + private readonly ITempPrepLabExtractRepository _extractRepository; + + public PrepLabSourceExtractor(IPrepExtractSourceReader reader, IMediator mediator, ITempPrepLabExtractRepository extractRepository) + { + _reader = reader; + _mediator = mediator; + _extractRepository = extractRepository; + } + + public async Task Extract(DbExtract extract, DbProtocol dbProtocol) + { + var mapper = dbProtocol.SupportsDifferential ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + int batch = 500; + + var list = new List(); + + int count = 0; + int loaded = 0; + using (var rdr = await _reader.ExecuteReader(dbProtocol, extract)) + { + while (rdr.Read()) + { + count++; + loaded++; + // AutoMapper profiles + var extractRecord = mapper.Map(rdr); + extractRecord.Id = LiveGuid.NewGuid(); + list.Add(extractRecord); + + if (count == batch) + { + _extractRepository.BatchInsert(list); + + count = 0; + + + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PrepLabExtract), + nameof(ExtractStatus.Finding), + loaded, 0, 0, 0, 0))); + list = new List(); + } + } + + if (count > 0) + { + // save remaining list; + _extractRepository.BatchInsert(list); + } + _extractRepository.CloseConnection(); + } + + // TODO: Notify Completed; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PrepLabExtract), + nameof(ExtractStatus.Found), + loaded, 0, 0, 0, 0))); + + return loaded; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepPharmacySourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepPharmacySourceExtractor.cs new file mode 100644 index 00000000..31413e22 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepPharmacySourceExtractor.cs @@ -0,0 +1,87 @@ +using System.Collections.Generic; +using System.Data; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Extractors.Prep +{ + public class PrepPharmacySourceExtractor : IPrepPharmacySourceExtractor + { + private readonly IPrepExtractSourceReader _reader; + private readonly IMediator _mediator; + private readonly ITempPrepPharmacyExtractRepository _extractRepository; + + public PrepPharmacySourceExtractor(IPrepExtractSourceReader reader, IMediator mediator, ITempPrepPharmacyExtractRepository extractRepository) + { + _reader = reader; + _mediator = mediator; + _extractRepository = extractRepository; + } + + public async Task Extract(DbExtract extract, DbProtocol dbProtocol) + { + var mapper = dbProtocol.SupportsDifferential ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + int batch = 500; + + var list = new List(); + + int count = 0; + int loaded = 0; + using (var rdr = await _reader.ExecuteReader(dbProtocol, extract)) + { + while (rdr.Read()) + { + count++; + loaded++; + // AutoMapper profiles + var extractRecord = mapper.Map(rdr); + extractRecord.Id = LiveGuid.NewGuid(); + list.Add(extractRecord); + + if (count == batch) + { + _extractRepository.BatchInsert(list); + + count = 0; + + + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PrepPharmacyExtract), + nameof(ExtractStatus.Finding), + loaded, 0, 0, 0, 0))); + list = new List(); + } + } + + if (count > 0) + { + // save remaining list; + _extractRepository.BatchInsert(list); + } + _extractRepository.CloseConnection(); + } + + // TODO: Notify Completed; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PrepPharmacyExtract), + nameof(ExtractStatus.Found), + loaded, 0, 0, 0, 0))); + + return loaded; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepVisitSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepVisitSourceExtractor.cs new file mode 100644 index 00000000..0feacc2e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Extractors/Prep/PrepVisitSourceExtractor.cs @@ -0,0 +1,87 @@ +using System.Collections.Generic; +using System.Data; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; + +namespace Dwapi.ExtractsManagement.Core.Extractors.Prep +{ + public class PrepVisitSourceExtractor : IPrepVisitSourceExtractor + { + private readonly IPrepExtractSourceReader _reader; + private readonly IMediator _mediator; + private readonly ITempPrepVisitExtractRepository _extractRepository; + + public PrepVisitSourceExtractor(IPrepExtractSourceReader reader, IMediator mediator, ITempPrepVisitExtractRepository extractRepository) + { + _reader = reader; + _mediator = mediator; + _extractRepository = extractRepository; + } + + public async Task Extract(DbExtract extract, DbProtocol dbProtocol) + { + var mapper = dbProtocol.SupportsDifferential ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + int batch = 500; + + var list = new List(); + + int count = 0; + int loaded = 0; + using (var rdr = await _reader.ExecuteReader(dbProtocol, extract)) + { + while (rdr.Read()) + { + count++; + loaded++; + // AutoMapper profiles + var extractRecord = mapper.Map(rdr); + extractRecord.Id = LiveGuid.NewGuid(); + list.Add(extractRecord); + + if (count == batch) + { + _extractRepository.BatchInsert(list); + + count = 0; + + + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PrepVisitExtract), + nameof(ExtractStatus.Finding), + loaded, 0, 0, 0, 0))); + list = new List(); + } + } + + if (count > 0) + { + // save remaining list; + _extractRepository.BatchInsert(list); + } + _extractRepository.CloseConnection(); + } + + // TODO: Notify Completed; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extract.Id, new DwhProgress( + nameof(PrepVisitExtract), + nameof(ExtractStatus.Found), + loaded, 0, 0, 0, 0))); + + return loaded; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Cleaner/Crs/IClearCrsExtracts.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Cleaner/Crs/IClearCrsExtracts.cs new file mode 100644 index 00000000..bb19a7af --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Cleaner/Crs/IClearCrsExtracts.cs @@ -0,0 +1,10 @@ +using System; +using System.Threading.Tasks; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Crs +{ + public interface IClearCrsExtracts + { + Task Clean(Guid extractId); + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Cleaner/Prep/IClearPrepExtracts.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Cleaner/Prep/IClearPrepExtracts.cs new file mode 100644 index 00000000..58a7655a --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Cleaner/Prep/IClearPrepExtracts.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Prep +{ + public interface IClearPrepExtracts + { + Task Clear(List extractIds); + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Crs/IClientRegistryExtractSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Crs/IClientRegistryExtractSourceExtractor.cs new file mode 100644 index 00000000..f3b95b70 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Crs/IClientRegistryExtractSourceExtractor.cs @@ -0,0 +1,10 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Crs; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Crs +{ + public interface IClientRegistryExtractSourceExtractor : ISourceExtractor + { + + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Dwh/ICovidSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Dwh/ICovidSourceExtractor.cs new file mode 100644 index 00000000..40455bd8 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Dwh/ICovidSourceExtractor.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Dwh +{ + public interface ICovidSourceExtractor : ISourceExtractor{} +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Dwh/IDefaulterTracingSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Dwh/IDefaulterTracingSourceExtractor.cs new file mode 100644 index 00000000..1abca32e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Dwh/IDefaulterTracingSourceExtractor.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Dwh +{ + public interface IDefaulterTracingSourceExtractor : ISourceExtractor{} +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Hts/IHtsEligibilityExtractSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Hts/IHtsEligibilityExtractSourceExtractor.cs new file mode 100644 index 00000000..e37c165d --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Hts/IHtsEligibilityExtractSourceExtractor.cs @@ -0,0 +1,10 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Hts +{ + public interface IHtsEligibilityExtractSourceExtractor: ISourceExtractor + { + + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPatientPrepSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPatientPrepSourceExtractor.cs new file mode 100644 index 00000000..ed8828ca --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPatientPrepSourceExtractor.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep +{ + public interface IPatientPrepSourceExtractor : ISourceExtractor { } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepAdverseEventSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepAdverseEventSourceExtractor.cs new file mode 100644 index 00000000..4bfb6e03 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepAdverseEventSourceExtractor.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep +{ + public interface IPrepAdverseEventSourceExtractor : ISourceExtractor{ } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepBehaviourRiskSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepBehaviourRiskSourceExtractor.cs new file mode 100644 index 00000000..082c9877 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepBehaviourRiskSourceExtractor.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep +{ + public interface IPrepBehaviourRiskSourceExtractor : ISourceExtractor{ } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepCareTerminationSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepCareTerminationSourceExtractor.cs new file mode 100644 index 00000000..63eac6bc --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepCareTerminationSourceExtractor.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep +{ + public interface IPrepCareTerminationSourceExtractor : ISourceExtractor{ } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepLabSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepLabSourceExtractor.cs new file mode 100644 index 00000000..ddd5d599 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepLabSourceExtractor.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep +{ + public interface IPrepLabSourceExtractor : ISourceExtractor{ } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepPharmacySourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepPharmacySourceExtractor.cs new file mode 100644 index 00000000..5617f092 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepPharmacySourceExtractor.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep +{ + public interface IPrepPharmacySourceExtractor : ISourceExtractor{ } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepVisitSourceExtractor.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepVisitSourceExtractor.cs new file mode 100644 index 00000000..2d046994 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Extratcors/Prep/IPrepVisitSourceExtractor.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep +{ + public interface IPrepVisitSourceExtractor : ISourceExtractor{ } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Crs/IClientRegistryExtractLoader.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Crs/IClientRegistryExtractLoader.cs new file mode 100644 index 00000000..6de462bc --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Crs/IClientRegistryExtractLoader.cs @@ -0,0 +1,9 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Cbs; +using Dwapi.ExtractsManagement.Core.Model.Source.Crs; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Crs +{ + public interface IClientRegistryExtractLoader : ILoader + { + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Dwh/ICovidLoader.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Dwh/ICovidLoader.cs new file mode 100644 index 00000000..3d07dad6 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Dwh/ICovidLoader.cs @@ -0,0 +1,6 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Dwh +{ + public interface ICovidLoader : ILoader{} +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Dwh/IDefaulterTracingLoader.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Dwh/IDefaulterTracingLoader.cs new file mode 100644 index 00000000..c38c3e0e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Dwh/IDefaulterTracingLoader.cs @@ -0,0 +1,6 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Dwh +{ + public interface IDefaulterTracingLoader : ILoader{} +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Hts/IHtsEligibilityLoader.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Hts/IHtsEligibilityLoader.cs new file mode 100644 index 00000000..d99fb071 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Hts/IHtsEligibilityLoader.cs @@ -0,0 +1,9 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Hts +{ + public interface IHtsEligibilityExtractLoader: ILoader + { + + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPatientPrepLoader.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPatientPrepLoader.cs new file mode 100644 index 00000000..366f67ec --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPatientPrepLoader.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep +{ + public interface IPatientPrepLoader : ILoader{} + +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepAdverseEventLoader.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepAdverseEventLoader.cs new file mode 100644 index 00000000..6b69edd2 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepAdverseEventLoader.cs @@ -0,0 +1,6 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep +{ + public interface IPrepAdverseEventLoader : ILoader{} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepBehaviourRiskLoader.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepBehaviourRiskLoader.cs new file mode 100644 index 00000000..2a2afe98 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepBehaviourRiskLoader.cs @@ -0,0 +1,6 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep +{ + public interface IPrepBehaviourRiskLoader : ILoader{} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepCareTerminationLoader.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepCareTerminationLoader.cs new file mode 100644 index 00000000..2a31ad04 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepCareTerminationLoader.cs @@ -0,0 +1,6 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep +{ + public interface IPrepCareTerminationLoader : ILoader{} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepLabLoader.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepLabLoader.cs new file mode 100644 index 00000000..fee402da --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepLabLoader.cs @@ -0,0 +1,6 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep +{ + public interface IPrepLabLoader : ILoader{} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepPharmacyLoader.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepPharmacyLoader.cs new file mode 100644 index 00000000..ea2442e3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepPharmacyLoader.cs @@ -0,0 +1,6 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep +{ + public interface IPrepPharmacyLoader : ILoader{} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepVisitLoader.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepVisitLoader.cs new file mode 100644 index 00000000..cc463d85 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Loaders/Prep/IPrepVisitLoader.cs @@ -0,0 +1,6 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep +{ + public interface IPrepVisitLoader : ILoader{} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Reader/Crs/IClientRegistryExtractReader.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Reader/Crs/IClientRegistryExtractReader.cs new file mode 100644 index 00000000..24b0264a --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Reader/Crs/IClientRegistryExtractReader.cs @@ -0,0 +1,9 @@ +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Reader.Crs +{ + public interface IClientRegistryExtractReader : ISourceReader + { + + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Reader/Prep/IPrepExtractSourceReader.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Reader/Prep/IPrepExtractSourceReader.cs new file mode 100644 index 00000000..2d0b7585 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Reader/Prep/IPrepExtractSourceReader.cs @@ -0,0 +1,8 @@ +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Reader.Prep +{ + public interface IPrepExtractSourceReader : ISourceReader + { + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Crs/IClientRegistryExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Crs/IClientRegistryExtractRepository.cs new file mode 100644 index 00000000..c9e50c2d --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Crs/IClientRegistryExtractRepository.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.DTOs; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; +using Dwapi.SharedKernel.Interfaces; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Crs +{ + public interface IClientRegistryExtractRepository : IRepository + { + bool BatchInsert(IEnumerable extracts); + IEnumerable GetView(); + void UpdateSendStatus(List sentItems); + ExtractSummaryDto GetSummery(); + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Crs/ITempClientRegistryExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Crs/ITempClientRegistryExtractRepository.cs new file mode 100644 index 00000000..b099ada0 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Crs/ITempClientRegistryExtractRepository.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; +using Dwapi.ExtractsManagement.Core.Model.Source.Crs; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Crs +{ + public interface ITempClientRegistryExtractRepository : IRepository + { + Task Clear(); + bool BatchInsert(IEnumerable extracts); + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ICovidExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ICovidExtractRepository.cs new file mode 100644 index 00000000..a3ad1102 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ICovidExtractRepository.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Interfaces; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh +{ + public interface ICovidExtractRepository: IRepository{bool BatchInsert(IEnumerable extracts); void UpdateSendStatus(List sentItems);long UpdateDiffSendStatus();} +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/IDefaulterTracingExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/IDefaulterTracingExtractRepository.cs new file mode 100644 index 00000000..23bd94d3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/IDefaulterTracingExtractRepository.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Interfaces; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh +{ + public interface IDefaulterTracingExtractRepository: IRepository{bool BatchInsert(IEnumerable extracts); void UpdateSendStatus(List sentItems);long UpdateDiffSendStatus();} +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ITempCovidExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ITempCovidExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..c94f4c41 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ITempCovidExtractErrorSummaryRepository.cs @@ -0,0 +1,9 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh +{ + public interface ITempCovidExtractErrorSummaryRepository : ITempExtractErrorSummaryRepository + { + + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ITempCovidExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ITempCovidExtractRepository.cs new file mode 100644 index 00000000..06e27452 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ITempCovidExtractRepository.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh +{ + public interface ITempCovidExtractRepository : IRepository + { + bool BatchInsert(IEnumerable extracts); + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ITempDefaulterTracingExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ITempDefaulterTracingExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..398f1515 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ITempDefaulterTracingExtractErrorSummaryRepository.cs @@ -0,0 +1,9 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh +{ + public interface ITempDefaulterTracingExtractErrorSummaryRepository : ITempExtractErrorSummaryRepository + { + + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ITempDefaulterTracingExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ITempDefaulterTracingExtractRepository.cs new file mode 100644 index 00000000..73edca0d --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Dwh/ITempDefaulterTracingExtractRepository.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh +{ + public interface ITempDefaulterTracingExtractRepository : IRepository + { + bool BatchInsert(IEnumerable extracts); + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Hts/IHtsEligibilityExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Hts/IHtsEligibilityExtractRepository.cs new file mode 100644 index 00000000..4a780f14 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Hts/IHtsEligibilityExtractRepository.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts; +using Dwapi.SharedKernel.Interfaces; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Hts +{ + public interface IHtsEligibilityExtractRepository : IRepository + { + bool BatchInsert(IEnumerable extracts); + IEnumerable GetView(); + void UpdateSendStatus(List sentItems); + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Hts/ITempHtsEligibilityExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Hts/ITempHtsEligibilityExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..65ba9333 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Hts/ITempHtsEligibilityExtractErrorSummaryRepository.cs @@ -0,0 +1,9 @@ +using Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Hts +{ + public interface ITempHtsEligibilityExtractErrorSummaryRepository : ITempHTSExtractErrorSummaryRepository + { + + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Hts/ITempHtsEligibilityExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Hts/ITempHtsEligibilityExtractRepository.cs new file mode 100644 index 00000000..2543174d --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Hts/ITempHtsEligibilityExtractRepository.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Hts +{ + public interface ITempHtsEligibilityExtractRepository : IRepository + { + Task Clear(); + bool BatchInsert(IEnumerable extracts); + Task GetCleanCount(); + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPatientPrepExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPatientPrepExtractRepository.cs new file mode 100644 index 00000000..09f38cc0 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPatientPrepExtractRepository.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Interfaces; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface IPatientPrepExtractRepository : IRepository + { + bool BatchInsert(IEnumerable extracts); + void UpdateSendStatus(List sentItems); + long UpdateDiffSendStatus(); + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepAdverseEventExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepAdverseEventExtractRepository.cs new file mode 100644 index 00000000..2103e2ce --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepAdverseEventExtractRepository.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Interfaces; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface IPrepAdverseEventExtractRepository: IRepository{bool BatchInsert(IEnumerable extracts); void UpdateSendStatus(List sentItems);long UpdateDiffSendStatus();} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepBehaviourRiskExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepBehaviourRiskExtractRepository.cs new file mode 100644 index 00000000..cdaa7478 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepBehaviourRiskExtractRepository.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Interfaces; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface IPrepBehaviourRiskExtractRepository: IRepository{bool BatchInsert(IEnumerable extracts); void UpdateSendStatus(List sentItems);long UpdateDiffSendStatus();} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepCareTerminationExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepCareTerminationExtractRepository.cs new file mode 100644 index 00000000..7facdeff --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepCareTerminationExtractRepository.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Interfaces; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface IPrepCareTerminationExtractRepository: IRepository{bool BatchInsert(IEnumerable extracts); void UpdateSendStatus(List sentItems);long UpdateDiffSendStatus();} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepLabExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepLabExtractRepository.cs new file mode 100644 index 00000000..4bfd28c9 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepLabExtractRepository.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Interfaces; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface IPrepLabExtractRepository: IRepository{bool BatchInsert(IEnumerable extracts); void UpdateSendStatus(List sentItems);long UpdateDiffSendStatus();} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepPharmacyExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepPharmacyExtractRepository.cs new file mode 100644 index 00000000..3f9eac26 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepPharmacyExtractRepository.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Interfaces; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface IPrepPharmacyExtractRepository: IRepository{bool BatchInsert(IEnumerable extracts); void UpdateSendStatus(List sentItems);long UpdateDiffSendStatus();} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepVisitExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepVisitExtractRepository.cs new file mode 100644 index 00000000..8a870db7 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/IPrepVisitExtractRepository.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Interfaces; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface IPrepVisitExtractRepository: IRepository{bool BatchInsert(IEnumerable extracts); void UpdateSendStatus(List sentItems);long UpdateDiffSendStatus();} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPatientPrepExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPatientPrepExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..5eca691c --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPatientPrepExtractErrorSummaryRepository.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPatientPrepExtractErrorSummaryRepository: ITempExtractErrorSummaryRepository{} +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPatientPrepExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPatientPrepExtractRepository.cs new file mode 100644 index 00000000..44016c3e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPatientPrepExtractRepository.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPatientPrepExtractRepository : IRepository + { + bool BatchInsert(IEnumerable extracts); + Task Clear(); + Task GetCleanCount(); + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepAdverseEventExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepAdverseEventExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..4d1389cc --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepAdverseEventExtractErrorSummaryRepository.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPrepAdverseEventExtractErrorSummaryRepository: ITempExtractErrorSummaryRepository{} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepAdverseEventExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepAdverseEventExtractRepository.cs new file mode 100644 index 00000000..4e718429 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepAdverseEventExtractRepository.cs @@ -0,0 +1,9 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPrepAdverseEventExtractRepository: IRepository{bool BatchInsert(IEnumerable extracts);} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepBehaviourRiskExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepBehaviourRiskExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..33e35135 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepBehaviourRiskExtractErrorSummaryRepository.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPrepBehaviourRiskExtractErrorSummaryRepository: ITempExtractErrorSummaryRepository{} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepBehaviourRiskExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepBehaviourRiskExtractRepository.cs new file mode 100644 index 00000000..32d237b7 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepBehaviourRiskExtractRepository.cs @@ -0,0 +1,9 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPrepBehaviourRiskExtractRepository: IRepository{bool BatchInsert(IEnumerable extracts);} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepCareTerminationExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepCareTerminationExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..6c9cdcd5 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepCareTerminationExtractErrorSummaryRepository.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPrepCareTerminationExtractErrorSummaryRepository: ITempExtractErrorSummaryRepository{} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepCareTerminationExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepCareTerminationExtractRepository.cs new file mode 100644 index 00000000..7860e7ee --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepCareTerminationExtractRepository.cs @@ -0,0 +1,9 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPrepCareTerminationExtractRepository: IRepository{bool BatchInsert(IEnumerable extracts);} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..4a29863c --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepExtractErrorSummaryRepository.cs @@ -0,0 +1,10 @@ +using System.Collections.Generic; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPrepExtractErrorSummaryRepository + { + IEnumerable GetAll(); + IEnumerable GetByExtract(string extract); + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepLabExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepLabExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..4304e584 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepLabExtractErrorSummaryRepository.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPrepLabExtractErrorSummaryRepository: ITempExtractErrorSummaryRepository{} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepLabExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepLabExtractRepository.cs new file mode 100644 index 00000000..dc6bdfaa --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepLabExtractRepository.cs @@ -0,0 +1,9 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPrepLabExtractRepository: IRepository{bool BatchInsert(IEnumerable extracts);} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepPharmacyExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepPharmacyExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..41d6d1b4 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepPharmacyExtractErrorSummaryRepository.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPrepPharmacyExtractErrorSummaryRepository: ITempExtractErrorSummaryRepository{} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepPharmacyExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepPharmacyExtractRepository.cs new file mode 100644 index 00000000..ae525443 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepPharmacyExtractRepository.cs @@ -0,0 +1,9 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPrepPharmacyExtractRepository: IRepository{bool BatchInsert(IEnumerable extracts);} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepVisitExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepVisitExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..1e969841 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepVisitExtractErrorSummaryRepository.cs @@ -0,0 +1,7 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPrepVisitExtractErrorSummaryRepository: ITempExtractErrorSummaryRepository{} +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepVisitExtractRepository.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepVisitExtractRepository.cs new file mode 100644 index 00000000..b9c453e5 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Repository/Prep/ITempPrepVisitExtractRepository.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep +{ + public interface ITempPrepVisitExtractRepository : IRepository + { + bool BatchInsert(IEnumerable extracts); + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Services/IPrepExtractSentServcie.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Services/IPrepExtractSentServcie.cs new file mode 100644 index 00000000..4b1936d5 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Services/IPrepExtractSentServcie.cs @@ -0,0 +1,11 @@ +using System.Collections.Generic; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Services +{ + public interface IPrepExtractSentServcie + { + void UpdateSendStatus(ExtractType extractType, List sentItems); + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Validators/Crs/IMasterPatientIndexValidator.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Validators/Crs/IMasterPatientIndexValidator.cs new file mode 100644 index 00000000..f2ef5238 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Validators/Crs/IMasterPatientIndexValidator.cs @@ -0,0 +1,10 @@ +using System.Threading.Tasks; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Validators.Crs +{ + public interface IClientRegistryExtractValidator + { + + Task Validate(string sourceTable); + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Interfaces/Validators/Prep/IPrepExtractValidator.cs b/src/Dwapi.ExtractsManagement.Core/Interfaces/Validators/Prep/IPrepExtractValidator.cs new file mode 100644 index 00000000..2523e1bb --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Interfaces/Validators/Prep/IPrepExtractValidator.cs @@ -0,0 +1,9 @@ +using System.Threading.Tasks; + +namespace Dwapi.ExtractsManagement.Core.Interfaces.Validators.Prep +{ + public interface IPrepExtractValidator:IExtractValidator + { + + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Loader/Crs/ClientRegistryExtractLoader.cs b/src/Dwapi.ExtractsManagement.Core/Loader/Crs/ClientRegistryExtractLoader.cs new file mode 100644 index 00000000..bac530e0 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Loader/Crs/ClientRegistryExtractLoader.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Crs; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Crs; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; +using Dwapi.ExtractsManagement.Core.Model.Source.Crs; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Loader.Crs +{ + public class ClientRegistryExtractLoader : IClientRegistryExtractLoader + { + private readonly IClientRegistryExtractRepository _clientRegistryExtractRepository; + private readonly ITempClientRegistryExtractRepository _tempClientRegistryExtractRepository; + private int Found { get; set; } + private Guid ExtractId { get; set; } + + public ClientRegistryExtractLoader(IClientRegistryExtractRepository clientRegistryExtractRepository, ITempClientRegistryExtractRepository tempClientRegistryExtractRepository) + { + _clientRegistryExtractRepository = clientRegistryExtractRepository; + _tempClientRegistryExtractRepository = tempClientRegistryExtractRepository; + } + + public Task Load(bool diffSupport) + { + var mapper = diffSupport ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + try + { + //load temp extracts without errors + var tempClientRegistryExtracts = _tempClientRegistryExtractRepository.GetAll().Where(a=>a.CheckError == false).ToList(); + + //Auto mapper + var extractRecords = mapper.Map, List>(tempClientRegistryExtracts); + + //Batch Insert + // TODO PLEASE PAGE DIS + _clientRegistryExtractRepository.BatchInsert(extractRecords); + Log.Debug("saved batch"); + + DomainEvents.Dispatch(new CrsNotification(new ExtractProgress(nameof(ClientRegistryExtract), "Loading...", Found, 0, 0, 0, 0))); + return Task.FromResult(tempClientRegistryExtracts.Count); + + } + catch (Exception e) + { + Log.Error(e, $"Extract {nameof(ClientRegistryExtract)} not Loaded"); + throw; + } + } + + public Task Load(Guid extractId, int found, bool diffSupport) + { + Found = found; + ExtractId = extractId; + return Load(diffSupport); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Loader/Dwh/CovidLoader.cs b/src/Dwapi.ExtractsManagement.Core/Loader/Dwh/CovidLoader.cs new file mode 100644 index 00000000..480c6270 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Loader/Dwh/CovidLoader.cs @@ -0,0 +1,101 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using AutoMapper; +using Dwapi.ExtractsManagement.Core.Application.Events; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Loader.Dwh +{ + public class CovidLoader : ICovidLoader + { + private readonly ICovidExtractRepository _CovidExtractRepository; + private readonly ITempCovidExtractRepository _tempCovidExtractRepository; + private readonly IMediator _mediator; + + public CovidLoader(ICovidExtractRepository CovidExtractRepository, ITempCovidExtractRepository tempCovidExtractRepository, IMediator mediator) + { + _CovidExtractRepository = CovidExtractRepository; + _tempCovidExtractRepository = tempCovidExtractRepository; + _mediator = mediator; + } + + public async Task Load(Guid extractId, int found, bool diffSupport) + { + int count = 0; var mapper = diffSupport ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + try + { + DomainEvents.Dispatch( + new ExtractActivityNotification(extractId, new DwhProgress( + nameof(CovidExtract), + nameof(ExtractStatus.Loading), + found, 0, 0, 0, 0))); + + + StringBuilder query = new StringBuilder(); + query.Append($" SELECT s.* FROM {nameof(TempCovidExtract)}s s"); + query.Append($" INNER JOIN PatientExtracts p ON "); + query.Append($" s.PatientPK = p.PatientPK AND "); + query.Append($" s.SiteCode = p.SiteCode "); + + const int take = 1000; + var eCount = await _tempCovidExtractRepository.GetCount(query.ToString()); + var pageCount = _tempCovidExtractRepository.PageCount(take, eCount); + + int page = 1; + while (page <= pageCount) + { + var tempCovidExtracts =await + _tempCovidExtractRepository.ReadAll(query.ToString(), page, take); + + var batch = tempCovidExtracts.ToList(); + count += batch.Count; + + //Auto mapper + var extractRecords = mapper.Map, List>(batch); + foreach (var record in extractRecords) + { + record.Id = LiveGuid.NewGuid(); + } + //Batch Insert + var inserted = _CovidExtractRepository.BatchInsert(extractRecords); + if (!inserted) + { + Log.Error($"Extract {nameof(CovidExtract)} not Loaded"); + return 0; + } + Log.Debug("saved batch"); + page++; + DomainEvents.Dispatch( + new ExtractActivityNotification(extractId, new DwhProgress( + nameof(CovidExtract), + nameof(ExtractStatus.Loading), + found, count , 0, 0, 0))); + } + + await _mediator.Publish(new DocketExtractLoaded("NDWH", nameof(CovidExtract))); + + return count; + } + catch (Exception e) + { + Log.Error(e, $"Extract {nameof(CovidExtract)} not Loaded"); + return 0; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Loader/Dwh/DefaulterTracingLoader.cs b/src/Dwapi.ExtractsManagement.Core/Loader/Dwh/DefaulterTracingLoader.cs new file mode 100644 index 00000000..0f6b64f7 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Loader/Dwh/DefaulterTracingLoader.cs @@ -0,0 +1,101 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using AutoMapper; +using Dwapi.ExtractsManagement.Core.Application.Events; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Loader.Dwh +{ + public class DefaulterTracingLoader : IDefaulterTracingLoader + { + private readonly IDefaulterTracingExtractRepository _DefaulterTracingExtractRepository; + private readonly ITempDefaulterTracingExtractRepository _tempDefaulterTracingExtractRepository; + private readonly IMediator _mediator; + + public DefaulterTracingLoader(IDefaulterTracingExtractRepository DefaulterTracingExtractRepository, ITempDefaulterTracingExtractRepository tempDefaulterTracingExtractRepository, IMediator mediator) + { + _DefaulterTracingExtractRepository = DefaulterTracingExtractRepository; + _tempDefaulterTracingExtractRepository = tempDefaulterTracingExtractRepository; + _mediator = mediator; + } + + public async Task Load(Guid extractId, int found, bool diffSupport) + { + int count = 0; var mapper = diffSupport ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + try + { + DomainEvents.Dispatch( + new ExtractActivityNotification(extractId, new DwhProgress( + nameof(DefaulterTracingExtract), + nameof(ExtractStatus.Loading), + found, 0, 0, 0, 0))); + + + StringBuilder query = new StringBuilder(); + query.Append($" SELECT s.* FROM {nameof(TempDefaulterTracingExtract)}s s"); + query.Append($" INNER JOIN PatientExtracts p ON "); + query.Append($" s.PatientPK = p.PatientPK AND "); + query.Append($" s.SiteCode = p.SiteCode "); + + const int take = 1000; + var eCount = await _tempDefaulterTracingExtractRepository.GetCount(query.ToString()); + var pageCount = _tempDefaulterTracingExtractRepository.PageCount(take, eCount); + + int page = 1; + while (page <= pageCount) + { + var tempDefaulterTracingExtracts =await + _tempDefaulterTracingExtractRepository.ReadAll(query.ToString(), page, take); + + var batch = tempDefaulterTracingExtracts.ToList(); + count += batch.Count; + + //Auto mapper + var extractRecords = mapper.Map, List>(batch); + foreach (var record in extractRecords) + { + record.Id = LiveGuid.NewGuid(); + } + //Batch Insert + var inserted = _DefaulterTracingExtractRepository.BatchInsert(extractRecords); + if (!inserted) + { + Log.Error($"Extract {nameof(DefaulterTracingExtract)} not Loaded"); + return 0; + } + Log.Debug("saved batch"); + page++; + DomainEvents.Dispatch( + new ExtractActivityNotification(extractId, new DwhProgress( + nameof(DefaulterTracingExtract), + nameof(ExtractStatus.Loading), + found, count , 0, 0, 0))); + } + + await _mediator.Publish(new DocketExtractLoaded("NDWH", nameof(DefaulterTracingExtract))); + + return count; + } + catch (Exception e) + { + Log.Error(e, $"Extract {nameof(DefaulterTracingExtract)} not Loaded"); + return 0; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Loader/Hts/HtsEligibilityExtractLoader.cs b/src/Dwapi.ExtractsManagement.Core/Loader/Hts/HtsEligibilityExtractLoader.cs new file mode 100644 index 00000000..5a179236 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Loader/Hts/HtsEligibilityExtractLoader.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using AutoMapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Hts; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Hts; +using Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts; +using Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Hts.TempExtracts; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Loader.Hts +{ + public class HtsEligibilityExtractLoader : IHtsEligibilityExtractLoader + { + private readonly IHtsEligibilityExtractRepository _htsEligibilityExtractRepository; + private readonly ITempHtsEligibilityExtractRepository _tempHtsEligibilityExtractRepository; + private int Found { get; set; } + private Guid ExtractId { get; set; } + + public HtsEligibilityExtractLoader(IHtsEligibilityExtractRepository htsEligibilityExtractRepository, ITempHtsEligibilityExtractRepository tempHtsEligibilityExtractRepository) + { + _htsEligibilityExtractRepository = htsEligibilityExtractRepository; + _tempHtsEligibilityExtractRepository = tempHtsEligibilityExtractRepository; + } + + public async Task Load(bool diffSupport) + { + var mapper = diffSupport ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + int count = 0; + + try + { + const int take = 1000; + var eCount = await _tempHtsEligibilityExtractRepository.GetCleanCount(); + var pageCount = _tempHtsEligibilityExtractRepository.PageCount(take, eCount); + + int page = 1; + while (page <= pageCount) + { + var tempHtsEligibilityExtracts =await + _tempHtsEligibilityExtractRepository.GetAll(QueryUtil.Eligibility, page, take); + + var batch = tempHtsEligibilityExtracts.ToList(); + count += batch.Count; + //Auto mapper + var extractRecords = mapper.Map, List>(batch); + foreach (var record in extractRecords) + { + record.Id = LiveGuid.NewGuid(); + } + //Batch Insert + var inserted = _htsEligibilityExtractRepository.BatchInsert(extractRecords); + if (!inserted) + { + Log.Error($"Extract {nameof(HtsEligibilityExtract)} not Loaded"); + return 0; + } + Log.Debug("saved batch"); + page++; + } + DomainEvents.Dispatch(new HtsNotification(new ExtractProgress(nameof(HtsEligibilityExtract), "Loading...", Found, 0, 0, 0, 0))); + return count; + } + catch (Exception e) + { + Log.Error(e, $"Extract {nameof(HtsEligibilityExtract)} not Loaded"); + throw; + } + } + + public Task Load(Guid extractId, int found, bool diffSupport) + { + Found = found; + ExtractId = extractId; + return Load(diffSupport); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Loader/Hts/QueryUtil.cs b/src/Dwapi.ExtractsManagement.Core/Loader/Hts/QueryUtil.cs index 57ce7587..0217e248 100644 --- a/src/Dwapi.ExtractsManagement.Core/Loader/Hts/QueryUtil.cs +++ b/src/Dwapi.ExtractsManagement.Core/Loader/Hts/QueryUtil.cs @@ -8,6 +8,7 @@ public class QueryUtil public static string Pns => QueryBuilder("TempHtsPartnerNotificationServicesExtracts"); public static string PartnerTracing => QueryBuilder("TempHtsPartnerTracingExtracts"); public static string Kits => QueryBuilder("TempHtsTestKitsExtracts"); + public static string Eligibility => QueryBuilder("TempHtsEligibilityExtracts"); public static string LinkageCount => QueryBuilder("TempHtsClientsLinkageExtracts", true); public static string TestsCount => QueryBuilder("TempHtsClientTestsExtracts", true); @@ -15,6 +16,8 @@ public class QueryUtil public static string PnsCount => QueryBuilder("TempHtsPartnerNotificationServicesExtracts", true); public static string PartnerTracingCount => QueryBuilder("TempHtsPartnerTracingExtracts", true); public static string KitsCount => QueryBuilder("TempHtsTestKitsExtracts", true); + public static string EligibilityCount => QueryBuilder("TempHtsEligibilityExtracts", true); + public static string QueryBuilder(string extract, bool count = false) { diff --git a/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PatientPrepLoader.cs b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PatientPrepLoader.cs new file mode 100644 index 00000000..59a9a409 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PatientPrepLoader.cs @@ -0,0 +1,91 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Application.Events; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Loader.Prep +{ + public class PatientPrepLoader : IPatientPrepLoader + { + private readonly IPatientPrepExtractRepository _patientPrepExtractRepository; + private readonly ITempPatientPrepExtractRepository _tempPatientPrepExtractRepository; + private readonly IMediator _mediator; + + public PatientPrepLoader(IPatientPrepExtractRepository patientPrepExtractRepository, ITempPatientPrepExtractRepository tempPatientPrepExtractRepository, IMediator mediator) + { + _patientPrepExtractRepository = patientPrepExtractRepository; + _tempPatientPrepExtractRepository = tempPatientPrepExtractRepository; + _mediator = mediator; + } + + public async Task Load(Guid extractId, int found, bool diffSupport) + { + int count = 0; var mapper = diffSupport ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + try + { + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PatientPrepExtract), + nameof(ExtractStatus.Loading), + found, 0, 0, 0, 0))); + + const int take = 500; + var eCount = await _tempPatientPrepExtractRepository.GetCleanCount(); + var pageCount = _tempPatientPrepExtractRepository.PageCount(take, eCount); + + int page = 1; + while (page <= pageCount) + { + var tempPatientPrepExtracts = await + _tempPatientPrepExtractRepository.GetAll(a => a.ErrorType == 0, page, take); + + var batch = tempPatientPrepExtracts.ToList(); + count += batch.Count; + //Auto mapper + var extractRecords = mapper.Map, List>(batch); + foreach (var record in extractRecords) + { + record.Id = LiveGuid.NewGuid(); + } + //Batch Insert + var inserted = _patientPrepExtractRepository.BatchInsert(extractRecords); + if (!inserted) + { + Log.Error($"Extract {nameof(PatientPrepExtract)} not Loaded"); + return 0; + } + Log.Debug("saved batch"); + page++; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PatientPrepExtract), + nameof(ExtractStatus.Loading), + found, count, 0, 0, 0))); + } + + await _mediator.Publish(new DocketExtractLoaded("MNCH", nameof(PatientPrepExtract))); + + return count; + } + catch (Exception e) + { + Log.Error(e, $"Extract {nameof(PatientPrepExtract)} not Loaded"); + throw; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepAdverseEventLoader.cs b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepAdverseEventLoader.cs new file mode 100644 index 00000000..1c376e51 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepAdverseEventLoader.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Application.Events; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Loader.Prep +{ + public class PrepAdverseEventLoader : IPrepAdverseEventLoader + { + private readonly IPrepAdverseEventExtractRepository _prepAdverseEventExtractRepository; + private readonly ITempPrepAdverseEventExtractRepository _tempPrepAdverseEventExtractRepository; + private readonly IMediator _mediator; + + public PrepAdverseEventLoader(IPrepAdverseEventExtractRepository prepAdverseEventExtractRepository, ITempPrepAdverseEventExtractRepository tempPrepAdverseEventExtractRepository, IMediator mediator) + { + _prepAdverseEventExtractRepository = prepAdverseEventExtractRepository; + _tempPrepAdverseEventExtractRepository = tempPrepAdverseEventExtractRepository; + _mediator = mediator; + } + + public async Task Load(Guid extractId, int found, bool diffSupport) + { + int count = 0; var mapper = diffSupport ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + try + { + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PrepAdverseEventExtract), + nameof(ExtractStatus.Loading), + found, 0, 0, 0, 0))); + + + StringBuilder query = new StringBuilder(); + query.Append($" SELECT s.* FROM {nameof(TempPrepAdverseEventExtract)}s s"); + query.Append($" INNER JOIN PatientPrepExtracts p ON "); + query.Append($" s.PatientPK = p.PatientPK AND "); + query.Append($" s.SiteCode = p.SiteCode "); + + const int take = 1000; + var eCount = await _tempPrepAdverseEventExtractRepository.GetCount(query.ToString()); + var pageCount = _tempPrepAdverseEventExtractRepository.PageCount(take, eCount); + + int page = 1; + while (page <= pageCount) + { + var tempPrepAdverseEventExtracts =await + _tempPrepAdverseEventExtractRepository.ReadAll(query.ToString(), page, take); + + var batch = tempPrepAdverseEventExtracts.ToList(); + count += batch.Count; + + //Auto mapper + var extractRecords = mapper.Map, List>(batch); + foreach (var record in extractRecords) + { + record.Id = LiveGuid.NewGuid(); + } + //Batch Insert + var inserted = _prepAdverseEventExtractRepository.BatchInsert(extractRecords); + if (!inserted) + { + Log.Error($"Extract {nameof(PrepAdverseEventExtract)} not Loaded"); + return 0; + } + Log.Debug("saved batch"); + page++; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PrepAdverseEventExtract), + nameof(ExtractStatus.Loading), + found, count , 0, 0, 0))); + } + + await _mediator.Publish(new DocketExtractLoaded("MNCH", nameof(PrepAdverseEventExtract))); + + return count; + } + catch (Exception e) + { + Log.Error(e, $"Extract {nameof(PrepAdverseEventExtract)} not Loaded"); + return 0; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepBehaviourRiskLoader.cs b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepBehaviourRiskLoader.cs new file mode 100644 index 00000000..0ad22269 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepBehaviourRiskLoader.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Application.Events; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Loader.Prep +{ + public class PrepBehaviourRiskLoader : IPrepBehaviourRiskLoader + { + private readonly IPrepBehaviourRiskExtractRepository _prepBehaviourRiskExtractRepository; + private readonly ITempPrepBehaviourRiskExtractRepository _tempPrepBehaviourRiskExtractRepository; + private readonly IMediator _mediator; + + public PrepBehaviourRiskLoader(IPrepBehaviourRiskExtractRepository prepBehaviourRiskExtractRepository, ITempPrepBehaviourRiskExtractRepository tempPrepBehaviourRiskExtractRepository, IMediator mediator) + { + _prepBehaviourRiskExtractRepository = prepBehaviourRiskExtractRepository; + _tempPrepBehaviourRiskExtractRepository = tempPrepBehaviourRiskExtractRepository; + _mediator = mediator; + } + + public async Task Load(Guid extractId, int found, bool diffSupport) + { + int count = 0; var mapper = diffSupport ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + try + { + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PrepBehaviourRiskExtract), + nameof(ExtractStatus.Loading), + found, 0, 0, 0, 0))); + + + StringBuilder query = new StringBuilder(); + query.Append($" SELECT s.* FROM {nameof(TempPrepBehaviourRiskExtract)}s s"); + query.Append($" INNER JOIN PatientPrepExtracts p ON "); + query.Append($" s.PatientPK = p.PatientPK AND "); + query.Append($" s.SiteCode = p.SiteCode "); + + const int take = 1000; + var eCount = await _tempPrepBehaviourRiskExtractRepository.GetCount(query.ToString()); + var pageCount = _tempPrepBehaviourRiskExtractRepository.PageCount(take, eCount); + + int page = 1; + while (page <= pageCount) + { + var tempPrepBehaviourRiskExtracts =await + _tempPrepBehaviourRiskExtractRepository.ReadAll(query.ToString(), page, take); + + var batch = tempPrepBehaviourRiskExtracts.ToList(); + count += batch.Count; + + //Auto mapper + var extractRecords = mapper.Map, List>(batch); + foreach (var record in extractRecords) + { + record.Id = LiveGuid.NewGuid(); + } + //Batch Insert + var inserted = _prepBehaviourRiskExtractRepository.BatchInsert(extractRecords); + if (!inserted) + { + Log.Error($"Extract {nameof(PrepBehaviourRiskExtract)} not Loaded"); + return 0; + } + Log.Debug("saved batch"); + page++; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PrepBehaviourRiskExtract), + nameof(ExtractStatus.Loading), + found, count , 0, 0, 0))); + } + + await _mediator.Publish(new DocketExtractLoaded("MNCH", nameof(PrepBehaviourRiskExtract))); + + return count; + } + catch (Exception e) + { + Log.Error(e, $"Extract {nameof(PrepBehaviourRiskExtract)} not Loaded"); + return 0; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepCareTerminationLoader.cs b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepCareTerminationLoader.cs new file mode 100644 index 00000000..8a88aff1 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepCareTerminationLoader.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Application.Events; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Loader.Prep +{ + public class PrepCareTerminationLoader : IPrepCareTerminationLoader + { + private readonly IPrepCareTerminationExtractRepository _prepCareTerminationExtractRepository; + private readonly ITempPrepCareTerminationExtractRepository _tempPrepCareTerminationExtractRepository; + private readonly IMediator _mediator; + + public PrepCareTerminationLoader(IPrepCareTerminationExtractRepository prepCareTerminationExtractRepository, ITempPrepCareTerminationExtractRepository tempPrepCareTerminationExtractRepository, IMediator mediator) + { + _prepCareTerminationExtractRepository = prepCareTerminationExtractRepository; + _tempPrepCareTerminationExtractRepository = tempPrepCareTerminationExtractRepository; + _mediator = mediator; + } + + public async Task Load(Guid extractId, int found, bool diffSupport) + { + int count = 0; var mapper = diffSupport ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + try + { + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PrepCareTerminationExtract), + nameof(ExtractStatus.Loading), + found, 0, 0, 0, 0))); + + + StringBuilder query = new StringBuilder(); + query.Append($" SELECT s.* FROM {nameof(TempPrepCareTerminationExtract)}s s"); + query.Append($" INNER JOIN PatientPrepExtracts p ON "); + query.Append($" s.PatientPK = p.PatientPK AND "); + query.Append($" s.SiteCode = p.SiteCode "); + + const int take = 1000; + var eCount = await _tempPrepCareTerminationExtractRepository.GetCount(query.ToString()); + var pageCount = _tempPrepCareTerminationExtractRepository.PageCount(take, eCount); + + int page = 1; + while (page <= pageCount) + { + var tempPrepCareTerminationExtracts =await + _tempPrepCareTerminationExtractRepository.ReadAll(query.ToString(), page, take); + + var batch = tempPrepCareTerminationExtracts.ToList(); + count += batch.Count; + + //Auto mapper + var extractRecords = mapper.Map, List>(batch); + foreach (var record in extractRecords) + { + record.Id = LiveGuid.NewGuid(); + } + //Batch Insert + var inserted = _prepCareTerminationExtractRepository.BatchInsert(extractRecords); + if (!inserted) + { + Log.Error($"Extract {nameof(PrepCareTerminationExtract)} not Loaded"); + return 0; + } + Log.Debug("saved batch"); + page++; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PrepCareTerminationExtract), + nameof(ExtractStatus.Loading), + found, count , 0, 0, 0))); + } + + await _mediator.Publish(new DocketExtractLoaded("MNCH", nameof(PrepCareTerminationExtract))); + + return count; + } + catch (Exception e) + { + Log.Error(e, $"Extract {nameof(PrepCareTerminationExtract)} not Loaded"); + return 0; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepLabLoader.cs b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepLabLoader.cs new file mode 100644 index 00000000..9bbfeebf --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepLabLoader.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Application.Events; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Loader.Prep +{ + public class PrepLabLoader : IPrepLabLoader + { + private readonly IPrepLabExtractRepository _prepLabExtractRepository; + private readonly ITempPrepLabExtractRepository _tempPrepLabExtractRepository; + private readonly IMediator _mediator; + + public PrepLabLoader(IPrepLabExtractRepository prepLabExtractRepository, ITempPrepLabExtractRepository tempPrepLabExtractRepository, IMediator mediator) + { + _prepLabExtractRepository = prepLabExtractRepository; + _tempPrepLabExtractRepository = tempPrepLabExtractRepository; + _mediator = mediator; + } + + public async Task Load(Guid extractId, int found, bool diffSupport) + { + int count = 0; var mapper = diffSupport ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + try + { + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PrepLabExtract), + nameof(ExtractStatus.Loading), + found, 0, 0, 0, 0))); + + + StringBuilder query = new StringBuilder(); + query.Append($" SELECT s.* FROM {nameof(TempPrepLabExtract)}s s"); + query.Append($" INNER JOIN PatientPrepExtracts p ON "); + query.Append($" s.PatientPK = p.PatientPK AND "); + query.Append($" s.SiteCode = p.SiteCode "); + + const int take = 1000; + var eCount = await _tempPrepLabExtractRepository.GetCount(query.ToString()); + var pageCount = _tempPrepLabExtractRepository.PageCount(take, eCount); + + int page = 1; + while (page <= pageCount) + { + var tempPrepLabExtracts =await + _tempPrepLabExtractRepository.ReadAll(query.ToString(), page, take); + + var batch = tempPrepLabExtracts.ToList(); + count += batch.Count; + + //Auto mapper + var extractRecords = mapper.Map, List>(batch); + foreach (var record in extractRecords) + { + record.Id = LiveGuid.NewGuid(); + } + //Batch Insert + var inserted = _prepLabExtractRepository.BatchInsert(extractRecords); + if (!inserted) + { + Log.Error($"Extract {nameof(PrepLabExtract)} not Loaded"); + return 0; + } + Log.Debug("saved batch"); + page++; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PrepLabExtract), + nameof(ExtractStatus.Loading), + found, count , 0, 0, 0))); + } + + await _mediator.Publish(new DocketExtractLoaded("MNCH", nameof(PrepLabExtract))); + + return count; + } + catch (Exception e) + { + Log.Error(e, $"Extract {nameof(PrepLabExtract)} not Loaded"); + return 0; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepPharmacyLoader.cs b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepPharmacyLoader.cs new file mode 100644 index 00000000..2938cafb --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepPharmacyLoader.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Application.Events; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Loader.Prep +{ + public class PrepPharmacyLoader : IPrepPharmacyLoader + { + private readonly IPrepPharmacyExtractRepository _prepPharmacyExtractRepository; + private readonly ITempPrepPharmacyExtractRepository _tempPrepPharmacyExtractRepository; + private readonly IMediator _mediator; + + public PrepPharmacyLoader(IPrepPharmacyExtractRepository prepPharmacyExtractRepository, ITempPrepPharmacyExtractRepository tempPrepPharmacyExtractRepository, IMediator mediator) + { + _prepPharmacyExtractRepository = prepPharmacyExtractRepository; + _tempPrepPharmacyExtractRepository = tempPrepPharmacyExtractRepository; + _mediator = mediator; + } + + public async Task Load(Guid extractId, int found, bool diffSupport) + { + int count = 0; var mapper = diffSupport ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + try + { + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PrepPharmacyExtract), + nameof(ExtractStatus.Loading), + found, 0, 0, 0, 0))); + + + StringBuilder query = new StringBuilder(); + query.Append($" SELECT s.* FROM {nameof(TempPrepPharmacyExtract)}s s"); + query.Append($" INNER JOIN PatientPrepExtracts p ON "); + query.Append($" s.PatientPK = p.PatientPK AND "); + query.Append($" s.SiteCode = p.SiteCode "); + + const int take = 1000; + var eCount = await _tempPrepPharmacyExtractRepository.GetCount(query.ToString()); + var pageCount = _tempPrepPharmacyExtractRepository.PageCount(take, eCount); + + int page = 1; + while (page <= pageCount) + { + var tempPrepPharmacyExtracts =await + _tempPrepPharmacyExtractRepository.ReadAll(query.ToString(), page, take); + + var batch = tempPrepPharmacyExtracts.ToList(); + count += batch.Count; + + //Auto mapper + var extractRecords = mapper.Map, List>(batch); + foreach (var record in extractRecords) + { + record.Id = LiveGuid.NewGuid(); + } + //Batch Insert + var inserted = _prepPharmacyExtractRepository.BatchInsert(extractRecords); + if (!inserted) + { + Log.Error($"Extract {nameof(PrepPharmacyExtract)} not Loaded"); + return 0; + } + Log.Debug("saved batch"); + page++; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PrepPharmacyExtract), + nameof(ExtractStatus.Loading), + found, count , 0, 0, 0))); + } + + await _mediator.Publish(new DocketExtractLoaded("MNCH", nameof(PrepPharmacyExtract))); + + return count; + } + catch (Exception e) + { + Log.Error(e, $"Extract {nameof(PrepPharmacyExtract)} not Loaded"); + return 0; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepVisitLoader.cs b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepVisitLoader.cs new file mode 100644 index 00000000..e175760e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Loader/Prep/PrepVisitLoader.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Application.Events; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.ExtractsManagement.Core.Profiles; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using MediatR; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Loader.Prep +{ + public class PrepVisitLoader : IPrepVisitLoader + { + private readonly IPrepVisitExtractRepository _prepVisitExtractRepository; + private readonly ITempPrepVisitExtractRepository _tempPrepVisitExtractRepository; + private readonly IMediator _mediator; + + public PrepVisitLoader(IPrepVisitExtractRepository prepVisitExtractRepository, ITempPrepVisitExtractRepository tempPrepVisitExtractRepository, IMediator mediator) + { + _prepVisitExtractRepository = prepVisitExtractRepository; + _tempPrepVisitExtractRepository = tempPrepVisitExtractRepository; + _mediator = mediator; + } + + public async Task Load(Guid extractId, int found, bool diffSupport) + { + int count = 0; var mapper = diffSupport ? ExtractDiffMapper.Instance : ExtractMapper.Instance; + + try + { + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PrepVisitExtract), + nameof(ExtractStatus.Loading), + found, 0, 0, 0, 0))); + + + StringBuilder query = new StringBuilder(); + query.Append($" SELECT s.* FROM {nameof(TempPrepVisitExtract)}s s"); + query.Append($" INNER JOIN PatientPrepExtracts p ON "); + query.Append($" s.PatientPK = p.PatientPK AND "); + query.Append($" s.SiteCode = p.SiteCode "); + + const int take = 1000; + var eCount = await _tempPrepVisitExtractRepository.GetCount(query.ToString()); + var pageCount = _tempPrepVisitExtractRepository.PageCount(take, eCount); + + int page = 1; + while (page <= pageCount) + { + var tempPrepVisitExtracts =await + _tempPrepVisitExtractRepository.ReadAll(query.ToString(), page, take); + + var batch = tempPrepVisitExtracts.ToList(); + count += batch.Count; + + //Auto mapper + var extractRecords = mapper.Map, List>(batch); + foreach (var record in extractRecords) + { + record.Id = LiveGuid.NewGuid(); + } + //Batch Insert + var inserted = _prepVisitExtractRepository.BatchInsert(extractRecords); + if (!inserted) + { + Log.Error($"Extract {nameof(PrepVisitExtract)} not Loaded"); + return 0; + } + Log.Debug("saved batch"); + page++; + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new DwhProgress( + nameof(PrepVisitExtract), + nameof(ExtractStatus.Loading), + found, count , 0, 0, 0))); + } + + await _mediator.Publish(new DocketExtractLoaded("MNCH", nameof(PrepVisitExtract))); + + return count; + } + catch (Exception e) + { + Log.Error(e, $"Extract {nameof(PrepVisitExtract)} not Loaded"); + return 0; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Crs/ClientRegistryExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Crs/ClientRegistryExtract.cs new file mode 100644 index 00000000..d5c2bca6 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Crs/ClientRegistryExtract.cs @@ -0,0 +1,50 @@ +using System; +using Dwapi.Contracts.Crs; + +namespace Dwapi.ExtractsManagement.Core.Model.Destination.Crs +{ + public class ClientRegistryExtract : CrsClientExtract,IClientRegistry + { + public string CCCNumber { get; set; } + public string NationalId { get; set; } + public string Passport { get; set; } + public string HudumaNumber { get; set; } + public string BirthCertificateNumber { get; set; } + public string AlienIdNo { get; set; } + public string DrivingLicenseNumber { get; set; } + public string PatientClinicNumber { get; set; } + public string FirstName { get; set; } + public string MiddleName { get; set; } + public string LastName { get; set; } + public DateTime? DateOfBirth { get; set; } + public string Sex { get; set; } + public string MaritalStatus { get; set; } + public string Occupation { get; set; } + public string HighestLevelOfEducation { get; set; } + public string PhoneNumber { get; set; } + public string AlternativePhoneNumber { get; set; } + public string SpousePhoneNumber { get; set; } + public string NameOfNextOfKin { get; set; } + public string NextOfKinRelationship { get; set; } + public string NextOfKinTelNo { get; set; } + public string County { get; set; } + public string SubCounty { get; set; } + public string Ward { get; set; } + public string Location { get; set; } + public string Village { get; set; } + public string Landmark { get; set; } + public string FacilityName { get; set; } + public string MFLCode { get; set; } + public DateTime? DateOfInitiation { get; set; } + public string TreatmentOutcome { get; set; } + public DateTime? DateOfLastEncounter { get; set; } + public DateTime? DateOfLastViralLoad { get; set; } + public DateTime? NextAppointmentDate { get; set; } + + public string LastRegimen { get; set; } + public string LastRegimenLine { get; set; } + public string CurrentOnART { get; set; } + public DateTime? DateOfHIVdiagnosis { get; set; } + public string LastViralLoadResult { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Crs/CrsClientExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Crs/CrsClientExtract.cs new file mode 100644 index 00000000..d93b51a3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Crs/CrsClientExtract.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; + +namespace Dwapi.ExtractsManagement.Core.Model.Destination.Crs +{ + public abstract class CrsClientExtract : Entity + { + public virtual int PatientPK { get; set; } + public virtual int SiteCode { get; set; } + + public virtual string PatientID { get; set; } + public virtual int? FacilityId { get; set; } + public virtual bool? Processed { get; set; } + public virtual string QueueId { get; set; } + public virtual string Status { get; set; } + public virtual DateTime? StatusDate { get; set; } + public virtual DateTime? DateExtracted { get; set; } + public string Emr { get; set; } + public string Project { get; set; } + public virtual DateTime? Date_Created { get; set; } + public virtual DateTime? Date_Last_Modified { get; set; } + + [NotMapped] + public bool IsSent => !string.IsNullOrWhiteSpace(Status) && Status.IsSameAs(nameof(SendStatus.Sent)); + + public override string ToString() + { + return $"{SiteCode}-{PatientID}"; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/ContactListingExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/ContactListingExtract.cs index 16625819..2722cfcc 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/ContactListingExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/ContactListingExtract.cs @@ -16,6 +16,6 @@ public class ContactListingExtract : ClientExtract, IContactListing public string CurrentlyLivingWithIndexClient { get; set; } public string KnowledgeOfHivStatus { get; set; } public string PnsApproach { get; set; } - + public int? ContactPatientPK { get; set; } } } \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/CovidExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/CovidExtract.cs new file mode 100644 index 00000000..4272b648 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/CovidExtract.cs @@ -0,0 +1,41 @@ +using System; +using Dwapi.Contracts.Ct; + +namespace Dwapi.ExtractsManagement.Core.Model.Destination.Dwh +{ + public class CovidExtract : ClientExtract,ICovid + { + public string FacilityName { get; set; } + public int? VisitID { get; set; } + public DateTime? Covid19AssessmentDate { get; set; } + public string ReceivedCOVID19Vaccine { get; set; } + public DateTime? DateGivenFirstDose { get; set; } + public string FirstDoseVaccineAdministered { get; set; } + public DateTime? DateGivenSecondDose { get; set; } + public string SecondDoseVaccineAdministered { get; set; } + public string VaccinationStatus { get; set; } + public string VaccineVerification { get; set; } + public string BoosterGiven { get; set; } + public string BoosterDose { get; set; } + public DateTime? BoosterDoseDate { get; set; } + public string EverCOVID19Positive { get; set; } + public DateTime? COVID19TestDate { get; set; } + public string PatientStatus { get; set; } + public string AdmissionStatus { get; set; } + public string AdmissionUnit { get; set; } + public string MissedAppointmentDueToCOVID19 { get; set; } + public string COVID19PositiveSinceLasVisit { get; set; } + public DateTime? COVID19TestDateSinceLastVisit { get; set; } + public string PatientStatusSinceLastVisit { get; set; } + public string AdmissionStatusSinceLastVisit { get; set; } + public DateTime? AdmissionStartDate { get; set; } + public DateTime? AdmissionEndDate { get; set; } + public string AdmissionUnitSinceLastVisit { get; set; } + public string SupplementalOxygenReceived { get; set; } + public string PatientVentilated { get; set; } + public string TracingFinalOutcome { get; set; } + public string CauseOfDeath { get; set; } + public string COVID19TestResult { get; set; } + public string Sequence { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/DefaulterTracingExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/DefaulterTracingExtract.cs new file mode 100644 index 00000000..40b4fdf6 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/DefaulterTracingExtract.cs @@ -0,0 +1,21 @@ +using System; +using Dwapi.Contracts.Ct; + +namespace Dwapi.ExtractsManagement.Core.Model.Destination.Dwh +{ + public class DefaulterTracingExtract : ClientExtract,IDefaulterTracing + { + public string FacilityName { get; set; } + public int? VisitID { get; set; } + public DateTime? VisitDate { get; set; } + public int? EncounterId { get; set; } + public string TracingType { get; set; } + public string TracingOutcome { get; set; } + public int? AttemptNumber { get; set; } + public string IsFinalTrace { get; set; } + public string TrueStatus { get; set; } + public string CauseOfDeath { get; set; } + public string Comments { get; set; } + public DateTime? BookingDate { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/PatientExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/PatientExtract.cs index f7db1e9f..2b0c206d 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/PatientExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/PatientExtract.cs @@ -41,6 +41,7 @@ public class PatientExtract : ClientExtract,IPatient public DateTime? TransferInDate { get; set; } public string Pkv { get; set; } public string Occupation { get; set; } + public string NUPI { get; set; } public virtual ICollection PatientArtExtracts { get; set; } = new List(); public virtual ICollection PatientBaselinesExtracts { get; set; } = new List(); public virtual ICollection PatientLaboratoryExtracts { get; set; } = new List(); @@ -59,5 +60,8 @@ public class PatientExtract : ClientExtract,IPatient public virtual ICollection OtzExtracts { get; set; } = new List(); public virtual ICollection OvcExtracts { get; set; } = new List(); + public virtual ICollection CovidExtracts { get; set; } = new List(); + public virtual ICollection DefaulterTracingExtracts { get; set; } = new List(); + } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/PatientStatusExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/PatientStatusExtract.cs index 422e72f8..846415a1 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/PatientStatusExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/PatientStatusExtract.cs @@ -13,5 +13,11 @@ public class PatientStatusExtract : ClientExtract,IStatus public string TOVerified { get; set; } public DateTime? TOVerifiedDate { get; set; } public DateTime? ReEnrollmentDate { get; set; } + + + public string ReasonForDeath { get; set; } + public string SpecificDeathReason { get; set; } + public DateTime? DeathDate { get; set; } + public DateTime? EffectiveDiscontinuationDate { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/PatientVisitExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/PatientVisitExtract.cs index 1e6fd731..d5033786 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/PatientVisitExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/PatientVisitExtract.cs @@ -65,5 +65,6 @@ public class PatientVisitExtract : ClientExtract, IVisit public string Abdomen { get; set; } public string CNS { get; set; } public string Genitourinary { get; set; } + public DateTime? RefillDate { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Hts/HTSClientExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Hts/HTSClientExtract.cs index a729412b..974c9d59 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Hts/HTSClientExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Hts/HTSClientExtract.cs @@ -2,6 +2,7 @@ namespace Dwapi.ExtractsManagement.Core.Model.Destination.Hts { + [Obsolete("Class is obsolete, use HtsClients")] public class HTSClientExtract : HTSExtract { public int EncounterId { get; set; } @@ -34,5 +35,7 @@ public class HTSClientExtract : HTSExtract public string PatientDisabled{ get; set; } public string DisabilityType { get; set; } public string PatientConsented{ get; set; } + public string NUPI { get; set; } + public string Pkv { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Hts/NewHts/HtsClients.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Hts/NewHts/HtsClients.cs index f9a0d720..d9997233 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Hts/NewHts/HtsClients.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Hts/NewHts/HtsClients.cs @@ -15,6 +15,8 @@ public class HtsClients : HtsExtract public string County { get; set; } public string SubCounty { get; set; } public string Ward { get; set; } + public string NUPI { get; set; } + public string Pkv { get; set; } public virtual ICollection HtsClientTestss { get; set; } = new List(); public virtual ICollection HtsClientTracings { get; set; } = new List(); @@ -22,5 +24,8 @@ public class HtsClients : HtsExtract public virtual ICollection HtsTestKitss { get; set; } = new List(); public virtual ICollection HtsClientLinkages { get; set; } = new List(); public virtual ICollection HtsPartnerNotificationServicess { get; set; } = new List(); + public virtual ICollection HtsEligibilityExtracts { get; set; } = new List(); + + } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Hts/NewHts/HtsEligibilityExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Hts/NewHts/HtsEligibilityExtract.cs new file mode 100644 index 00000000..cfa05077 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Hts/NewHts/HtsEligibilityExtract.cs @@ -0,0 +1,77 @@ +using System; +using Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts; + +namespace Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts +{ + public class HtsEligibilityExtract : HtsExtract + { + public string EncounterId { get; set; } + public int? VisitID { get; set; } + public DateTime? VisitDate { get; set; } + public string PopulationType { get; set; } + public string KeyPopulation { get; set; } + public string PriorityPopulation { get; set; } + public string Department { get; set; } + public string PatientType { get; set; } + public string IsHealthWorker { get; set; } + public string RelationshipWithContact { get; set; } + public string TestedHIVBefore { get; set; } + public string WhoPerformedTest { get; set; } + public string ResultOfHIV { get; set; } + public string StartedOnART { get; set; } + public string CCCNumber { get; set; } + public string EverHadSex { get; set; } + public string SexuallyActive { get; set; } + public string NewPartner { get; set; } + public string PartnerHIVStatus { get; set; } + public string CoupleDiscordant { get; set; } + public string MultiplePartners { get; set; } + public int? NumberOfPartners { get; set; } + public string AlcoholSex { get; set; } + public string MoneySex { get; set; } + public string CondomBurst { get; set; } + public string UnknownStatusPartner { get; set; } + public string KnownStatusPartner { get; set; } + public string Pregnant { get; set; } + public string BreastfeedingMother { get; set; } + public string ExperiencedGBV { get; set; } + + public string EverOnPrep { get; set; } + public string CurrentlyOnPrep { get; set; } + public string EverOnPep { get; set; } + public string CurrentlyOnPep { get; set; } + public string EverHadSTI { get; set; } + public string CurrentlyHasSTI { get; set; } + public string EverHadTB { get; set; } + public string SharedNeedle { get; set; } + public string NeedleStickInjuries { get; set; } + public string TraditionalProcedures { get; set; } + public string ChildReasonsForIneligibility { get; set; } + public string EligibleForTest { get; set; } + public string ReasonsForIneligibility { get; set; } + public int? SpecificReasonForIneligibility { get; set; } + + public string MothersStatus { get; set; } + public DateTime? DateTestedSelf { get; set; } + public string ResultOfHIVSelf { get; set; } + public DateTime? DateTestedProvider { get; set; } + public string ScreenedTB { get; set; } + public string Cough { get; set; } + public string Fever { get; set; } + public string WeightLoss { get; set; } + public string NightSweats { get; set; } + public string Lethargy { get; set; } + public string TBStatus { get; set; } + public string ReferredForTesting { get; set; } + + public string AssessmentOutcome { get; set; } + public string TypeGBV { get; set; } + public string ForcedSex { get; set; } + public string ReceivedServices { get; set; } + + public DateTime? DateCreated { get; set; } + public DateTime? DateLastModified { get; set; } + public string ContactWithTBCase { get; set; } + + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Mnch/HeiExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Mnch/HeiExtract.cs index 28901ace..4eb8eaa1 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Mnch/HeiExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Mnch/HeiExtract.cs @@ -13,12 +13,12 @@ public class HeiExtract : MnchClientExtract, IHei public DateTime? ConfirmatoryPCRDate { get; set; } public DateTime? BasellineVLDate { get; set; } public DateTime? FinalyAntibodyDate { get; set; } - public DateTime? DNAPCR1 { get; set; } - public DateTime? DNAPCR2 { get; set; } - public DateTime? DNAPCR3 { get; set; } - public DateTime? ConfirmatoryPCR { get; set; } - public DateTime? BasellineVL { get; set; } - public DateTime? FinalyAntibody { get; set; } + public string DNAPCR1 { get; set; } + public string DNAPCR2 { get; set; } + public string DNAPCR3 { get; set; } + public string ConfirmatoryPCR { get; set; } + public string BasellineVL { get; set; } + public string FinalyAntibody { get; set; } public DateTime? HEIExitDate { get; set; } public string HEIHIVStatus { get; set; } public string HEIExitCritearia { get; set; } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Mnch/PatientMnchExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Mnch/PatientMnchExtract.cs index 5c24eb5c..2ce08568 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Mnch/PatientMnchExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Mnch/PatientMnchExtract.cs @@ -23,6 +23,7 @@ public class PatientMnchExtract : MnchClientExtract, IPatientMnch public string InSchool { get; set; } public DateTime? Date_Created { get; set; } public DateTime? Date_Last_Modified { get; set; } + public string NUPI { get; set; } public virtual ICollection MnchEnrolmentExtracts { get; set; } = new List(); public virtual ICollection MnchArtExtracts { get; set; } = new List(); diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PatientPrepExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PatientPrepExtract.cs new file mode 100644 index 00000000..ae544793 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PatientPrepExtract.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; + +namespace Dwapi.ExtractsManagement.Core.Model.Destination.Prep +{ + public class PatientPrepExtract : PrepClientExtract, IPatientPrep + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public DateTime? PrepEnrollmentDate { get; set; } + public string Sex { get; set; } + public DateTime? DateofBirth { get; set; } + public string CountyofBirth { get; set; } + public string County { get; set; } + public string SubCounty { get; set; } + public string Location { get; set; } + public string LandMark { get; set; } + public string Ward { get; set; } + public string ClientType { get; set; } + public string ReferralPoint { get; set; } + public string MaritalStatus { get; set; } + public string Inschool { get; set; } + public string PopulationType { get; set; } + public string KeyPopulationType { get; set; } + public string Refferedfrom { get; set; } + public string TransferIn { get; set; } + public DateTime? TransferInDate { get; set; } + public string TransferFromFacility { get; set; } + public DateTime? DatefirstinitiatedinPrepCare { get; set; } + public DateTime? DateStartedPrEPattransferringfacility { get; set; } + public string ClientPreviouslyonPrep { get; set; } + public string PrevPrepReg { get; set; } + public DateTime? DateLastUsedPrev { get; set; } + public string NUPI { get; set; } + + + public virtual ICollection PrepBehaviourRiskExtracts { get; set; } =new List(); + public virtual ICollection PrepVisitExtracts { get; set; } = new List(); + public virtual ICollection PrepLabExtracts { get; set; } = new List(); + public virtual ICollection PrepPharmacyExtracts { get; set; } = new List(); + public virtual ICollection PrepAdverseEventExtracts { get; set; } =new List(); + public virtual ICollection PrepCareTerminationExtracts { get; set; } =new List(); + } + +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepAdverseEventExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepAdverseEventExtract.cs new file mode 100644 index 00000000..2bb5f471 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepAdverseEventExtract.cs @@ -0,0 +1,21 @@ +using System; +using Dwapi.Contracts.Prep; + +namespace Dwapi.ExtractsManagement.Core.Model.Destination.Prep +{ + public class PrepAdverseEventExtract : PrepClientExtract,IPrepAdverseEvent + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string AdverseEvent { get; set; } + public DateTime? AdverseEventStartDate { get; set; } + public DateTime? AdverseEventEndDate { get; set; } + public string Severity { get; set; } + public DateTime? VisitDate { get; set; } + public string AdverseEventActionTaken { get; set; } + public string AdverseEventClinicalOutcome { get; set; } + public string AdverseEventIsPregnant { get; set; } + public string AdverseEventCause { get; set; } + public string AdverseEventRegimen { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepBehaviourRiskExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepBehaviourRiskExtract.cs new file mode 100644 index 00000000..b80e7619 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepBehaviourRiskExtract.cs @@ -0,0 +1,31 @@ +using System; +using Dwapi.Contracts.Prep; + +namespace Dwapi.ExtractsManagement.Core.Model.Destination.Prep +{ + public class PrepBehaviourRiskExtract : PrepClientExtract,IPrepBehaviourRisk + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public DateTime? VisitDate { get; set; } + public int? VisitID { get; set; } + public string SexPartnerHIVStatus { get; set; } + public string IsHIVPositivePartnerCurrentonART { get; set; } + public string IsPartnerHighrisk { get; set; } + public string PartnerARTRisk { get; set; } + public string ClientAssessments { get; set; } + public string ClientRisk { get; set; } + public string ClientWillingToTakePrep { get; set; } + public string PrEPDeclineReason { get; set; } + public string RiskReductionEducationOffered { get; set; } + public string ReferralToOtherPrevServices { get; set; } + public DateTime? FirstEstablishPartnerStatus { get; set; } + public DateTime? PartnerEnrolledtoCCC { get; set; } + public string HIVPartnerCCCnumber { get; set; } + public DateTime? HIVPartnerARTStartDate { get; set; } + public string MonthsknownHIVSerodiscordant { get; set; } + public string SexWithoutCondom { get; set; } + public string NumberofchildrenWithPartner { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepCareTerminationExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepCareTerminationExtract.cs new file mode 100644 index 00000000..34c1f541 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepCareTerminationExtract.cs @@ -0,0 +1,15 @@ +using System; +using Dwapi.Contracts.Prep; + +namespace Dwapi.ExtractsManagement.Core.Model.Destination.Prep +{ + public class PrepCareTerminationExtract : PrepClientExtract,IPrepCareTermination + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public DateTime? ExitDate { get; set; } + public string ExitReason { get; set; } + public DateTime? DateOfLastPrepDose { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepClientExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepClientExtract.cs new file mode 100644 index 00000000..8342e9c9 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepClientExtract.cs @@ -0,0 +1,36 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using Newtonsoft.Json; + +namespace Dwapi.ExtractsManagement.Core.Model.Destination.Prep +{ + public abstract class PrepClientExtract : Entity + { + public virtual int PatientPK { get; set; } + public virtual int SiteCode { get; set; } + + public virtual string PatientID { get; set; } + [JsonIgnore] + public virtual int? FacilityId { get; set; } + public virtual bool? Processed { get; set; } + public virtual string QueueId { get; set; } + public virtual string Status { get; set; } + public virtual DateTime? StatusDate { get; set; } + public virtual DateTime? DateExtracted { get; set; } + public string Emr { get; set; } + public string Project { get; set; } + public virtual DateTime? Date_Created { get; set; } + public virtual DateTime? Date_Last_Modified { get; set; } + + [NotMapped] + public bool IsSent => !string.IsNullOrWhiteSpace(Status) && Status.IsSameAs(nameof(SendStatus.Sent)); + + public override string ToString() + { + return $"{SiteCode}-{PatientID}"; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepLabExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepLabExtract.cs new file mode 100644 index 00000000..8aa99d51 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepLabExtract.cs @@ -0,0 +1,18 @@ +using System; +using Dwapi.Contracts.Prep; + +namespace Dwapi.ExtractsManagement.Core.Model.Destination.Prep +{ + public class PrepLabExtract : PrepClientExtract,IPrepLab + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public int? VisitID { get; set; } + public string TestName { get; set; } + public string TestResult { get; set; } + public DateTime? SampleDate { get; set; } + public DateTime? TestResultDate { get; set; } + public string Reason { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepPharmacyExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepPharmacyExtract.cs new file mode 100644 index 00000000..012fc319 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepPharmacyExtract.cs @@ -0,0 +1,16 @@ +using System; +using Dwapi.Contracts.Prep; + +namespace Dwapi.ExtractsManagement.Core.Model.Destination.Prep +{ + public class PrepPharmacyExtract : PrepClientExtract,IPrepPharmacy + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public int? VisitID { get; set; } + public string RegimenPrescribed { get; set; } + public DateTime? DispenseDate { get; set; } + public decimal? Duration { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepVisitExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepVisitExtract.cs new file mode 100644 index 00000000..654ce09c --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PrepVisitExtract.cs @@ -0,0 +1,58 @@ +using System; +using Dwapi.Contracts.Prep; + +namespace Dwapi.ExtractsManagement.Core.Model.Destination.Prep +{ + public class PrepVisitExtract : PrepClientExtract,IPrepVisit + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public string EncounterId { get; set; } + public string VisitID { get; set; } + public DateTime? VisitDate { get; set; } + public string BloodPressure { get; set; } + public string Temperature { get; set; } + public decimal? Weight { get; set; } + public decimal? Height { get; set; } + public decimal? BMI { get; set; } + public string STIScreening { get; set; } + public string STISymptoms { get; set; } + public string STITreated { get; set; } + public string Circumcised { get; set; } + public string VMMCReferral { get; set; } + public DateTime? LMP { get; set; } + public string MenopausalStatus { get; set; } + public string PregnantAtThisVisit { get; set; } + public DateTime? EDD { get; set; } + public string PlanningToGetPregnant { get; set; } + public string PregnancyPlanned { get; set; } + public string PregnancyEnded { get; set; } + public DateTime? PregnancyEndDate { get; set; } + public string PregnancyOutcome { get; set; } + public string BirthDefects { get; set; } + public string Breastfeeding { get; set; } + public string FamilyPlanningStatus { get; set; } + public string FPMethods { get; set; } + public string AdherenceDone { get; set; } + public string AdherenceOutcome { get; set; } + public string AdherenceReasons { get; set; } + public string SymptomsAcuteHIV { get; set; } + public string ContraindicationsPrep { get; set; } + public string PrepTreatmentPlan { get; set; } + public string PrepPrescribed { get; set; } + public string RegimenPrescribed { get; set; } + public string MonthsPrescribed { get; set; } + public string CondomsIssued { get; set; } + public string Tobegivennextappointment { get; set; } + public string Reasonfornotgivingnextappointment { get; set; } + public string HepatitisBPositiveResult { get; set; } + public string HepatitisCPositiveResult { get; set; } + public string VaccinationForHepBStarted { get; set; } + public string TreatedForHepB { get; set; } + public string VaccinationForHepCStarted { get; set; } + public string TreatedForHepC { get; set; } + public DateTime? NextAppointment { get; set; } + public string ClinicalNotes { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Crs/TempClientRegistryExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Crs/TempClientRegistryExtract.cs new file mode 100644 index 00000000..9497ff46 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Crs/TempClientRegistryExtract.cs @@ -0,0 +1,51 @@ +using System; +using Dwapi.Contracts.Crs; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Crs +{ + public class TempClientRegistryExtract : TempExtract,IClientRegistry + { + + public string CCCNumber { get; set; } + public string NationalId { get; set; } + public string Passport { get; set; } + public string HudumaNumber { get; set; } + public string BirthCertificateNumber { get; set; } + public string AlienIdNo { get; set; } + public string DrivingLicenseNumber { get; set; } + public string PatientClinicNumber { get; set; } + public string FirstName { get; set; } + public string MiddleName { get; set; } + public string LastName { get; set; } + public DateTime? DateOfBirth { get; set; } + public string Sex { get; set; } + public string MaritalStatus { get; set; } + public string Occupation { get; set; } + public string HighestLevelOfEducation { get; set; } + public string PhoneNumber { get; set; } + public string AlternativePhoneNumber { get; set; } + public string SpousePhoneNumber { get; set; } + public string NameOfNextOfKin { get; set; } + public string NextOfKinRelationship { get; set; } + public string NextOfKinTelNo { get; set; } + public string County { get; set; } + public string SubCounty { get; set; } + public string Ward { get; set; } + public string Location { get; set; } + public string Village { get; set; } + public string Landmark { get; set; } + public string FacilityName { get; set; } + public string MFLCode { get; set; } + public DateTime? DateOfInitiation { get; set; } + public string TreatmentOutcome { get; set; } + public DateTime? DateOfLastEncounter { get; set; } + public DateTime? DateOfLastViralLoad { get; set; } + public DateTime? NextAppointmentDate { get; set; } + public string LastRegimen { get; set; } + public string LastRegimenLine { get; set; } + public string CurrentOnART { get; set; } + public DateTime? DateOfHIVdiagnosis { get; set; } + public string LastViralLoadResult { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Crs/TempClientRegistryExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Crs/TempClientRegistryExtractError.cs new file mode 100644 index 00000000..4fa421c3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Crs/TempClientRegistryExtractError.cs @@ -0,0 +1,53 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Crs; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Crs +{ + [Table("vTempClientRegistryExtractError")] + public class TempClientRegistryExtractError : TempExtract,IClientRegistry + { + public string CCCNumber { get; set; } + public string NationalId { get; set; } + public string Passport { get; set; } + public string HudumaNumber { get; set; } + public string BirthCertificateNumber { get; set; } + public string AlienIdNo { get; set; } + public string DrivingLicenseNumber { get; set; } + public string PatientClinicNumber { get; set; } + public string FirstName { get; set; } + public string MiddleName { get; set; } + public string LastName { get; set; } + public DateTime? DateOfBirth { get; set; } + public string Sex { get; set; } + public string MaritalStatus { get; set; } + public string Occupation { get; set; } + public string HighestLevelOfEducation { get; set; } + public string PhoneNumber { get; set; } + public string AlternativePhoneNumber { get; set; } + public string SpousePhoneNumber { get; set; } + public string NameOfNextOfKin { get; set; } + public string NextOfKinRelationship { get; set; } + public string NextOfKinTelNo { get; set; } + public string County { get; set; } + public string SubCounty { get; set; } + public string Ward { get; set; } + public string Location { get; set; } + public string Village { get; set; } + public string Landmark { get; set; } + public string FacilityName { get; set; } + public string MFLCode { get; set; } + public DateTime? DateOfInitiation { get; set; } + public string TreatmentOutcome { get; set; } + public DateTime? DateOfLastEncounter { get; set; } + public DateTime? DateOfLastViralLoad { get; set; } + public DateTime? NextAppointmentDate { get; set; } + + public string LastRegimen { get; set; } + public string LastRegimenLine { get; set; } + public string CurrentOnART { get; set; } + public DateTime? DateOfHIVdiagnosis { get; set; } + public string LastViralLoadResult { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Crs/TempClientRegistryExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Crs/TempClientRegistryExtractErrorSummary.cs new file mode 100644 index 00000000..6ab51840 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Crs/TempClientRegistryExtractErrorSummary.cs @@ -0,0 +1,51 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Crs; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Crs +{ + [Table("vTempClientRegistryExtractErrorSummary")] + public class TempClientRegistryExtractErrorSummary : TempExtractErrorSummary,IClientRegistry + { + public string CCCNumber { get; set; } + public string NationalId { get; set; } + public string Passport { get; set; } + public string HudumaNumber { get; set; } + public string BirthCertificateNumber { get; set; } + public string AlienIdNo { get; set; } + public string DrivingLicenseNumber { get; set; } + public string PatientClinicNumber { get; set; } + public string FirstName { get; set; } + public string MiddleName { get; set; } + public string LastName { get; set; } + public DateTime? DateOfBirth { get; set; } + public string Sex { get; set; } + public string MaritalStatus { get; set; } + public string Occupation { get; set; } + public string HighestLevelOfEducation { get; set; } + public string PhoneNumber { get; set; } + public string AlternativePhoneNumber { get; set; } + public string SpousePhoneNumber { get; set; } + public string NameOfNextOfKin { get; set; } + public string NextOfKinRelationship { get; set; } + public string NextOfKinTelNo { get; set; } + public string County { get; set; } + public string SubCounty { get; set; } + public string Ward { get; set; } + public string Location { get; set; } + public string Village { get; set; } + public string Landmark { get; set; } + public string MFLCode { get; set; } + public DateTime? DateOfInitiation { get; set; } + public string TreatmentOutcome { get; set; } + public DateTime? DateOfLastEncounter { get; set; } + public DateTime? DateOfLastViralLoad { get; set; } + public DateTime? NextAppointmentDate { get; set; } + public string LastRegimen { get; set; } + public string LastRegimenLine { get; set; } + public string CurrentOnART { get; set; } + public DateTime? DateOfHIVdiagnosis { get; set; } + public string LastViralLoadResult { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempContactListingExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempContactListingExtract.cs index 25df4e66..f8724b64 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempContactListingExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempContactListingExtract.cs @@ -19,5 +19,6 @@ public class TempContactListingExtract : TempExtract,IContactListing public string PnsApproach { get; set; } public DateTime? Date_Created { get; set; } public DateTime? Date_Last_Modified { get; set; } + public int? ContactPatientPK { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempContactListingExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempContactListingExtractError.cs index 78ed27a1..935e9fe3 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempContactListingExtractError.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempContactListingExtractError.cs @@ -21,5 +21,6 @@ public class TempContactListingExtractError : TempExtract,IContactListing public string PnsApproach { get; set; } public DateTime? Date_Created { get; set; } public DateTime? Date_Last_Modified { get; set; } + public int? ContactPatientPK { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempContactListingExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempContactListingExtractErrorSummary.cs index 94e8b00a..c47999c2 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempContactListingExtractErrorSummary.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempContactListingExtractErrorSummary.cs @@ -20,5 +20,6 @@ public class TempContactListingExtractErrorSummary : TempExtractErrorSummary,ICo public string PnsApproach { get; set; } public DateTime? Date_Created { get; set; } public DateTime? Date_Last_Modified { get; set; } + public int? ContactPatientPK { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempCovidExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempCovidExtract.cs new file mode 100644 index 00000000..bd93a90a --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempCovidExtract.cs @@ -0,0 +1,43 @@ +using System; +using Dwapi.Contracts.Ct; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Dwh +{ + public class TempCovidExtract : TempExtract,ICovid + { + public string FacilityName { get; set; } + public int? VisitID { get; set; } + public DateTime? Covid19AssessmentDate { get; set; } + public string ReceivedCOVID19Vaccine { get; set; } + public DateTime? DateGivenFirstDose { get; set; } + public string FirstDoseVaccineAdministered { get; set; } + public DateTime? DateGivenSecondDose { get; set; } + public string SecondDoseVaccineAdministered { get; set; } + public string VaccinationStatus { get; set; } + public string VaccineVerification { get; set; } + public string BoosterGiven { get; set; } + public string BoosterDose { get; set; } + public DateTime? BoosterDoseDate { get; set; } + public string EverCOVID19Positive { get; set; } + public DateTime? COVID19TestDate { get; set; } + public string PatientStatus { get; set; } + public string AdmissionStatus { get; set; } + public string AdmissionUnit { get; set; } + public string MissedAppointmentDueToCOVID19 { get; set; } + public string COVID19PositiveSinceLasVisit { get; set; } + public DateTime? COVID19TestDateSinceLastVisit { get; set; } + public string PatientStatusSinceLastVisit { get; set; } + public string AdmissionStatusSinceLastVisit { get; set; } + public DateTime? AdmissionStartDate { get; set; } + public DateTime? AdmissionEndDate { get; set; } + public string AdmissionUnitSinceLastVisit { get; set; } + public string SupplementalOxygenReceived { get; set; } + public string PatientVentilated { get; set; } + public string TracingFinalOutcome { get; set; } + public string CauseOfDeath { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + public string COVID19TestResult { get; set; } + public string Sequence { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempCovidExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempCovidExtractError.cs new file mode 100644 index 00000000..6256a472 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempCovidExtractError.cs @@ -0,0 +1,45 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Ct; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Dwh +{ + [Table("vTempCovidExtractError")] + public class TempCovidExtractError : TempExtract,ICovid + { + public string FacilityName { get; set; } + public int? VisitID { get; set; } + public DateTime? Covid19AssessmentDate { get; set; } + public string ReceivedCOVID19Vaccine { get; set; } + public DateTime? DateGivenFirstDose { get; set; } + public string FirstDoseVaccineAdministered { get; set; } + public DateTime? DateGivenSecondDose { get; set; } + public string SecondDoseVaccineAdministered { get; set; } + public string VaccinationStatus { get; set; } + public string VaccineVerification { get; set; } + public string BoosterGiven { get; set; } + public string BoosterDose { get; set; } + public DateTime? BoosterDoseDate { get; set; } + public string EverCOVID19Positive { get; set; } + public DateTime? COVID19TestDate { get; set; } + public string PatientStatus { get; set; } + public string AdmissionStatus { get; set; } + public string AdmissionUnit { get; set; } + public string MissedAppointmentDueToCOVID19 { get; set; } + public string COVID19PositiveSinceLasVisit { get; set; } + public DateTime? COVID19TestDateSinceLastVisit { get; set; } + public string PatientStatusSinceLastVisit { get; set; } + public string AdmissionStatusSinceLastVisit { get; set; } + public DateTime? AdmissionStartDate { get; set; } + public DateTime? AdmissionEndDate { get; set; } + public string AdmissionUnitSinceLastVisit { get; set; } + public string SupplementalOxygenReceived { get; set; } + public string PatientVentilated { get; set; } + public string TracingFinalOutcome { get; set; } + public string CauseOfDeath { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + public string COVID19TestResult { get; set; } + public string Sequence { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempCovidExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempCovidExtractErrorSummary.cs new file mode 100644 index 00000000..d17d4084 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempCovidExtractErrorSummary.cs @@ -0,0 +1,44 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Ct; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Dwh +{ + [Table("vTempCovidExtractErrorSummary")] + public class TempCovidExtractErrorSummary : TempExtractErrorSummary,ICovid + { + public int? VisitID { get; set; } + public DateTime? Covid19AssessmentDate { get; set; } + public string ReceivedCOVID19Vaccine { get; set; } + public DateTime? DateGivenFirstDose { get; set; } + public string FirstDoseVaccineAdministered { get; set; } + public DateTime? DateGivenSecondDose { get; set; } + public string SecondDoseVaccineAdministered { get; set; } + public string VaccinationStatus { get; set; } + public string VaccineVerification { get; set; } + public string BoosterGiven { get; set; } + public string BoosterDose { get; set; } + public DateTime? BoosterDoseDate { get; set; } + public string EverCOVID19Positive { get; set; } + public DateTime? COVID19TestDate { get; set; } + public string PatientStatus { get; set; } + public string AdmissionStatus { get; set; } + public string AdmissionUnit { get; set; } + public string MissedAppointmentDueToCOVID19 { get; set; } + public string COVID19PositiveSinceLasVisit { get; set; } + public DateTime? COVID19TestDateSinceLastVisit { get; set; } + public string PatientStatusSinceLastVisit { get; set; } + public string AdmissionStatusSinceLastVisit { get; set; } + public DateTime? AdmissionStartDate { get; set; } + public DateTime? AdmissionEndDate { get; set; } + public string AdmissionUnitSinceLastVisit { get; set; } + public string SupplementalOxygenReceived { get; set; } + public string PatientVentilated { get; set; } + public string TracingFinalOutcome { get; set; } + public string CauseOfDeath { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + public string COVID19TestResult { get; set; } + public string Sequence { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempDefaulterTracingExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempDefaulterTracingExtract.cs new file mode 100644 index 00000000..1e8d6d63 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempDefaulterTracingExtract.cs @@ -0,0 +1,23 @@ +using System; +using Dwapi.Contracts.Ct; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Dwh +{ + public class TempDefaulterTracingExtract : TempExtract,IDefaulterTracing + { + public string FacilityName { get; set; } + public int? VisitID { get; set; } + public DateTime? VisitDate { get; set; } + public int? EncounterId { get; set; } + public string TracingType { get; set; } + public string TracingOutcome { get; set; } + public int? AttemptNumber { get; set; } + public string IsFinalTrace { get; set; } + public string TrueStatus { get; set; } + public string CauseOfDeath { get; set; } + public string Comments { get; set; } + public DateTime? BookingDate { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempDefaulterTracingExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempDefaulterTracingExtractError.cs new file mode 100644 index 00000000..7f2fe2df --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempDefaulterTracingExtractError.cs @@ -0,0 +1,25 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Ct; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Dwh +{ + [Table("vTempDefaulterTracingExtractError")] + public class TempDefaulterTracingExtractError : TempExtract,IDefaulterTracing + { + public string FacilityName { get; set; } + public int? VisitID { get; set; } + public DateTime? VisitDate { get; set; } + public int? EncounterId { get; set; } + public string TracingType { get; set; } + public string TracingOutcome { get; set; } + public int? AttemptNumber { get; set; } + public string IsFinalTrace { get; set; } + public string TrueStatus { get; set; } + public string CauseOfDeath { get; set; } + public string Comments { get; set; } + public DateTime? BookingDate { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempDefaulterTracingExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempDefaulterTracingExtractErrorSummary.cs new file mode 100644 index 00000000..e23ad147 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempDefaulterTracingExtractErrorSummary.cs @@ -0,0 +1,25 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Ct; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Dwh +{ + [Table("vTempDefaulterTracingExtractErrorSummary")] + public class TempDefaulterTracingExtractErrorSummary : TempExtractErrorSummary,IDefaulterTracing + { + public DateTime? FacilityName { get; set; } + public int? VisitID { get; set; } + public DateTime? VisitDate { get; set; } + public int? EncounterId { get; set; } + public string TracingType { get; set; } + public string TracingOutcome { get; set; } + public int? AttemptNumber { get; set; } + public string IsFinalTrace { get; set; } + public string TrueStatus { get; set; } + public string CauseOfDeath { get; set; } + public string Comments { get; set; } + public DateTime? BookingDate { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientExtract.cs index 6db20338..9f1f1aee 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientExtract.cs @@ -43,5 +43,6 @@ public class TempPatientExtract:TempExtract,IPatient public DateTime? Date_Last_Modified { get; set; } public string Pkv { get; set; } public string Occupation { get; set; } + public string NUPI { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientExtractError.cs index 9bcdfc93..763c3439 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientExtractError.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientExtractError.cs @@ -41,6 +41,7 @@ public class TempPatientExtractError : TempExtract public string PatientResidentWard { get; set; } public string PatientResidentVillage { get; set; } public string StatusAtTBClinic { get; set; } + public string NUPI { get; set; } public DateTime? TransferInDate { get; set; } [NotMapped] public virtual ICollection TempPatientExtractErrorSummaries { get; set; } = new List(); diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientExtractErrorSummary.cs index 14488ea2..db60612e 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientExtractErrorSummary.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientExtractErrorSummary.cs @@ -41,6 +41,8 @@ public class TempPatientExtractErrorSummary : TempExtractErrorSummary public string PatientResidentWard { get; set; } public string PatientResidentVillage { get; set; } public DateTime? TransferInDate { get; set; } + public string NUPI { get; set; } + //public override void AddHeader(Row row) //{ diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientStatusExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientStatusExtract.cs index 5e6ee993..10e47f13 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientStatusExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientStatusExtract.cs @@ -15,5 +15,11 @@ public class TempPatientStatusExtract : TempExtract,IStatus public string TOVerified { get; set; } public DateTime? TOVerifiedDate { get; set; } public DateTime? ReEnrollmentDate { get; set; } + + + public string ReasonForDeath { get; set; } + public string SpecificDeathReason { get; set; } + public DateTime? DeathDate { get; set; } + public DateTime? EffectiveDiscontinuationDate { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientVisitExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientVisitExtract.cs index 4091feed..d6b21877 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientVisitExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientVisitExtract.cs @@ -67,5 +67,6 @@ public class TempPatientVisitExtract : TempExtract,IVisit public string Abdomen { get; set; } public string CNS { get; set; } public string Genitourinary { get; set; } + public DateTime? RefillDate { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientVisitExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientVisitExtractError.cs index 4b280621..bafbf6f6 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientVisitExtractError.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientVisitExtractError.cs @@ -39,6 +39,7 @@ public class TempPatientVisitExtractError : TempExtract public string DifferentiatedCare { get; set; } public string PopulationType { get; set; } public string KeyPopulationType { get; set; } + public DateTime? RefillDate { get; set; } [NotMapped] public virtual ICollection TempPatientVisitExtractErrorSummaries { get; set; } = new List(); } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientVisitExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientVisitExtractErrorSummary.cs index 00edb689..50f79e6c 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientVisitExtractErrorSummary.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Dwh/TempPatientVisitExtractErrorSummary.cs @@ -32,12 +32,12 @@ public class TempPatientVisitExtractErrorSummary: TempExtractErrorSummary public string PwP { get; set; } public decimal? GestationAge { get; set; } public DateTime? NextAppointmentDate { get; set; } - + public string StabilityAssessment { get; set; } public string DifferentiatedCare { get; set; } public string PopulationType { get; set; } public string KeyPopulationType { get; set; } - + public DateTime? RefillDate { get; set; } /*public override void AddHeader(Row row) { base.AddHeader(row); diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHTSClientsErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHTSClientsErrorSummary.cs index 64dc249b..f3c25370 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHTSClientsErrorSummary.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHTSClientsErrorSummary.cs @@ -15,5 +15,7 @@ public class TempHtsClientsErrorSummary : TempHTSExtractErrorSummary public string County { get; set; } public string SubCounty { get; set; } public string Ward { get; set; } + public string NUPI { get; set; } + public string Pkv { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsClients.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsClients.cs index e9c5fa08..692891c8 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsClients.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsClients.cs @@ -14,5 +14,7 @@ public class TempHtsClients : TempHTSExtract public string County { get; set; } public string SubCounty { get; set; } public string Ward { get; set; } + public string NUPI { get; set; } + public string Pkv { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsClientsError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsClientsError.cs index e66c9156..b36c5a8d 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsClientsError.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsClientsError.cs @@ -29,6 +29,8 @@ public class TempHtsClientsError [NotMapped] public virtual bool HasError { get; set; } public Guid Id { get; set; } + public string NUPI { get; set; } + public string Pkv { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsEligibilityExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsEligibilityExtract.cs new file mode 100644 index 00000000..b6fb2adc --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsEligibilityExtract.cs @@ -0,0 +1,75 @@ +using System; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts +{ + public class TempHtsEligibilityExtract : TempHtsExtract + { + public string EncounterId { get; set; } + public int? VisitID { get; set; } + public DateTime? VisitDate { get; set; } + public string PopulationType { get; set; } + public string KeyPopulation { get; set; } + public string PriorityPopulation { get; set; } + public string Department { get; set; } + public string PatientType { get; set; } + public string IsHealthWorker { get; set; } + public string RelationshipWithContact { get; set; } + public string TestedHIVBefore { get; set; } + public string WhoPerformedTest { get; set; } + public string ResultOfHIV { get; set; } + public string StartedOnART { get; set; } + public string CCCNumber { get; set; } + public string EverHadSex { get; set; } + public string SexuallyActive { get; set; } + public string NewPartner { get; set; } + public string PartnerHIVStatus { get; set; } + public string CoupleDiscordant { get; set; } + public string MultiplePartners { get; set; } + public int? NumberOfPartners { get; set; } + public string AlcoholSex { get; set; } + public string MoneySex { get; set; } + public string CondomBurst { get; set; } + public string UnknownStatusPartner { get; set; } + public string KnownStatusPartner { get; set; } + public string Pregnant { get; set; } + public string BreastfeedingMother { get; set; } + public string ExperiencedGBV { get; set; } + + public string EverOnPrep { get; set; } + public string CurrentlyOnPrep { get; set; } + public string EverOnPep { get; set; } + public string CurrentlyOnPep { get; set; } + public string EverHadSTI { get; set; } + public string CurrentlyHasSTI { get; set; } + public string EverHadTB { get; set; } + public string SharedNeedle { get; set; } + public string NeedleStickInjuries { get; set; } + public string TraditionalProcedures { get; set; } + public string ChildReasonsForIneligibility { get; set; } + public string EligibleForTest { get; set; } + public string ReasonsForIneligibility { get; set; } + public int? SpecificReasonForIneligibility { get; set; } + + public string MothersStatus { get; set; } + public DateTime? DateTestedSelf { get; set; } + public string ResultOfHIVSelf { get; set; } + public DateTime? DateTestedProvider { get; set; } + public string ScreenedTB { get; set; } + public string Cough { get; set; } + public string Fever { get; set; } + public string WeightLoss { get; set; } + public string NightSweats { get; set; } + public string Lethargy { get; set; } + public string TBStatus { get; set; } + public string ReferredForTesting { get; set; } + + public string AssessmentOutcome { get; set; } + public string TypeGBV { get; set; } + public string ForcedSex { get; set; } + public string ReceivedServices { get; set; } + + public DateTime? DateCreated { get; set; } + public DateTime? DateLastModified { get; set; } + public string ContactWithTBCase { get; set; } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsEligibilityExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsEligibilityExtractError.cs new file mode 100644 index 00000000..e83e56ce --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsEligibilityExtractError.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts +{ + + [Table("vTempHtsEligibilityExtractError")] + public class TempHtsEligibilityExtractError + { + + [NotMapped] + public virtual ICollection TempHtsEligibilityExtractErrorSummaries { get; set; } = new List(); + + public Guid Id { get; set; } + public string EncounterId { get; set; } + public int? VisitID { get; set; } + public DateTime? VisitDate { get; set; } + public string PopulationType { get; set; } + public string KeyPopulation { get; set; } + public string PriorityPopulation { get; set; } + public string Department { get; set; } + public string PatientType { get; set; } + public string IsHealthWorker { get; set; } + public string RelationshipWithContact { get; set; } + public string TestedHIVBefore { get; set; } + public string WhoPerformedTest { get; set; } + public string ResultOfHIV { get; set; } + public string StartedOnART { get; set; } + public string CCCNumber { get; set; } + public string EverHadSex { get; set; } + public string SexuallyActive { get; set; } + public string NewPartner { get; set; } + public string PartnerHIVStatus { get; set; } + public string CoupleDiscordant { get; set; } + public string MultiplePartners { get; set; } + public int? NumberOfPartners { get; set; } + public string AlcoholSex { get; set; } + public string MoneySex { get; set; } + public string CondomBurst { get; set; } + public string UnknownStatusPartner { get; set; } + public string KnownStatusPartner { get; set; } + public string Pregnant { get; set; } + public string BreastfeedingMother { get; set; } + public string ExperiencedGBV { get; set; } + + public string EverOnPrep { get; set; } + public string CurrentlyOnPrep { get; set; } + public string EverOnPep { get; set; } + public string CurrentlyOnPep { get; set; } + public string EverHadSTI { get; set; } + public string CurrentlyHasSTI { get; set; } + public string EverHadTB { get; set; } + public string SharedNeedle { get; set; } + public string NeedleStickInjuries { get; set; } + public string TraditionalProcedures { get; set; } + public string ChildReasonsForIneligibility { get; set; } + public string EligibleForTest { get; set; } + public string ReasonsForIneligibility { get; set; } + public int? SpecificReasonForIneligibility { get; set; } + + public string MothersStatus { get; set; } + public DateTime? DateTestedSelf { get; set; } + public string ResultOfHIVSelf { get; set; } + public DateTime? DateTestedProvider { get; set; } + public string ScreenedTB { get; set; } + public string Cough { get; set; } + public string Fever { get; set; } + public string WeightLoss { get; set; } + public string NightSweats { get; set; } + public string Lethargy { get; set; } + public string TBStatus { get; set; } + public string ReferredForTesting { get; set; } + + public string AssessmentOutcome { get; set; } + public string TypeGBV { get; set; } + public string ForcedSex { get; set; } + public string ReceivedServices { get; set; } + + public DateTime? DateCreated { get; set; } + public DateTime? DateLastModified { get; set; } + public string ContactWithTBCase { get; set; } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsEligibilityExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsEligibilityExtractErrorSummary.cs new file mode 100644 index 00000000..77af2c12 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/NewHts/TempHtsEligibilityExtractErrorSummary.cs @@ -0,0 +1,77 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts +{ + [Table("vTempHtsEligibilityExtractErrorSummary")] + public class TempHtsEligibilityExtractErrorSummary: TempHTSExtractErrorSummary + { + public string EncounterId { get; set; } + public int? VisitID { get; set; } + public DateTime? VisitDate { get; set; } + public string PopulationType { get; set; } + public string KeyPopulation { get; set; } + public string PriorityPopulation { get; set; } + public string Department { get; set; } + public string PatientType { get; set; } + public string IsHealthWorker { get; set; } + public string RelationshipWithContact { get; set; } + public string TestedHIVBefore { get; set; } + public string WhoPerformedTest { get; set; } + public string ResultOfHIV { get; set; } + public string StartedOnART { get; set; } + public string CCCNumber { get; set; } + public string EverHadSex { get; set; } + public string SexuallyActive { get; set; } + public string NewPartner { get; set; } + public string PartnerHIVStatus { get; set; } + public string CoupleDiscordant { get; set; } + public string MultiplePartners { get; set; } + public int? NumberOfPartners { get; set; } + public string AlcoholSex { get; set; } + public string MoneySex { get; set; } + public string CondomBurst { get; set; } + public string UnknownStatusPartner { get; set; } + public string KnownStatusPartner { get; set; } + public string Pregnant { get; set; } + public string BreastfeedingMother { get; set; } + public string ExperiencedGBV { get; set; } + + public string EverOnPrep { get; set; } + public string CurrentlyOnPrep { get; set; } + public string EverOnPep { get; set; } + public string CurrentlyOnPep { get; set; } + public string EverHadSTI { get; set; } + public string CurrentlyHasSTI { get; set; } + public string EverHadTB { get; set; } + public string SharedNeedle { get; set; } + public string NeedleStickInjuries { get; set; } + public string TraditionalProcedures { get; set; } + public string ChildReasonsForIneligibility { get; set; } + public string EligibleForTest { get; set; } + public string ReasonsForIneligibility { get; set; } + public int? SpecificReasonForIneligibility { get; set; } + + public string MothersStatus { get; set; } + public DateTime? DateTestedSelf { get; set; } + public string ResultOfHIVSelf { get; set; } + public DateTime? DateTestedProvider { get; set; } + public string ScreenedTB { get; set; } + public string Cough { get; set; } + public string Fever { get; set; } + public string WeightLoss { get; set; } + public string NightSweats { get; set; } + public string Lethargy { get; set; } + public string TBStatus { get; set; } + public string ReferredForTesting { get; set; } + + public string AssessmentOutcome { get; set; } + public string TypeGBV { get; set; } + public string ForcedSex { get; set; } + public string ReceivedServices { get; set; } + + public DateTime? DateCreated { get; set; } + public DateTime? DateLastModified { get; set; } + public string ContactWithTBCase { get; set; } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/TempHTSClientExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/TempHTSClientExtract.cs index 1bb51a63..cc2ca002 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/TempHTSClientExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/TempHTSClientExtract.cs @@ -2,7 +2,7 @@ namespace Dwapi.ExtractsManagement.Core.Model.Source.Hts { - [Obsolete("Class is obsolete,use TempHtsClientsExtract")] + [Obsolete("Class is obsolete,use TempHtsClients")] public class TempHTSClientExtract : TempHTSExtract { public int? EncounterId { get; set; } @@ -35,5 +35,7 @@ public class TempHTSClientExtract : TempHTSExtract public string PatientDisabled { get; set; } public string DisabilityType { get; set; } public string PatientConsented { get; set; } + public string NUPI { get; set; } + public string Pkv { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/TempHTSClientExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/TempHTSClientExtractError.cs index 117c2ff2..80aef226 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/TempHTSClientExtractError.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/TempHTSClientExtractError.cs @@ -50,5 +50,7 @@ public class TempHTSClientExtractError public bool CheckError { get; set; } public DateTime DateExtracted { get; set; } public Guid Id { get; set; } + public string NUPI { get; set; } + public string Pkv { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/TempHTSClientExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/TempHTSClientExtractErrorSummary.cs index ddba0986..92ef08c1 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/TempHTSClientExtractErrorSummary.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Hts/TempHTSClientExtractErrorSummary.cs @@ -30,5 +30,7 @@ public class TempHTSClientExtractErrorSummary: TempHTSExtractErrorSummary public string ClientSelfTested { get; set; } public string CoupleDiscordant { get; set; } public string TestType { get; set; } + public string NUPI { get; set; } + public string Pkv { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempHeiExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempHeiExtract.cs index c7ac676d..791f7e1b 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempHeiExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempHeiExtract.cs @@ -14,12 +14,12 @@ public class TempHeiExtract : TempExtract, IHei public DateTime? ConfirmatoryPCRDate { get; set; } public DateTime? BasellineVLDate { get; set; } public DateTime? FinalyAntibodyDate { get; set; } - public DateTime? DNAPCR1 { get; set; } - public DateTime? DNAPCR2 { get; set; } - public DateTime? DNAPCR3 { get; set; } - public DateTime? ConfirmatoryPCR { get; set; } - public DateTime? BasellineVL { get; set; } - public DateTime? FinalyAntibody { get; set; } + public string DNAPCR1 { get; set; } + public string DNAPCR2 { get; set; } + public string DNAPCR3 { get; set; } + public string ConfirmatoryPCR { get; set; } + public string BasellineVL { get; set; } + public string FinalyAntibody { get; set; } public DateTime? HEIExitDate { get; set; } public string HEIHIVStatus { get; set; } public string HEIExitCritearia { get; set; } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempHeiExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempHeiExtractError.cs index 804b2211..6666ddad 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempHeiExtractError.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempHeiExtractError.cs @@ -15,12 +15,12 @@ namespace Dwapi.ExtractsManagement.Core.Model.Source.Mnch public DateTime? ConfirmatoryPCRDate { get; set; } public DateTime? BasellineVLDate { get; set; } public DateTime? FinalyAntibodyDate { get; set; } - public DateTime? DNAPCR1 { get; set; } - public DateTime? DNAPCR2 { get; set; } - public DateTime? DNAPCR3 { get; set; } - public DateTime? ConfirmatoryPCR { get; set; } - public DateTime? BasellineVL { get; set; } - public DateTime? FinalyAntibody { get; set; } + public string DNAPCR1 { get; set; } + public string DNAPCR2 { get; set; } + public string DNAPCR3 { get; set; } + public string ConfirmatoryPCR { get; set; } + public string BasellineVL { get; set; } + public string FinalyAntibody { get; set; } public DateTime? HEIExitDate { get; set; } public string HEIHIVStatus { get; set; } public string HEIExitCritearia { get; set; } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempHeiExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempHeiExtractErrorSummary.cs index 82c6105c..592c0896 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempHeiExtractErrorSummary.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempHeiExtractErrorSummary.cs @@ -14,12 +14,12 @@ namespace Dwapi.ExtractsManagement.Core.Model.Source.Mnch public DateTime? ConfirmatoryPCRDate { get; set; } public DateTime? BasellineVLDate { get; set; } public DateTime? FinalyAntibodyDate { get; set; } - public DateTime? DNAPCR1 { get; set; } - public DateTime? DNAPCR2 { get; set; } - public DateTime? DNAPCR3 { get; set; } - public DateTime? ConfirmatoryPCR { get; set; } - public DateTime? BasellineVL { get; set; } - public DateTime? FinalyAntibody { get; set; } + public string DNAPCR1 { get; set; } + public string DNAPCR2 { get; set; } + public string DNAPCR3 { get; set; } + public string ConfirmatoryPCR { get; set; } + public string BasellineVL { get; set; } + public string FinalyAntibody { get; set; } public DateTime? HEIExitDate { get; set; } public string HEIHIVStatus { get; set; } public string HEIExitCritearia { get; set; } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempPatientMnchExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempPatientMnchExtract.cs index d799c752..09c56d78 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempPatientMnchExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempPatientMnchExtract.cs @@ -22,5 +22,6 @@ public class TempPatientMnchExtract : TempExtract, IPatientMnch public string InSchool { get; set; } public DateTime? Date_Created { get; set; } public DateTime? Date_Last_Modified { get; set; } + public string NUPI { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempPatientMnchExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempPatientMnchExtractError.cs index 63774969..f57a4351 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempPatientMnchExtractError.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempPatientMnchExtractError.cs @@ -23,5 +23,6 @@ namespace Dwapi.ExtractsManagement.Core.Model.Source.Mnch public string InSchool { get; set; } public DateTime? Date_Created { get; set; } public DateTime? Date_Last_Modified { get; set; } + public string NUPI { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempPatientMnchExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempPatientMnchExtractErrorSummary.cs index 91ff82f6..b8ce1e3b 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempPatientMnchExtractErrorSummary.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Mnch/TempPatientMnchExtractErrorSummary.cs @@ -22,5 +22,6 @@ namespace Dwapi.ExtractsManagement.Core.Model.Source.Mnch public string InSchool { get; set; } public DateTime? Date_Created { get; set; } public DateTime? Date_Last_Modified { get; set; } + public string NUPI { get; set; } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtract.cs new file mode 100644 index 00000000..1a058ed7 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtract.cs @@ -0,0 +1,41 @@ +using System; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + public class TempPatientPrepExtract:TempExtract,IPatientPrep + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public DateTime? PrepEnrollmentDate { get; set; } + public string Sex { get; set; } + public DateTime? DateofBirth { get; set; } + public string CountyofBirth { get; set; } + public string County { get; set; } + public string SubCounty { get; set; } + public string Location { get; set; } + public string LandMark { get; set; } + public string Ward { get; set; } + public string ClientType { get; set; } + public string ReferralPoint { get; set; } + public string MaritalStatus { get; set; } + public string Inschool { get; set; } + public string PopulationType { get; set; } + public string KeyPopulationType { get; set; } + public string Refferedfrom { get; set; } + public string TransferIn { get; set; } + public DateTime? TransferInDate { get; set; } + public string TransferFromFacility { get; set; } + public DateTime? DatefirstinitiatedinPrepCare { get; set; } + public DateTime? DateStartedPrEPattransferringfacility { get; set; } + public string ClientPreviouslyonPrep { get; set; } + public string PrevPrepReg { get; set; } + public DateTime? DateLastUsedPrev { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + public string NUPI { get; set; } + } + +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtractError.cs new file mode 100644 index 00000000..b9f2932c --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtractError.cs @@ -0,0 +1,43 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPatientPrepExtractError")] + public class TempPatientPrepExtractError : TempExtract, IPatientPrep + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public DateTime? PrepEnrollmentDate { get; set; } + public string Sex { get; set; } + public DateTime? DateofBirth { get; set; } + public string CountyofBirth { get; set; } + public string County { get; set; } + public string SubCounty { get; set; } + public string Location { get; set; } + public string LandMark { get; set; } + public string Ward { get; set; } + public string ClientType { get; set; } + public string ReferralPoint { get; set; } + public string MaritalStatus { get; set; } + public string Inschool { get; set; } + public string PopulationType { get; set; } + public string KeyPopulationType { get; set; } + public string Refferedfrom { get; set; } + public string TransferIn { get; set; } + public DateTime? TransferInDate { get; set; } + public string TransferFromFacility { get; set; } + public DateTime? DatefirstinitiatedinPrepCare { get; set; } + public DateTime? DateStartedPrEPattransferringfacility { get; set; } + public string ClientPreviouslyonPrep { get; set; } + public string PrevPrepReg { get; set; } + public DateTime? DateLastUsedPrev { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + public string NUPI { get; set; } + } + +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtractErrorSummary.cs new file mode 100644 index 00000000..9ff76802 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtractErrorSummary.cs @@ -0,0 +1,42 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPatientPrepExtractErrorSummary")] + public class TempPatientPrepExtractErrorSummary:TempPrepExtractErrorSummary,IPatientPrep + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public DateTime? PrepEnrollmentDate { get; set; } + public string Sex { get; set; } + public DateTime? DateofBirth { get; set; } + public string CountyofBirth { get; set; } + public string County { get; set; } + public string SubCounty { get; set; } + public string Location { get; set; } + public string LandMark { get; set; } + public string Ward { get; set; } + public string ClientType { get; set; } + public string ReferralPoint { get; set; } + public string MaritalStatus { get; set; } + public string Inschool { get; set; } + public string PopulationType { get; set; } + public string KeyPopulationType { get; set; } + public string Refferedfrom { get; set; } + public string TransferIn { get; set; } + public DateTime? TransferInDate { get; set; } + public string TransferFromFacility { get; set; } + public DateTime? DatefirstinitiatedinPrepCare { get; set; } + public DateTime? DateStartedPrEPattransferringfacility { get; set; } + public string ClientPreviouslyonPrep { get; set; } + public string PrevPrepReg { get; set; } + public DateTime? DateLastUsedPrev { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + public string NUPI { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepAdverseEventExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepAdverseEventExtract.cs new file mode 100644 index 00000000..78522187 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepAdverseEventExtract.cs @@ -0,0 +1,24 @@ +using System; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + public class TempPrepAdverseEventExtract:TempExtract,IPrepAdverseEvent + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string AdverseEvent { get; set; } + public DateTime? AdverseEventStartDate { get; set; } + public DateTime? AdverseEventEndDate { get; set; } + public string Severity { get; set; } + public DateTime? VisitDate { get; set; } + public string AdverseEventActionTaken { get; set; } + public string AdverseEventClinicalOutcome { get; set; } + public string AdverseEventIsPregnant { get; set; } + public string AdverseEventCause { get; set; } + public string AdverseEventRegimen { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepAdverseEventExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepAdverseEventExtractError.cs new file mode 100644 index 00000000..d19f1702 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepAdverseEventExtractError.cs @@ -0,0 +1,25 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPrepAdverseEventExtractError")]public class TempPrepAdverseEventExtractError:TempExtract,IPrepAdverseEvent + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string AdverseEvent { get; set; } + public DateTime? AdverseEventStartDate { get; set; } + public DateTime? AdverseEventEndDate { get; set; } + public string Severity { get; set; } + public DateTime? VisitDate { get; set; } + public string AdverseEventActionTaken { get; set; } + public string AdverseEventClinicalOutcome { get; set; } + public string AdverseEventIsPregnant { get; set; } + public string AdverseEventCause { get; set; } + public string AdverseEventRegimen { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepAdverseEventExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepAdverseEventExtractErrorSummary.cs new file mode 100644 index 00000000..607e0127 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepAdverseEventExtractErrorSummary.cs @@ -0,0 +1,25 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPrepAdverseEventExtractErrorSummary")]public class TempPrepAdverseEventExtractErrorSummary:TempPrepExtractErrorSummary,IPrepAdverseEvent + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string AdverseEvent { get; set; } + public DateTime? AdverseEventStartDate { get; set; } + public DateTime? AdverseEventEndDate { get; set; } + public string Severity { get; set; } + public DateTime? VisitDate { get; set; } + public string AdverseEventActionTaken { get; set; } + public string AdverseEventClinicalOutcome { get; set; } + public string AdverseEventIsPregnant { get; set; } + public string AdverseEventCause { get; set; } + public string AdverseEventRegimen { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepBehaviourRiskExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepBehaviourRiskExtract.cs new file mode 100644 index 00000000..74bbd3f0 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepBehaviourRiskExtract.cs @@ -0,0 +1,34 @@ +using System; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + public class TempPrepBehaviourRiskExtract:TempExtract,IPrepBehaviourRisk + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public DateTime? VisitDate { get; set; } + public int? VisitID { get; set; } + public string SexPartnerHIVStatus { get; set; } + public string IsHIVPositivePartnerCurrentonART { get; set; } + public string IsPartnerHighrisk { get; set; } + public string PartnerARTRisk { get; set; } + public string ClientAssessments { get; set; } + public string ClientRisk { get; set; } + public string ClientWillingToTakePrep { get; set; } + public string PrEPDeclineReason { get; set; } + public string RiskReductionEducationOffered { get; set; } + public string ReferralToOtherPrevServices { get; set; } + public DateTime? FirstEstablishPartnerStatus { get; set; } + public DateTime? PartnerEnrolledtoCCC { get; set; } + public string HIVPartnerCCCnumber { get; set; } + public DateTime? HIVPartnerARTStartDate { get; set; } + public string MonthsknownHIVSerodiscordant { get; set; } + public string SexWithoutCondom { get; set; } + public string NumberofchildrenWithPartner { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepBehaviourRiskExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepBehaviourRiskExtractError.cs new file mode 100644 index 00000000..3e70d4ea --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepBehaviourRiskExtractError.cs @@ -0,0 +1,35 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPrepBehaviourRiskExtractError")]public class TempPrepBehaviourRiskExtractError:TempExtract,IPrepBehaviourRisk + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public DateTime? VisitDate { get; set; } + public int? VisitID { get; set; } + public string SexPartnerHIVStatus { get; set; } + public string IsHIVPositivePartnerCurrentonART { get; set; } + public string IsPartnerHighrisk { get; set; } + public string PartnerARTRisk { get; set; } + public string ClientAssessments { get; set; } + public string ClientRisk { get; set; } + public string ClientWillingToTakePrep { get; set; } + public string PrEPDeclineReason { get; set; } + public string RiskReductionEducationOffered { get; set; } + public string ReferralToOtherPrevServices { get; set; } + public DateTime? FirstEstablishPartnerStatus { get; set; } + public DateTime? PartnerEnrolledtoCCC { get; set; } + public string HIVPartnerCCCnumber { get; set; } + public DateTime? HIVPartnerARTStartDate { get; set; } + public string MonthsknownHIVSerodiscordant { get; set; } + public string SexWithoutCondom { get; set; } + public string NumberofchildrenWithPartner { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepBehaviourRiskExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepBehaviourRiskExtractErrorSummary.cs new file mode 100644 index 00000000..470387f3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepBehaviourRiskExtractErrorSummary.cs @@ -0,0 +1,35 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPrepBehaviourRiskExtractErrorSummary")]public class TempPrepBehaviourRiskExtractErrorSummary:TempPrepExtractErrorSummary,IPrepBehaviourRisk + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public DateTime? VisitDate { get; set; } + public int? VisitID { get; set; } + public string SexPartnerHIVStatus { get; set; } + public string IsHIVPositivePartnerCurrentonART { get; set; } + public string IsPartnerHighrisk { get; set; } + public string PartnerARTRisk { get; set; } + public string ClientAssessments { get; set; } + public string ClientRisk { get; set; } + public string ClientWillingToTakePrep { get; set; } + public string PrEPDeclineReason { get; set; } + public string RiskReductionEducationOffered { get; set; } + public string ReferralToOtherPrevServices { get; set; } + public DateTime? FirstEstablishPartnerStatus { get; set; } + public DateTime? PartnerEnrolledtoCCC { get; set; } + public string HIVPartnerCCCnumber { get; set; } + public DateTime? HIVPartnerARTStartDate { get; set; } + public string MonthsknownHIVSerodiscordant { get; set; } + public string SexWithoutCondom { get; set; } + public string NumberofchildrenWithPartner { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepCareTerminationExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepCareTerminationExtract.cs new file mode 100644 index 00000000..5277eefa --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepCareTerminationExtract.cs @@ -0,0 +1,18 @@ +using System; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + public class TempPrepCareTerminationExtract:TempExtract,IPrepCareTermination + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public DateTime? ExitDate { get; set; } + public string ExitReason { get; set; } + public DateTime? DateOfLastPrepDose { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepCareTerminationExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepCareTerminationExtractError.cs new file mode 100644 index 00000000..3b4578aa --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepCareTerminationExtractError.cs @@ -0,0 +1,19 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPrepCareTerminationExtractError")]public class TempPrepCareTerminationExtractError:TempExtract,IPrepCareTermination + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public DateTime? ExitDate { get; set; } + public string ExitReason { get; set; } + public DateTime? DateOfLastPrepDose { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepCareTerminationExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepCareTerminationExtractErrorSummary.cs new file mode 100644 index 00000000..870ebdc3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepCareTerminationExtractErrorSummary.cs @@ -0,0 +1,19 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPrepCareTerminationExtractErrorSummary")]public class TempPrepCareTerminationExtractErrorSummary:TempPrepExtractErrorSummary,IPrepCareTermination + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public DateTime? ExitDate { get; set; } + public string ExitReason { get; set; } + public DateTime? DateOfLastPrepDose { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepExtractErrorSummary.cs new file mode 100644 index 00000000..14418a86 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepExtractErrorSummary.cs @@ -0,0 +1,38 @@ +using System; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + public abstract class TempPrepExtractErrorSummary : Entity + { + public virtual string Extract { get; set; } + public virtual string Field { get; set; } + public virtual string Type { get; set; } + public virtual string Summary { get; set; } + public virtual DateTime? DateGenerated { get; set; } + public virtual int? SiteCode { get; set; } + public virtual int? PatientPK { get; set; } + public virtual string FacilityName { get; set; } + public virtual Guid RecordId { get; set; } + + public override string ToString() + { + return $"{SiteCode}-{PatientPK}|{Summary}"; + } + + protected string GetNullDateValue(DateTime? value) + { + return value?.ToString("dd-MMM-yyyy") ?? string.Empty; + } + + protected string GetNullNumberValue(int? value) + { + return value?.ToString() ?? string.Empty; + } + + protected string GetNullDecimalValue(decimal? value) + { + return value?.ToString() ?? string.Empty; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepLabExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepLabExtract.cs new file mode 100644 index 00000000..5cdbefca --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepLabExtract.cs @@ -0,0 +1,21 @@ +using System; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + public class TempPrepLabExtract:TempExtract,IPrepLab + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public int? VisitID { get; set; } + public string TestName { get; set; } + public string TestResult { get; set; } + public DateTime? SampleDate { get; set; } + public DateTime? TestResultDate { get; set; } + public string Reason { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepLabExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepLabExtractError.cs new file mode 100644 index 00000000..0dc195c9 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepLabExtractError.cs @@ -0,0 +1,22 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPrepLabExtractError")]public class TempPrepLabExtractError:TempExtract,IPrepLab + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public int? VisitID { get; set; } + public string TestName { get; set; } + public string TestResult { get; set; } + public DateTime? SampleDate { get; set; } + public DateTime? TestResultDate { get; set; } + public string Reason { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepLabExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepLabExtractErrorSummary.cs new file mode 100644 index 00000000..e8c4364b --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepLabExtractErrorSummary.cs @@ -0,0 +1,22 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPrepLabExtractErrorSummary")]public class TempPrepLabExtractErrorSummary:TempPrepExtractErrorSummary,IPrepLab + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public int? VisitID { get; set; } + public string TestName { get; set; } + public string TestResult { get; set; } + public DateTime? SampleDate { get; set; } + public DateTime? TestResultDate { get; set; } + public string Reason { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepPharmacyExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepPharmacyExtract.cs new file mode 100644 index 00000000..39a48988 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepPharmacyExtract.cs @@ -0,0 +1,19 @@ +using System; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + public class TempPrepPharmacyExtract:TempExtract,IPrepPharmacy + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public int? VisitID { get; set; } + public string RegimenPrescribed { get; set; } + public DateTime? DispenseDate { get; set; } + public decimal? Duration { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepPharmacyExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepPharmacyExtractError.cs new file mode 100644 index 00000000..8b021ff0 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepPharmacyExtractError.cs @@ -0,0 +1,20 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPrepPharmacyExtractError")]public class TempPrepPharmacyExtractError:TempExtract,IPrepPharmacy + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public int? VisitID { get; set; } + public string RegimenPrescribed { get; set; } + public DateTime? DispenseDate { get; set; } + public decimal? Duration { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepPharmacyExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepPharmacyExtractErrorSummary.cs new file mode 100644 index 00000000..baae9f6b --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepPharmacyExtractErrorSummary.cs @@ -0,0 +1,20 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPrepPharmacyExtractErrorSummary")]public class TempPrepPharmacyExtractErrorSummary:TempPrepExtractErrorSummary,IPrepPharmacy + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public int? VisitID { get; set; } + public string RegimenPrescribed { get; set; } + public DateTime? DispenseDate { get; set; } + public decimal? Duration { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepVisitExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepVisitExtract.cs new file mode 100644 index 00000000..de3ae71a --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepVisitExtract.cs @@ -0,0 +1,61 @@ +using System; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + public class TempPrepVisitExtract:TempExtract,IPrepVisit + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public string EncounterId { get; set; } + public string VisitID { get; set; } + public DateTime? VisitDate { get; set; } + public string BloodPressure { get; set; } + public string Temperature { get; set; } + public decimal? Weight { get; set; } + public decimal? Height { get; set; } + public decimal? BMI { get; set; } + public string STIScreening { get; set; } + public string STISymptoms { get; set; } + public string STITreated { get; set; } + public string Circumcised { get; set; } + public string VMMCReferral { get; set; } + public DateTime? LMP { get; set; } + public string MenopausalStatus { get; set; } + public string PregnantAtThisVisit { get; set; } + public DateTime? EDD { get; set; } + public string PlanningToGetPregnant { get; set; } + public string PregnancyPlanned { get; set; } + public string PregnancyEnded { get; set; } + public DateTime? PregnancyEndDate { get; set; } + public string PregnancyOutcome { get; set; } + public string BirthDefects { get; set; } + public string Breastfeeding { get; set; } + public string FamilyPlanningStatus { get; set; } + public string FPMethods { get; set; } + public string AdherenceDone { get; set; } + public string AdherenceOutcome { get; set; } + public string AdherenceReasons { get; set; } + public string SymptomsAcuteHIV { get; set; } + public string ContraindicationsPrep { get; set; } + public string PrepTreatmentPlan { get; set; } + public string PrepPrescribed { get; set; } + public string RegimenPrescribed { get; set; } + public string MonthsPrescribed { get; set; } + public string CondomsIssued { get; set; } + public string Tobegivennextappointment { get; set; } + public string Reasonfornotgivingnextappointment { get; set; } + public string HepatitisBPositiveResult { get; set; } + public string HepatitisCPositiveResult { get; set; } + public string VaccinationForHepBStarted { get; set; } + public string TreatedForHepB { get; set; } + public string VaccinationForHepCStarted { get; set; } + public string TreatedForHepC { get; set; } + public DateTime? NextAppointment { get; set; } + public string ClinicalNotes { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepVisitExtractError.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepVisitExtractError.cs new file mode 100644 index 00000000..4d66690e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepVisitExtractError.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPrepVisitExtractError")]public class TempPrepVisitExtractError:TempExtract,IPrepVisit + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public string EncounterId { get; set; } + public string VisitID { get; set; } + public DateTime? VisitDate { get; set; } + public string BloodPressure { get; set; } + public string Temperature { get; set; } + public decimal? Weight { get; set; } + public decimal? Height { get; set; } + public decimal? BMI { get; set; } + public string STIScreening { get; set; } + public string STISymptoms { get; set; } + public string STITreated { get; set; } + public string Circumcised { get; set; } + public string VMMCReferral { get; set; } + public DateTime? LMP { get; set; } + public string MenopausalStatus { get; set; } + public string PregnantAtThisVisit { get; set; } + public DateTime? EDD { get; set; } + public string PlanningToGetPregnant { get; set; } + public string PregnancyPlanned { get; set; } + public string PregnancyEnded { get; set; } + public DateTime? PregnancyEndDate { get; set; } + public string PregnancyOutcome { get; set; } + public string BirthDefects { get; set; } + public string Breastfeeding { get; set; } + public string FamilyPlanningStatus { get; set; } + public string FPMethods { get; set; } + public string AdherenceDone { get; set; } + public string AdherenceOutcome { get; set; } + public string AdherenceReasons { get; set; } + public string SymptomsAcuteHIV { get; set; } + public string ContraindicationsPrep { get; set; } + public string PrepTreatmentPlan { get; set; } + public string PrepPrescribed { get; set; } + public string RegimenPrescribed { get; set; } + public string MonthsPrescribed { get; set; } + public string CondomsIssued { get; set; } + public string Tobegivennextappointment { get; set; } + public string Reasonfornotgivingnextappointment { get; set; } + public string HepatitisBPositiveResult { get; set; } + public string HepatitisCPositiveResult { get; set; } + public string VaccinationForHepBStarted { get; set; } + public string TreatedForHepB { get; set; } + public string VaccinationForHepCStarted { get; set; } + public string TreatedForHepC { get; set; } + public DateTime? NextAppointment { get; set; } + public string ClinicalNotes { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepVisitExtractErrorSummary.cs b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepVisitExtractErrorSummary.cs new file mode 100644 index 00000000..f1fe08b1 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPrepVisitExtractErrorSummary.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.Contracts.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; + +namespace Dwapi.ExtractsManagement.Core.Model.Source.Prep +{ + [Table("vTempPrepVisitExtractErrorSummary")]public class TempPrepVisitExtractErrorSummary:TempPrepExtractErrorSummary,IPrepVisit + { + public string FacilityName { get; set; } + public string PrepNumber { get; set; } + public string HtsNumber { get; set; } + public string EncounterId { get; set; } + public string VisitID { get; set; } + public DateTime? VisitDate { get; set; } + public string BloodPressure { get; set; } + public string Temperature { get; set; } + public decimal? Weight { get; set; } + public decimal? Height { get; set; } + public decimal? BMI { get; set; } + public string STIScreening { get; set; } + public string STISymptoms { get; set; } + public string STITreated { get; set; } + public string Circumcised { get; set; } + public string VMMCReferral { get; set; } + public DateTime? LMP { get; set; } + public string MenopausalStatus { get; set; } + public string PregnantAtThisVisit { get; set; } + public DateTime? EDD { get; set; } + public string PlanningToGetPregnant { get; set; } + public string PregnancyPlanned { get; set; } + public string PregnancyEnded { get; set; } + public DateTime? PregnancyEndDate { get; set; } + public string PregnancyOutcome { get; set; } + public string BirthDefects { get; set; } + public string Breastfeeding { get; set; } + public string FamilyPlanningStatus { get; set; } + public string FPMethods { get; set; } + public string AdherenceDone { get; set; } + public string AdherenceOutcome { get; set; } + public string AdherenceReasons { get; set; } + public string SymptomsAcuteHIV { get; set; } + public string ContraindicationsPrep { get; set; } + public string PrepTreatmentPlan { get; set; } + public string PrepPrescribed { get; set; } + public string RegimenPrescribed { get; set; } + public string MonthsPrescribed { get; set; } + public string CondomsIssued { get; set; } + public string Tobegivennextappointment { get; set; } + public string Reasonfornotgivingnextappointment { get; set; } + public string HepatitisBPositiveResult { get; set; } + public string HepatitisCPositiveResult { get; set; } + public string VaccinationForHepBStarted { get; set; } + public string TreatedForHepB { get; set; } + public string VaccinationForHepCStarted { get; set; } + public string TreatedForHepC { get; set; } + public DateTime? NextAppointment { get; set; } + public string ClinicalNotes { get; set; } + public DateTime? Date_Created { get; set; } + public DateTime? Date_Last_Modified { get; set; } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Notifications/CrsNotification.cs b/src/Dwapi.ExtractsManagement.Core/Notifications/CrsNotification.cs new file mode 100644 index 00000000..e7af5288 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Notifications/CrsNotification.cs @@ -0,0 +1,15 @@ +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Notifications +{ + public class CrsNotification : IDomainEvent + { + public ExtractProgress Progress { get; set; } + + public CrsNotification(ExtractProgress progress) + { + Progress = progress; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Notifications/CrsStatusNotification.cs b/src/Dwapi.ExtractsManagement.Core/Notifications/CrsStatusNotification.cs new file mode 100644 index 00000000..a61bb2e6 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Notifications/CrsStatusNotification.cs @@ -0,0 +1,22 @@ +using System; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; + +namespace Dwapi.ExtractsManagement.Core.Notifications +{ + public class CrsStatusNotification : IDomainEvent + { + public Guid ExtractId { get; } + public ExtractStatus Status { get; } + public int? Stats { get; } + public string StatusInfo { get; } + + public CrsStatusNotification(Guid extractId, ExtractStatus status, int? stats=null, string statusInfo="") + { + ExtractId = extractId; + Status = status; + Stats = stats; + StatusInfo = statusInfo; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Notifications/PrepExtractActivityNotification.cs b/src/Dwapi.ExtractsManagement.Core/Notifications/PrepExtractActivityNotification.cs new file mode 100644 index 00000000..32fdd4e3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Notifications/PrepExtractActivityNotification.cs @@ -0,0 +1,18 @@ +using System; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Notifications +{ + public class PrepExtractActivityNotification : IDomainEvent + { + public Guid ExtractId { get; set; } + public DwhProgress Progress { get; set; } + + public PrepExtractActivityNotification(Guid extractId, DwhProgress progress) + { + ExtractId = extractId; + Progress = progress; + } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Notifications/PrepNotification.cs b/src/Dwapi.ExtractsManagement.Core/Notifications/PrepNotification.cs new file mode 100644 index 00000000..c527abb4 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Notifications/PrepNotification.cs @@ -0,0 +1,15 @@ +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.ExtractsManagement.Core.Notifications +{ + public class PrepNotification : IDomainEvent + { + public ExtractProgress Progress { get; set; } + + public PrepNotification(ExtractProgress progress) + { + Progress = progress; + } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Notifications/PrepStatusNotification.cs b/src/Dwapi.ExtractsManagement.Core/Notifications/PrepStatusNotification.cs new file mode 100644 index 00000000..22cd702c --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Notifications/PrepStatusNotification.cs @@ -0,0 +1,22 @@ +using System; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; + +namespace Dwapi.ExtractsManagement.Core.Notifications +{ + public class PrepStatusNotification : IDomainEvent + { + public Guid ExtractId { get; } + public ExtractStatus Status { get; } + public int? Stats { get; } + public string StatusInfo { get; } + + public PrepStatusNotification(Guid extractId, ExtractStatus status, int? stats=null, string statusInfo="") + { + ExtractId = extractId; + Status = status; + Stats = stats; + StatusInfo = statusInfo; + } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Core/Profiles/Crs/CrsExtractProfile.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/Crs/CrsExtractProfile.cs new file mode 100644 index 00000000..7f207e79 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Profiles/Crs/CrsExtractProfile.cs @@ -0,0 +1,69 @@ +using System.Data; +using AutoMapper; +using Dwapi.ExtractsManagement.Core.Model.Destination.Cbs; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; +using Dwapi.ExtractsManagement.Core.Model.Source.Cbs; +using Dwapi.ExtractsManagement.Core.Model.Source.Crs; +using Dwapi.SharedKernel.Utility; + +namespace Dwapi.ExtractsManagement.Core.Profiles.Crs +{ + public class CrsExtractProfile : Profile + { + public CrsExtractProfile() + { + CreateMap() + .ForMember(x => x.CCCNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.CCCNumber)))) + .ForMember(x => x.NationalId, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.NationalId)))) + .ForMember(x => x.Passport, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.Passport)))) + .ForMember(x => x.HudumaNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.HudumaNumber)))) + .ForMember(x => x.BirthCertificateNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.BirthCertificateNumber)))) + .ForMember(x => x.AlienIdNo, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.AlienIdNo)))) + .ForMember(x => x.DrivingLicenseNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.DrivingLicenseNumber)))) + .ForMember(x => x.PatientClinicNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.PatientClinicNumber)))) + + .ForMember(x => x.FirstName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.FirstName)))) + .ForMember(x => x.MiddleName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.MiddleName)))) + .ForMember(x => x.LastName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.LastName)))) + .ForMember(x => x.DateOfBirth, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempClientRegistryExtract.DateOfBirth)))) + .ForMember(x => x.Sex, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.Sex)))) + .ForMember(x => x.MaritalStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.MaritalStatus)))) + .ForMember(x => x.Occupation, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.Occupation)))) + .ForMember(x => x.HighestLevelOfEducation, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.HighestLevelOfEducation)))) + .ForMember(x => x.PhoneNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.PhoneNumber)))) + .ForMember(x => x.AlternativePhoneNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.AlternativePhoneNumber)))) + .ForMember(x => x.SpousePhoneNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.SpousePhoneNumber)))) + .ForMember(x => x.NameOfNextOfKin, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.NameOfNextOfKin)))) + .ForMember(x => x.NextOfKinRelationship, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.NextOfKinRelationship)))) + .ForMember(x => x.NextOfKinTelNo, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.NextOfKinTelNo)))) + .ForMember(x => x.County, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.County)))) + .ForMember(x => x.SubCounty, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.SubCounty)))) + .ForMember(x => x.Ward, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.Ward)))) + .ForMember(x => x.Location, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.Location)))) + .ForMember(x => x.Village, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.Village)))) + .ForMember(x => x.Landmark, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.Landmark)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.FacilityName)))) + .ForMember(x => x.MFLCode, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.MFLCode)))) + .ForMember(x => x.DateOfInitiation, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempClientRegistryExtract.DateOfInitiation)))) + .ForMember(x => x.TreatmentOutcome, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.TreatmentOutcome)))) + .ForMember(x => x.DateOfLastEncounter, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempClientRegistryExtract.DateOfLastEncounter)))) + .ForMember(x => x.DateOfLastViralLoad, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempClientRegistryExtract.DateOfLastViralLoad)))) + .ForMember(x => x.NextAppointmentDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempClientRegistryExtract.NextAppointmentDate)))) + .ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempClientRegistryExtract.PatientPK)))) + .ForMember(x => x.FacilityId, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempClientRegistryExtract.FacilityId)))) + + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempClientRegistryExtract.SiteCode)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.Project)))) + .ForMember(x => x.LastRegimen, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.LastRegimen)))) + .ForMember(x => x.LastRegimenLine, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.LastRegimenLine)))) + .ForMember(x => x.CurrentOnART, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.CurrentOnART)))) + .ForMember(x => x.DateOfHIVdiagnosis, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempClientRegistryExtract.DateOfHIVdiagnosis)))) + .ForMember(x => x.LastViralLoadResult, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempClientRegistryExtract.LastViralLoadResult)))); + + + + CreateMap(); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Profiles/Dwh/CtExtractProfile.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/Dwh/CtExtractProfile.cs index aa9eb9d1..6c9bd304 100644 --- a/src/Dwapi.ExtractsManagement.Core/Profiles/Dwh/CtExtractProfile.cs +++ b/src/Dwapi.ExtractsManagement.Core/Profiles/Dwh/CtExtractProfile.cs @@ -51,7 +51,8 @@ public CtExtractProfile() .ForMember(x => x.PatientType, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientExtract.PatientType)))) .ForMember(x => x.PopulationType, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientExtract.PopulationType)))) .ForMember(x => x.TransferInDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientExtract.TransferInDate)))) - .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientExtract.Project)))); + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientExtract.Project)))) + .ForMember(x => x.NUPI, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientExtract.NUPI)))); CreateMap() .ForMember(x => x.DatePreviousARTStart, o => o.MapFrom(s => s.PreviousARTStartDate)); @@ -176,7 +177,15 @@ public CtExtractProfile() .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientStatusExtract.FacilityName)))) .ForMember(x => x.ExitDescription, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientStatusExtract.ExitDescription)))) .ForMember(x => x.ExitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientStatusExtract.ExitDate)))) - .ForMember(x => x.ExitReason, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientStatusExtract.ExitReason)))); + .ForMember(x => x.ExitReason, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientStatusExtract.ExitReason)))) + //TODO:Check why these were NOT mapped INFORM PARTNERS + .ForMember(x => x.TOVerified, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientStatusExtract.TOVerified)))) + .ForMember(x => x.TOVerifiedDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientStatusExtract.TOVerifiedDate)))) + .ForMember(x => x.ReEnrollmentDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientStatusExtract.ReEnrollmentDate)))) + .ForMember(x => x.ReasonForDeath, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientStatusExtract.ReasonForDeath)))) + .ForMember(x => x.SpecificDeathReason, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientStatusExtract.SpecificDeathReason)))) + .ForMember(x => x.DeathDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientStatusExtract.DeathDate)))) + .ForMember(x => x.EffectiveDiscontinuationDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientStatusExtract.EffectiveDiscontinuationDate)))); CreateMap(); @@ -198,8 +207,8 @@ public CtExtractProfile() .ForMember(x => x.Pregnant, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientVisitExtract.Pregnant)))) .ForMember(x => x.LMP, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientVisitExtract.LMP)))) .ForMember(x => x.EDD, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientVisitExtract.EDD)))) - .ForMember(x => x.Height, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPatientVisitExtract.Height)))) - .ForMember(x => x.Weight, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPatientVisitExtract.Weight)))) + .ForMember(x => x.Height, o => o.MapFrom(s => s.GetNullDecimalOrDefault(nameof(TempPatientVisitExtract.Height)))) + .ForMember(x => x.Weight, o => o.MapFrom(s => s.GetNullDecimalOrDefault(nameof(TempPatientVisitExtract.Weight)))) .ForMember(x => x.BP, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientVisitExtract.BP)))) .ForMember(x => x.OI, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientVisitExtract.OI)))) .ForMember(x => x.OIDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientVisitExtract.OIDate)))) @@ -213,12 +222,13 @@ public CtExtractProfile() .ForMember(x => x.SecondlineRegimenChangeReason, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientVisitExtract.SecondlineRegimenChangeReason)))) .ForMember(x => x.FamilyPlanningMethod, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientVisitExtract.FamilyPlanningMethod)))) .ForMember(x => x.PwP, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientVisitExtract.PwP)))) - .ForMember(x => x.GestationAge, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPatientVisitExtract.GestationAge)))) + .ForMember(x => x.GestationAge, o => o.MapFrom(s => s.GetNullDecimalOrDefault(nameof(TempPatientVisitExtract.GestationAge)))) .ForMember(x => x.DifferentiatedCare, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientVisitExtract.DifferentiatedCare)))) .ForMember(x => x.KeyPopulationType, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientVisitExtract.KeyPopulationType)))) .ForMember(x => x.PopulationType, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientVisitExtract.PopulationType)))) .ForMember(x => x.StabilityAssessment, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientVisitExtract.StabilityAssessment)))) + .ForMember(x => x.RefillDate, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientVisitExtract.RefillDate)))) .ForMember(x => x.NextAppointmentDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientVisitExtract.NextAppointmentDate)))); @@ -244,6 +254,320 @@ public CtExtractProfile() .ForMember(x => x.VisitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientAdverseEventExtract.VisitDate)))); CreateMap(); + + + #region NewCT + + CreateMap() + .ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempAllergiesChronicIllnessExtract.PatientPK)))) + .ForMember(x => x.PatientID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.PatientID)))) + .ForMember(x => x.FacilityId, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempAllergiesChronicIllnessExtract.FacilityId)))) + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempAllergiesChronicIllnessExtract.SiteCode)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.Project)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.FacilityName)))) + .ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempAllergiesChronicIllnessExtract.VisitID)))) + .ForMember(x => x.VisitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempAllergiesChronicIllnessExtract.VisitDate)))) + .ForMember(x => x.ChronicIllness, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.ChronicIllness)))) + .ForMember(x => x.ChronicOnsetDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempAllergiesChronicIllnessExtract.ChronicOnsetDate)))) + .ForMember(x => x.knownAllergies, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.knownAllergies)))) + .ForMember(x => x.AllergyCausativeAgent, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.AllergyCausativeAgent)))) + .ForMember(x => x.AllergicReaction, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.AllergicReaction)))) + .ForMember(x => x.AllergySeverity, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.AllergySeverity)))) + .ForMember(x => x.AllergyOnsetDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempAllergiesChronicIllnessExtract.AllergyOnsetDate)))) + .ForMember(x => x.Skin, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.Skin)))) + .ForMember(x => x.Eyes, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.Eyes)))) + .ForMember(x => x.ENT, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.ENT)))) + .ForMember(x => x.Chest, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.Chest)))) + .ForMember(x => x.CVS, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.CVS)))) + .ForMember(x => x.Abdomen, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.Abdomen)))) + .ForMember(x => x.CNS, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.CNS)))) + .ForMember(x => x.Genitourinary, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempAllergiesChronicIllnessExtract.Genitourinary)))); + CreateMap(); + + CreateMap() + .ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempContactListingExtract.PatientPK)))) + .ForMember(x => x.PatientID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.PatientID)))) + .ForMember(x => x.FacilityId, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempContactListingExtract.FacilityId)))) + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempContactListingExtract.SiteCode)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.Project)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.FacilityName)))) + .ForMember(x => x.PartnerPersonID, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempContactListingExtract.PartnerPersonID)))) + .ForMember(x => x.ContactAge, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.ContactAge)))) + .ForMember(x => x.ContactSex, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.ContactSex)))) + .ForMember(x => x.ContactMaritalStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.ContactMaritalStatus)))) + .ForMember(x => x.RelationshipWithPatient, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.RelationshipWithPatient)))) + .ForMember(x => x.ScreenedForIpv, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.ScreenedForIpv)))) + .ForMember(x => x.IpvScreening, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.IpvScreening)))) + .ForMember(x => x.IPVScreeningOutcome, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.IPVScreeningOutcome)))) + .ForMember(x => x.CurrentlyLivingWithIndexClient, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.CurrentlyLivingWithIndexClient)))) + .ForMember(x => x.KnowledgeOfHivStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.KnowledgeOfHivStatus)))) + .ForMember(x => x.PnsApproach, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.PnsApproach)))) + .ForMember(x => x.ContactPatientPK, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempContactListingExtract.ContactPatientPK)))); + + CreateMap(); + + + ; + CreateMap() + .ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempDepressionScreeningExtract.PatientPK)))) + .ForMember(x => x.PatientID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.PatientID)))) + .ForMember(x => x.FacilityId, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempDepressionScreeningExtract.FacilityId)))) + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempDepressionScreeningExtract.SiteCode)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.Project)))) + .ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempDepressionScreeningExtract.VisitID)))) + .ForMember(x => x.VisitDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.VisitDate)))) + .ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.VisitID)))) + .ForMember(x => x.VisitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempDepressionScreeningExtract.VisitDate)))) + .ForMember(x => x.PHQ9_1, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.PHQ9_1)))) + .ForMember(x => x.PHQ9_2, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.PHQ9_2)))) + .ForMember(x => x.PHQ9_3, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.PHQ9_3)))) + .ForMember(x => x.PHQ9_4, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.PHQ9_4)))) + .ForMember(x => x.PHQ9_5, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.PHQ9_5)))) + .ForMember(x => x.PHQ9_6, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.PHQ9_6)))) + .ForMember(x => x.PHQ9_7, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.PHQ9_7)))) + .ForMember(x => x.PHQ9_8, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.PHQ9_8)))) + .ForMember(x => x.PHQ9_9, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.PHQ9_9)))) + .ForMember(x => x.PHQ9_9, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.PHQ9_9)))) + .ForMember(x => x.PHQ_9_rating, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDepressionScreeningExtract.PHQ_9_rating)))); + + CreateMap(); + + CreateMap() + .ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempDrugAlcoholScreeningExtract.PatientPK)))) + .ForMember(x => x.PatientID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDrugAlcoholScreeningExtract.PatientID)))) + .ForMember(x => x.FacilityId, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempDrugAlcoholScreeningExtract.FacilityId)))) + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempDrugAlcoholScreeningExtract.SiteCode)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDrugAlcoholScreeningExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDrugAlcoholScreeningExtract.Project)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDrugAlcoholScreeningExtract.FacilityName)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDrugAlcoholScreeningExtract.FacilityName)))) + .ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempDrugAlcoholScreeningExtract.VisitID)))) + .ForMember(x => x.VisitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempDrugAlcoholScreeningExtract.VisitDate)))) + .ForMember(x => x.DrinkingAlcohol, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDrugAlcoholScreeningExtract.DrinkingAlcohol)))) + .ForMember(x => x.Smoking, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDrugAlcoholScreeningExtract.Smoking)))) + .ForMember(x => x.DrugUse, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDrugAlcoholScreeningExtract.DrugUse)))) + ; + CreateMap(); + + CreateMap() + .ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.PatientPK)))) + .ForMember(x => x.PatientID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.PatientID)))) + .ForMember(x => x.FacilityId, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.FacilityId)))) + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.SiteCode)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.Project)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.FacilityName)))) +.ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.VisitID)))) +.ForMember(x => x.VisitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.VisitDate)))) +.ForMember(x => x.SessionNumber, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.SessionNumber)))) +.ForMember(x => x.DateOfFirstSession, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.DateOfFirstSession)))) +.ForMember(x => x.PillCountAdherence, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.PillCountAdherence)))) +.ForMember(x => x.MMAS4_1, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.MMAS4_1)))) +.ForMember(x => x.MMAS4_2, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.MMAS4_2)))) +.ForMember(x => x.MMAS4_3, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.MMAS4_3)))) +.ForMember(x => x.MMAS4_4, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.MMAS4_4)))) +.ForMember(x => x.MMSA8_1, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.MMSA8_1)))) +.ForMember(x => x.MMSA8_2, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.MMSA8_2)))) +.ForMember(x => x.MMSA8_3, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.MMSA8_3)))) +.ForMember(x => x.MMSA8_4, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.MMSA8_4)))) +.ForMember(x => x.MMSAScore, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.MMSAScore)))) +.ForMember(x => x.EACRecievedVL, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACRecievedVL)))) +.ForMember(x => x.EACVL, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACVL)))) +.ForMember(x => x.EACVLConcerns, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACVLConcerns)))) +.ForMember(x => x.EACVLThoughts, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACVLThoughts)))) +.ForMember(x => x.EACWayForward, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACWayForward)))) +.ForMember(x => x.EACCognitiveBarrier, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACCognitiveBarrier)))) +.ForMember(x => x.EACBehaviouralBarrier_1, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACBehaviouralBarrier_1)))) +.ForMember(x => x.EACBehaviouralBarrier_2, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACBehaviouralBarrier_2)))) +.ForMember(x => x.EACBehaviouralBarrier_3, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACBehaviouralBarrier_3)))) +.ForMember(x => x.EACBehaviouralBarrier_4, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACBehaviouralBarrier_4)))) +.ForMember(x => x.EACBehaviouralBarrier_5, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACBehaviouralBarrier_5)))) +.ForMember(x => x.EACEmotionalBarriers_1, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACEmotionalBarriers_1)))) +.ForMember(x => x.EACEmotionalBarriers_2, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACEmotionalBarriers_2)))) +.ForMember(x => x.EACEconBarrier_1, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACEconBarrier_1)))) +.ForMember(x => x.EACEconBarrier_2, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACEconBarrier_2)))) +.ForMember(x => x.EACEconBarrier_3, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACEconBarrier_3)))) +.ForMember(x => x.EACEconBarrier_4, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACEconBarrier_4)))) +.ForMember(x => x.EACEconBarrier_5, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACEconBarrier_5)))) +.ForMember(x => x.EACEconBarrier_6, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACEconBarrier_6)))) +.ForMember(x => x.EACEconBarrier_7, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACEconBarrier_7)))) +.ForMember(x => x.EACEconBarrier_8, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACEconBarrier_8)))) +.ForMember(x => x.EACReviewImprovement, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACReviewImprovement)))) +.ForMember(x => x.EACReviewMissedDoses, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACReviewMissedDoses)))) +.ForMember(x => x.EACReviewStrategy, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACReviewStrategy)))) +.ForMember(x => x.EACReferral, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACReferral)))) +.ForMember(x => x.EACReferralApp, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACReferralApp)))) +.ForMember(x => x.EACReferralExperience, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACReferralExperience)))) +.ForMember(x => x.EACHomevisit, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACHomevisit)))) +.ForMember(x => x.EACAdherencePlan, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACAdherencePlan)))) +.ForMember(x => x.EACFollowupDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempEnhancedAdherenceCounsellingExtract.EACFollowupDate)))) + ; + CreateMap(); + + CreateMap() + .ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempGbvScreeningExtract.PatientPK)))) + .ForMember(x => x.PatientID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempGbvScreeningExtract.PatientID)))) + .ForMember(x => x.FacilityId, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempGbvScreeningExtract.FacilityId)))) + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempGbvScreeningExtract.SiteCode)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempGbvScreeningExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempGbvScreeningExtract.Project)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempGbvScreeningExtract.FacilityName)))) + .ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempGbvScreeningExtract.VisitID)))) + .ForMember(x => x.VisitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempGbvScreeningExtract.VisitDate)))) + .ForMember(x => x.IPV, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempGbvScreeningExtract.IPV)))) + .ForMember(x => x.PhysicalIPV, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempGbvScreeningExtract.PhysicalIPV)))) + .ForMember(x => x.EmotionalIPV, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempGbvScreeningExtract.EmotionalIPV)))) + .ForMember(x => x.SexualIPV, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempGbvScreeningExtract.SexualIPV)))) + .ForMember(x => x.IPVRelationship, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempGbvScreeningExtract.IPVRelationship)))) + ; + CreateMap(); + + CreateMap() + .ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempIptExtract.PatientPK)))) + .ForMember(x => x.PatientID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.PatientID)))) + .ForMember(x => x.FacilityId, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempIptExtract.FacilityId)))) + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempIptExtract.SiteCode)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.Project)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.FacilityName)))) +.ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempIptExtract.VisitID)))) +.ForMember(x => x.VisitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempIptExtract.VisitDate)))) +.ForMember(x => x.OnTBDrugs, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.OnTBDrugs)))) +.ForMember(x => x.OnIPT, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.OnIPT)))) +.ForMember(x => x.EverOnIPT, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.EverOnIPT)))) +.ForMember(x => x.Cough, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.Cough)))) +.ForMember(x => x.Fever, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.Fever)))) +.ForMember(x => x.NoticeableWeightLoss, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.NoticeableWeightLoss)))) +.ForMember(x => x.NightSweats, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.NightSweats)))) +.ForMember(x => x.Lethargy , o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.Lethargy )))) +.ForMember(x => x.ICFActionTaken, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.ICFActionTaken)))) +.ForMember(x => x.TestResult, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.TestResult)))) +.ForMember(x => x.TBClinicalDiagnosis, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.TBClinicalDiagnosis)))) +.ForMember(x => x.ContactsInvited, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.ContactsInvited)))) +.ForMember(x => x.EvaluatedForIPT, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.EvaluatedForIPT)))) +.ForMember(x => x.StartAntiTBs, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.StartAntiTBs)))) +.ForMember(x => x.TBRxStartDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempIptExtract.TBRxStartDate)))) +.ForMember(x => x.TBScreening, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.TBScreening)))) +.ForMember(x => x.IPTClientWorkUp, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempIptExtract.IPTClientWorkUp)))) +.ForMember(x => x.StartIPT, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempIptExtract.StartIPT)))) +.ForMember(x => x.IndicationForIPT, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempIptExtract.IndicationForIPT)))) + +; + CreateMap(); + + + CreateMap() + .ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempOtzExtract.PatientPK)))) + .ForMember(x => x.PatientID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOtzExtract.PatientID)))) + .ForMember(x => x.FacilityId, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempOtzExtract.FacilityId)))) + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempOtzExtract.SiteCode)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOtzExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOtzExtract.Project)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOtzExtract.FacilityName)))) + .ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempOtzExtract.VisitID)))) + .ForMember(x => x.VisitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempOtzExtract.VisitDate)))) + .ForMember(x => x.OTZEnrollmentDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempOtzExtract.OTZEnrollmentDate)))) + .ForMember(x => x.TransferInStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOtzExtract.TransferInStatus)))) + .ForMember(x => x.ModulesPreviouslyCovered, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOtzExtract.ModulesPreviouslyCovered)))) + .ForMember(x => x.ModulesCompletedToday, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOtzExtract.ModulesCompletedToday)))) + .ForMember(x => x.SupportGroupInvolvement, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOtzExtract.SupportGroupInvolvement)))) + .ForMember(x => x.Remarks, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOtzExtract.Remarks)))) + .ForMember(x => x.TransitionAttritionReason, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOtzExtract.TransitionAttritionReason)))) + .ForMember(x => x.OutcomeDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempOtzExtract.OutcomeDate)))) + ; + CreateMap(); + + CreateMap() + .ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempOvcExtract.PatientPK)))) + .ForMember(x => x.PatientID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOvcExtract.PatientID)))) + .ForMember(x => x.FacilityId, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempOvcExtract.FacilityId)))) + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempOvcExtract.SiteCode)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOvcExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOvcExtract.Project)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOvcExtract.FacilityName)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOvcExtract.FacilityName)))) + .ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempOvcExtract.VisitID)))) + .ForMember(x => x.VisitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempOvcExtract.VisitDate)))) + .ForMember(x => x.OVCEnrollmentDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempOvcExtract.OVCEnrollmentDate)))) + .ForMember(x => x.RelationshipToClient, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOvcExtract.RelationshipToClient)))) + .ForMember(x => x.EnrolledinCPIMS, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempOvcExtract.EnrolledinCPIMS)))) + .ForMember(x => x.CPIMSUniqueIdentifier, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOvcExtract.CPIMSUniqueIdentifier)))) + .ForMember(x => x.PartnerOfferingOVCServices, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOvcExtract.PartnerOfferingOVCServices)))) + .ForMember(x => x.OVCExitReason, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempOvcExtract.OVCExitReason)))) + .ForMember(x => x.ExitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempOvcExtract.ExitDate)))) + ; +; + CreateMap(); + + #endregion + + #region Covid + + CreateMap() + .ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.PatientPK)))) + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.SiteCode)))) + .ForMember(x => x.PatientID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.PatientID)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.Project)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.FacilityName)))) +.ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.VisitID)))) +.ForMember(x => x.Covid19AssessmentDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.Covid19AssessmentDate)))) +.ForMember(x => x.ReceivedCOVID19Vaccine, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.ReceivedCOVID19Vaccine)))) +.ForMember(x => x.DateGivenFirstDose, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.DateGivenFirstDose)))) +.ForMember(x => x.FirstDoseVaccineAdministered, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.FirstDoseVaccineAdministered)))) +.ForMember(x => x.DateGivenSecondDose, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.DateGivenSecondDose)))) +.ForMember(x => x.SecondDoseVaccineAdministered, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.SecondDoseVaccineAdministered)))) +.ForMember(x => x.VaccinationStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.VaccinationStatus)))) +.ForMember(x => x.VaccineVerification, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.VaccineVerification)))) +.ForMember(x => x.BoosterGiven, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.BoosterGiven)))) +.ForMember(x => x.BoosterDose, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.BoosterDose)))) +.ForMember(x => x.BoosterDoseDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.BoosterDoseDate)))) +.ForMember(x => x.EverCOVID19Positive, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.EverCOVID19Positive)))) +.ForMember(x => x.COVID19TestDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.COVID19TestDate)))) +.ForMember(x => x.PatientStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.PatientStatus)))) +.ForMember(x => x.AdmissionStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.AdmissionStatus)))) +.ForMember(x => x.AdmissionUnit, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.AdmissionUnit)))) +.ForMember(x => x.MissedAppointmentDueToCOVID19, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.MissedAppointmentDueToCOVID19)))) +.ForMember(x => x.COVID19PositiveSinceLasVisit, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.COVID19PositiveSinceLasVisit)))) +.ForMember(x => x.COVID19TestDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.COVID19TestDate)))) +.ForMember(x => x.PatientStatusSinceLastVisit, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.PatientStatusSinceLastVisit)))) +.ForMember(x => x.AdmissionStatusSinceLastVisit, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.AdmissionStatusSinceLastVisit)))) +.ForMember(x => x.AdmissionStartDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.AdmissionStartDate)))) +.ForMember(x => x.AdmissionEndDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.AdmissionEndDate)))) +.ForMember(x => x.AdmissionUnitSinceLastVisit, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.AdmissionUnitSinceLastVisit)))) +.ForMember(x => x.SupplementalOxygenReceived, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.SupplementalOxygenReceived)))) +.ForMember(x => x.PatientVentilated, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.PatientVentilated)))) +.ForMember(x => x.TracingFinalOutcome, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.TracingFinalOutcome)))) +.ForMember(x => x.CauseOfDeath, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.CauseOfDeath)))) +.ForMember(x => x.Sequence, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.Sequence)))) +.ForMember(x => x.COVID19TestResult, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.COVID19TestResult)))) + ; + CreateMap(); + + CreateMap() +.ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.PatientPK)))) +.ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.SiteCode)))) +.ForMember(x => x.PatientID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.PatientID)))) +.ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.Emr)))) +.ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.Project)))) +.ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.FacilityName)))) +.ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.VisitID)))) +.ForMember(x => x.VisitDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.VisitDate)))) +.ForMember(x => x.EncounterId, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.EncounterId)))) +.ForMember(x => x.TracingType, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.TracingType)))) +.ForMember(x => x.TracingOutcome, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.TracingOutcome)))) +.ForMember(x => x.AttemptNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.AttemptNumber)))) +.ForMember(x => x.IsFinalTrace, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.IsFinalTrace)))) +.ForMember(x => x.TrueStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.TrueStatus)))) +.ForMember(x => x.CauseOfDeath, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.CauseOfDeath)))) +.ForMember(x => x.Comments, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.Comments)))) +.ForMember(x => x.BookingDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.BookingDate)))); + CreateMap(); + + #endregion } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Profiles/Dwh/DiffCtExtractProfile.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/Dwh/DiffCtExtractProfile.cs index ab4719d0..86f520bd 100644 --- a/src/Dwapi.ExtractsManagement.Core/Profiles/Dwh/DiffCtExtractProfile.cs +++ b/src/Dwapi.ExtractsManagement.Core/Profiles/Dwh/DiffCtExtractProfile.cs @@ -57,7 +57,9 @@ public DiffCtExtractProfile() .ForMember(x => x.Date_Last_Modified, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientExtract.Date_Last_Modified)))) .ForMember(x => x.Pkv, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientExtract.Pkv)))) .ForMember(x => x.Occupation, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientExtract.Occupation)))) - ; + .ForMember(x => x.NUPI, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientExtract.NUPI)))); + + CreateMap() .ForMember(x => x.DatePreviousARTStart, o => o.MapFrom(s => s.PreviousARTStartDate)); @@ -205,7 +207,10 @@ public DiffCtExtractProfile() .ForMember(x => x.TOVerified, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientStatusExtract.TOVerified)))) .ForMember(x => x.TOVerifiedDate, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientStatusExtract.TOVerifiedDate)))) .ForMember(x => x.ReEnrollmentDate, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientStatusExtract.ReEnrollmentDate)))) - ; + .ForMember(x => x.ReasonForDeath, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientStatusExtract.ReasonForDeath)))) + .ForMember(x => x.SpecificDeathReason, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientStatusExtract.SpecificDeathReason)))) + .ForMember(x => x.DeathDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientStatusExtract.DeathDate)))) + .ForMember(x => x.EffectiveDiscontinuationDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientStatusExtract.EffectiveDiscontinuationDate)))); CreateMap(); @@ -269,8 +274,9 @@ public DiffCtExtractProfile() .ForMember(x => x.CurrentRegimen, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientVisitExtract.CurrentRegimen)))) .ForMember(x => x.HCWConcern, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientVisitExtract.HCWConcern)))) .ForMember(x => x.TCAReason, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientVisitExtract.TCAReason)))) - .ForMember(x => x.ClinicalNotes, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientVisitExtract.ClinicalNotes)))) - ; + .ForMember(x => x.RefillDate, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientVisitExtract.RefillDate)))) + + .ForMember(x => x.ClinicalNotes, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientVisitExtract.ClinicalNotes)))); CreateMap(); @@ -350,7 +356,8 @@ public DiffCtExtractProfile() .ForMember(x => x.KnowledgeOfHivStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.KnowledgeOfHivStatus)))) .ForMember(x => x.PnsApproach, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempContactListingExtract.PnsApproach)))) .ForMember(x => x.Date_Created, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientAdverseEventExtract.Date_Created)))) - .ForMember(x => x.Date_Last_Modified, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientAdverseEventExtract.Date_Last_Modified)))); + .ForMember(x => x.Date_Last_Modified, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientAdverseEventExtract.Date_Last_Modified)))) + .ForMember(x => x.ContactPatientPK, o => o.MapFrom(s => s.GetOptionalNullIntOrDefault(nameof(TempContactListingExtract.ContactPatientPK)))); CreateMap(); @@ -561,6 +568,74 @@ public DiffCtExtractProfile() .ForMember(x => x.Date_Last_Modified, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientAdverseEventExtract.Date_Last_Modified)))); ; CreateMap(); + + + + CreateMap() + .ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.PatientPK)))) + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.SiteCode)))) + .ForMember(x => x.PatientID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.PatientID)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.Project)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.FacilityName)))) +.ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.VisitID)))) +.ForMember(x => x.Covid19AssessmentDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.Covid19AssessmentDate)))) +.ForMember(x => x.ReceivedCOVID19Vaccine, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.ReceivedCOVID19Vaccine)))) +.ForMember(x => x.DateGivenFirstDose, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.DateGivenFirstDose)))) +.ForMember(x => x.FirstDoseVaccineAdministered, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.FirstDoseVaccineAdministered)))) +.ForMember(x => x.DateGivenSecondDose, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.DateGivenSecondDose)))) +.ForMember(x => x.SecondDoseVaccineAdministered, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.SecondDoseVaccineAdministered)))) +.ForMember(x => x.VaccinationStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.VaccinationStatus)))) +.ForMember(x => x.VaccineVerification, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.VaccineVerification)))) +.ForMember(x => x.BoosterGiven, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.BoosterGiven)))) +.ForMember(x => x.BoosterDose, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.BoosterDose)))) +.ForMember(x => x.BoosterDoseDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.BoosterDoseDate)))) +.ForMember(x => x.EverCOVID19Positive, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.EverCOVID19Positive)))) +.ForMember(x => x.COVID19TestDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.COVID19TestDate)))) +.ForMember(x => x.PatientStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.PatientStatus)))) +.ForMember(x => x.AdmissionStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.AdmissionStatus)))) +.ForMember(x => x.AdmissionUnit, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.AdmissionUnit)))) +.ForMember(x => x.MissedAppointmentDueToCOVID19, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.MissedAppointmentDueToCOVID19)))) +.ForMember(x => x.COVID19PositiveSinceLasVisit, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.COVID19PositiveSinceLasVisit)))) +.ForMember(x => x.COVID19TestDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.COVID19TestDate)))) +.ForMember(x => x.PatientStatusSinceLastVisit, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.PatientStatusSinceLastVisit)))) +.ForMember(x => x.AdmissionStatusSinceLastVisit, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.AdmissionStatusSinceLastVisit)))) +.ForMember(x => x.AdmissionStartDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.AdmissionStartDate)))) +.ForMember(x => x.AdmissionEndDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.AdmissionEndDate)))) +.ForMember(x => x.AdmissionUnitSinceLastVisit, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.AdmissionUnitSinceLastVisit)))) +.ForMember(x => x.SupplementalOxygenReceived, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.SupplementalOxygenReceived)))) +.ForMember(x => x.PatientVentilated, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.PatientVentilated)))) +.ForMember(x => x.TracingFinalOutcome, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.TracingFinalOutcome)))) +.ForMember(x => x.CauseOfDeath, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.CauseOfDeath)))) +.ForMember(x => x.Sequence, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.Sequence)))) +.ForMember(x => x.COVID19TestResult, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempCovidExtract.COVID19TestResult)))) + .ForMember(x => x.Date_Created, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientAdverseEventExtract.Date_Created)))) + .ForMember(x => x.Date_Last_Modified, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientAdverseEventExtract.Date_Last_Modified)))); +; + CreateMap(); + + CreateMap() +.ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.PatientPK)))) +.ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.SiteCode)))) +.ForMember(x => x.PatientID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.PatientID)))) +.ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.Emr)))) +.ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.Project)))) +.ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.FacilityName)))) +.ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.VisitID)))) +.ForMember(x => x.VisitDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.VisitDate)))) +.ForMember(x => x.EncounterId, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.EncounterId)))) +.ForMember(x => x.TracingType, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.TracingType)))) +.ForMember(x => x.TracingOutcome, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.TracingOutcome)))) +.ForMember(x => x.AttemptNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.AttemptNumber)))) +.ForMember(x => x.IsFinalTrace, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.IsFinalTrace)))) +.ForMember(x => x.TrueStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.TrueStatus)))) +.ForMember(x => x.CauseOfDeath, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.CauseOfDeath)))) +.ForMember(x => x.Comments, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.Comments)))) +.ForMember(x => x.BookingDate, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempDefaulterTracingExtract.BookingDate)))) + .ForMember(x => x.Date_Created, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientAdverseEventExtract.Date_Created)))) + .ForMember(x => x.Date_Last_Modified, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientAdverseEventExtract.Date_Last_Modified)))); + ; + CreateMap(); } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Profiles/ExtractDiffMapper.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/ExtractDiffMapper.cs index dbfd6575..d04233e5 100644 --- a/src/Dwapi.ExtractsManagement.Core/Profiles/ExtractDiffMapper.cs +++ b/src/Dwapi.ExtractsManagement.Core/Profiles/ExtractDiffMapper.cs @@ -1,6 +1,8 @@ using AutoMapper; +using Dwapi.ExtractsManagement.Core.Profiles.Crs; using Dwapi.ExtractsManagement.Core.Profiles.Dwh; using Dwapi.ExtractsManagement.Core.Profiles.Mnch; +using Dwapi.ExtractsManagement.Core.Profiles.Prep; namespace Dwapi.ExtractsManagement.Core.Profiles { @@ -15,6 +17,8 @@ private ExtractDiffMapper() var cfg = _config.BaseMaps(); cfg.AddProfile(); cfg.AddProfile();//TODO :PMTCT DIFF + cfg.AddProfile();//TODO :PREP DIFF + cfg.AddProfile();//TODO :CRS DIFF _instance = new MapperConfiguration(cfg).CreateMapper(); } diff --git a/src/Dwapi.ExtractsManagement.Core/Profiles/ExtractMapper.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/ExtractMapper.cs index 494a470b..e84bf840 100644 --- a/src/Dwapi.ExtractsManagement.Core/Profiles/ExtractMapper.cs +++ b/src/Dwapi.ExtractsManagement.Core/Profiles/ExtractMapper.cs @@ -1,6 +1,8 @@ using AutoMapper; +using Dwapi.ExtractsManagement.Core.Profiles.Crs; using Dwapi.ExtractsManagement.Core.Profiles.Dwh; using Dwapi.ExtractsManagement.Core.Profiles.Mnch; +using Dwapi.ExtractsManagement.Core.Profiles.Prep; namespace Dwapi.ExtractsManagement.Core.Profiles { @@ -15,6 +17,8 @@ private ExtractMapper() var cfg = _config.BaseMaps(); cfg.AddProfile(); cfg.AddProfile(); + cfg.AddProfile(); + cfg.AddProfile(); _instance = new MapperConfiguration(cfg).CreateMapper(); } diff --git a/src/Dwapi.ExtractsManagement.Core/Profiles/Hts/TempHtsExtractProfile.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/Hts/TempHtsExtractProfile.cs index 888228ee..666f8259 100644 --- a/src/Dwapi.ExtractsManagement.Core/Profiles/Hts/TempHtsExtractProfile.cs +++ b/src/Dwapi.ExtractsManagement.Core/Profiles/Hts/TempHtsExtractProfile.cs @@ -48,7 +48,8 @@ public TempHtsExtractProfile() .ForMember(x => x.PopulationType, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHTSClientExtract.PopulationType)))) .ForMember(x => x.PatientDisabled, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHTSClientExtract.PatientDisabled)))) .ForMember(x => x.DisabilityType, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHTSClientExtract.DisabilityType)))) - .ForMember(x => x.PatientConsented, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHTSClientExtract.PatientConsented)))); + .ForMember(x => x.PatientConsented, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHTSClientExtract.PatientConsented)))) + .ForMember(x => x.NUPI, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempHTSClientExtract.NUPI)))); CreateMap(); // HTS Client Linkage Extract @@ -119,7 +120,10 @@ public TempHtsExtractProfile() .ForMember(x => x.PatientDisabled, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsClients.PatientDisabled)))) .ForMember(x => x.County, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsClients.County)))) .ForMember(x => x.SubCounty, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsClients.SubCounty)))) - .ForMember(x => x.Ward, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsClients.Ward)))); + .ForMember(x => x.Ward, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsClients.Ward)))) + .ForMember(x => x.NUPI, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempHtsClients.NUPI)))) + .ForMember(x => x.Pkv, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempHtsClients.Pkv)))); + CreateMap(); //hts client tests @@ -241,9 +245,80 @@ public TempHtsExtractProfile() .ForMember(x => x.DateElicited, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHtsPartnerNotificationServices.DateElicited)))) .ForMember(x => x.MaritalStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsPartnerNotificationServices.MaritalStatus)))); CreateMap(); - } - + + //hts eligibility screening + CreateMap() + .ForMember(x => x.PatientPk, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempHtsEligibilityExtract.PatientPk)))) + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempHtsEligibilityExtract.SiteCode)))) + .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.FacilityName)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.Project)))) + .ForMember(x => x.HtsNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.HtsNumber)))) + .ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempHtsEligibilityExtract.VisitID)))) + .ForMember(x => x.EncounterId, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.EncounterId)))) + .ForMember(x => x.VisitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHtsEligibilityExtract.VisitDate)))) + .ForMember(x => x.PopulationType, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.PopulationType)))) + .ForMember(x => x.KeyPopulation, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.KeyPopulation)))) + .ForMember(x => x.PriorityPopulation, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.PriorityPopulation)))) + .ForMember(x => x.Department, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.Department)))) + .ForMember(x => x.PatientType, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.PatientType)))) + .ForMember(x => x.IsHealthWorker, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.IsHealthWorker)))) + .ForMember(x => x.RelationshipWithContact, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.RelationshipWithContact)))) + .ForMember(x => x.TestedHIVBefore, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.TestedHIVBefore)))) + .ForMember(x => x.WhoPerformedTest, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.WhoPerformedTest)))) + .ForMember(x => x.ResultOfHIV, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.ResultOfHIV)))) + .ForMember(x => x.DateTestedSelf, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHtsEligibilityExtract.DateTestedSelf )))) + .ForMember(x => x.StartedOnART, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.StartedOnART)))) + .ForMember(x => x.CCCNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.CCCNumber)))) + .ForMember(x => x.EverHadSex, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.EverHadSex)))) + .ForMember(x => x.SexuallyActive, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.SexuallyActive)))) + .ForMember(x => x.NewPartner, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.NewPartner)))) + .ForMember(x => x.PartnerHIVStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.PartnerHIVStatus)))) + .ForMember(x => x.CoupleDiscordant, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.CoupleDiscordant)))) + .ForMember(x => x.MultiplePartners, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.MultiplePartners)))) + .ForMember(x => x.NumberOfPartners, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempHtsEligibilityExtract.NumberOfPartners)))) + .ForMember(x => x.AlcoholSex, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.AlcoholSex)))) + .ForMember(x => x.MoneySex, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.MoneySex)))) + .ForMember(x => x.CondomBurst, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.CondomBurst)))) + .ForMember(x => x.UnknownStatusPartner, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.UnknownStatusPartner)))) + .ForMember(x => x.KnownStatusPartner, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.KnownStatusPartner)))) + .ForMember(x => x.Pregnant, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.Pregnant)))) + .ForMember(x => x.BreastfeedingMother, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.BreastfeedingMother)))) + .ForMember(x => x.ExperiencedGBV, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.ExperiencedGBV)))) + .ForMember(x => x.CurrentlyOnPrep, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.CurrentlyOnPrep)))) + .ForMember(x => x.CurrentlyOnPep, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.CurrentlyOnPep)))) + .ForMember(x => x.CurrentlyHasSTI, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.CurrentlyHasSTI)))) + .ForMember(x => x.SharedNeedle, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.SharedNeedle)))) + .ForMember(x => x.NeedleStickInjuries, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.NeedleStickInjuries)))) + .ForMember(x => x.TraditionalProcedures, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.TraditionalProcedures)))) + .ForMember(x => x.ChildReasonsForIneligibility, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.ChildReasonsForIneligibility)))) + .ForMember(x => x.EligibleForTest, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.EligibleForTest)))) + .ForMember(x => x.ReasonsForIneligibility, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.ReasonsForIneligibility)))) + .ForMember(x => x.SpecificReasonForIneligibility, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempHtsEligibilityExtract.SpecificReasonForIneligibility)))) + + .ForMember(x => x.MothersStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.MothersStatus)))) + .ForMember(x => x.ResultOfHIVSelf, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.ResultOfHIVSelf)))) + .ForMember(x => x.DateTestedProvider, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHtsEligibilityExtract.DateTestedProvider)))) + .ForMember(x => x.ScreenedTB, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.ScreenedTB)))) + .ForMember(x => x.Cough, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.Cough)))) + .ForMember(x => x.Fever, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.Fever)))) + .ForMember(x => x.WeightLoss, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.WeightLoss)))) + .ForMember(x => x.NightSweats, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.NightSweats)))) + .ForMember(x => x.Lethargy, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.Lethargy)))) + .ForMember(x => x.TBStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.TBStatus)))) + .ForMember(x => x.ReferredForTesting, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.ReferredForTesting)))) + .ForMember(x => x.AssessmentOutcome, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.AssessmentOutcome)))) + .ForMember(x => x.TypeGBV, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.TypeGBV)))) + .ForMember(x => x.ForcedSex, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.ForcedSex)))) + .ForMember(x => x.ReceivedServices, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.ReceivedServices)))) + .ForMember(x => x.DateCreated, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHtsEligibilityExtract.DateCreated)))) + .ForMember(x => x.DateLastModified, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHtsEligibilityExtract.DateLastModified)))) + .ForMember(x => x.ContactWithTBCase, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHtsEligibilityExtract.ContactWithTBCase )))) + ; + CreateMap(); + + } } } diff --git a/src/Dwapi.ExtractsManagement.Core/Profiles/Mnch/DiffMnchExtractProfile.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/Mnch/DiffMnchExtractProfile.cs index 5a83bab2..643da3e6 100644 --- a/src/Dwapi.ExtractsManagement.Core/Profiles/Mnch/DiffMnchExtractProfile.cs +++ b/src/Dwapi.ExtractsManagement.Core/Profiles/Mnch/DiffMnchExtractProfile.cs @@ -421,12 +421,12 @@ public DiffMnchExtractProfile() .ForMember(x => x.ConfirmatoryPCRDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.ConfirmatoryPCRDate)))) .ForMember(x => x.BasellineVLDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.BasellineVLDate)))) .ForMember(x => x.FinalyAntibodyDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.FinalyAntibodyDate)))) - .ForMember(x => x.DNAPCR1, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.DNAPCR1)))) - .ForMember(x => x.DNAPCR2, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.DNAPCR2)))) - .ForMember(x => x.DNAPCR3, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.DNAPCR3)))) - .ForMember(x => x.ConfirmatoryPCR, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.ConfirmatoryPCR)))) - .ForMember(x => x.BasellineVL, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.BasellineVL)))) - .ForMember(x => x.FinalyAntibody, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.FinalyAntibody)))) + .ForMember(x => x.DNAPCR1, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.DNAPCR1)))) + .ForMember(x => x.DNAPCR2, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.DNAPCR2)))) + .ForMember(x => x.DNAPCR3, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.DNAPCR3)))) + .ForMember(x => x.ConfirmatoryPCR, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.ConfirmatoryPCR)))) + .ForMember(x => x.BasellineVL, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.BasellineVL)))) + .ForMember(x => x.FinalyAntibody, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.FinalyAntibody)))) .ForMember(x => x.HEIExitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.HEIExitDate)))) .ForMember(x => x.HEIHIVStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.HEIHIVStatus)))).ForMember(x => x.HEIExitCritearia, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.HEIExitCritearia)))) diff --git a/src/Dwapi.ExtractsManagement.Core/Profiles/Mnch/MnchExtractProfile.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/Mnch/MnchExtractProfile.cs index 0b156625..0898bf6b 100644 --- a/src/Dwapi.ExtractsManagement.Core/Profiles/Mnch/MnchExtractProfile.cs +++ b/src/Dwapi.ExtractsManagement.Core/Profiles/Mnch/MnchExtractProfile.cs @@ -32,7 +32,8 @@ public MnchExtractProfile() .ForMember(x => x.PatientResidentCounty, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientMnchExtract.PatientResidentCounty)))) .ForMember(x => x.PatientResidentSubCounty, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientMnchExtract.PatientResidentSubCounty)))) .ForMember(x => x.PatientResidentWard, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientMnchExtract.PatientResidentWard)))) - .ForMember(x => x.InSchool, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientMnchExtract.InSchool)))); + .ForMember(x => x.InSchool, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientMnchExtract.InSchool)))) + .ForMember(x => x.NUPI, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientMnchExtract.NUPI)))); @@ -395,12 +396,12 @@ public MnchExtractProfile() .ForMember(x => x.ConfirmatoryPCRDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.ConfirmatoryPCRDate)))) .ForMember(x => x.BasellineVLDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.BasellineVLDate)))) .ForMember(x => x.FinalyAntibodyDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.FinalyAntibodyDate)))) - .ForMember(x => x.DNAPCR1, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.DNAPCR1)))) - .ForMember(x => x.DNAPCR2, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.DNAPCR2)))) - .ForMember(x => x.DNAPCR3, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.DNAPCR3)))) - .ForMember(x => x.ConfirmatoryPCR, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.ConfirmatoryPCR)))) - .ForMember(x => x.BasellineVL, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.BasellineVL)))) - .ForMember(x => x.FinalyAntibody, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.FinalyAntibody)))) + .ForMember(x => x.DNAPCR1, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.DNAPCR1)))) + .ForMember(x => x.DNAPCR2, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.DNAPCR2)))) + .ForMember(x => x.DNAPCR3, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.DNAPCR3)))) + .ForMember(x => x.ConfirmatoryPCR, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.ConfirmatoryPCR)))) + .ForMember(x => x.BasellineVL, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.BasellineVL)))) + .ForMember(x => x.FinalyAntibody, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.FinalyAntibody)))) .ForMember(x => x.HEIExitDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempHeiExtract.HEIExitDate)))) .ForMember(x => x.HEIHIVStatus, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.HEIHIVStatus)))).ForMember(x => x.HEIExitCritearia, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempHeiExtract.HEIExitCritearia)))); diff --git a/src/Dwapi.ExtractsManagement.Core/Profiles/Prep/DiffPrepExtractProfile.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/Prep/DiffPrepExtractProfile.cs new file mode 100644 index 00000000..324e9985 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Profiles/Prep/DiffPrepExtractProfile.cs @@ -0,0 +1,393 @@ +using System.Data; +using AutoMapper; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Utility; + +namespace Dwapi.ExtractsManagement.Core.Profiles.Prep +{ + public class DiffPrepExtractProfile : Profile + { + public DiffPrepExtractProfile() + { + CreateMap() + .ForMember(x => x.PatientPK, + o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPatientPrepExtract.PatientPK)))) + .ForMember(x => x.SiteCode, + o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPatientPrepExtract.SiteCode)))) + // .ForMember(x => x.FacilityId, + // o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPatientPrepExtract.FacilityId)))) + .ForMember(x => x.Project, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Project)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Emr)))) + .ForMember(x => x.FacilityName, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.FacilityName)))) + .ForMember(x => x.PrepNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.PrepNumber)))) + .ForMember(x => x.HtsNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.HtsNumber)))) + .ForMember(x => x.PrepEnrollmentDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.PrepEnrollmentDate)))) + .ForMember(x => x.Sex, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Sex)))) + .ForMember(x => x.DateofBirth, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.DateofBirth)))) + .ForMember(x => x.CountyofBirth, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.CountyofBirth)))) + .ForMember(x => x.County, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.County)))) + .ForMember(x => x.SubCounty, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.SubCounty)))) + .ForMember(x => x.Location, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Location)))) + .ForMember(x => x.LandMark, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.LandMark)))) + .ForMember(x => x.Ward, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Ward)))) + .ForMember(x => x.ClientType, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.ClientType)))) + .ForMember(x => x.ReferralPoint, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.ReferralPoint)))) + .ForMember(x => x.MaritalStatus, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.MaritalStatus)))) + .ForMember(x => x.Inschool, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Inschool)))) + .ForMember(x => x.PopulationType, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.PopulationType)))) + .ForMember(x => x.KeyPopulationType, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.KeyPopulationType)))) + .ForMember(x => x.Refferedfrom, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Refferedfrom)))) + .ForMember(x => x.TransferIn, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.TransferIn)))) + .ForMember(x => x.TransferInDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.TransferInDate)))) + .ForMember(x => x.TransferFromFacility, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.TransferFromFacility)))) + .ForMember(x => x.DatefirstinitiatedinPrepCare, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.DatefirstinitiatedinPrepCare)))) + .ForMember(x => x.DateStartedPrEPattransferringfacility, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.DateStartedPrEPattransferringfacility)))) + .ForMember(x => x.ClientPreviouslyonPrep, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.ClientPreviouslyonPrep)))) + .ForMember(x => x.PrevPrepReg, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.PrevPrepReg)))) + .ForMember(x => x.DateLastUsedPrev, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.DateLastUsedPrev)))) + .ForMember(x => x.Date_Created, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Created)))) + .ForMember(x => x.Date_Last_Modified, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Last_Modified)))); + + + CreateMap() + .ForMember(x => x.PatientPK, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.PatientPK)))) + .ForMember(x => x.SiteCode, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.SiteCode)))) + .ForMember(x => x.PrepNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.PrepNumber)))) + .ForMember(x => x.HtsNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.HtsNumber)))) + .ForMember(x => x.Emr, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.Emr)))) + .ForMember(x => x.Project, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.Project)))) + .ForMember(x => x.VisitDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepBehaviourRiskExtract.VisitDate)))) + .ForMember(x => x.VisitID, + o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPrepBehaviourRiskExtract.VisitID)))) + .ForMember(x => x.SexPartnerHIVStatus, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.SexPartnerHIVStatus)))) + .ForMember(x => x.IsHIVPositivePartnerCurrentonART, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.IsHIVPositivePartnerCurrentonART)))) + .ForMember(x => x.IsPartnerHighrisk, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.IsPartnerHighrisk)))) + .ForMember(x => x.PartnerARTRisk, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.PartnerARTRisk)))) + .ForMember(x => x.ClientAssessments, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.ClientAssessments)))) + .ForMember(x => x.ClientRisk, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.ClientRisk)))) + .ForMember(x => x.ClientWillingToTakePrep, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.ClientWillingToTakePrep)))) + .ForMember(x => x.PrEPDeclineReason, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.PrEPDeclineReason)))) + .ForMember(x => x.RiskReductionEducationOffered, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.RiskReductionEducationOffered)))) + .ForMember(x => x.ReferralToOtherPrevServices, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.ReferralToOtherPrevServices)))) + .ForMember(x => x.FirstEstablishPartnerStatus, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPrepBehaviourRiskExtract.FirstEstablishPartnerStatus)))) + .ForMember(x => x.PartnerEnrolledtoCCC, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPrepBehaviourRiskExtract.PartnerEnrolledtoCCC)))) + .ForMember(x => x.HIVPartnerCCCnumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.HIVPartnerCCCnumber)))) + .ForMember(x => x.HIVPartnerARTStartDate, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPrepBehaviourRiskExtract.HIVPartnerARTStartDate)))) + .ForMember(x => x.MonthsknownHIVSerodiscordant, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.MonthsknownHIVSerodiscordant)))) + .ForMember(x => x.SexWithoutCondom, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.SexWithoutCondom)))) + .ForMember(x => x.NumberofchildrenWithPartner, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.NumberofchildrenWithPartner)))) + // .ForMember(x => x.FacilityName, + // o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.FacilityName)))) + .ForMember(x => x.Date_Created, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Created)))) + .ForMember(x => x.Date_Last_Modified, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Last_Modified)))); + + + CreateMap() + .ForMember(x => x.PatientPK, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PatientPK)))) + .ForMember(x => x.SiteCode, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.SiteCode)))) + .ForMember(x => x.PrepNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PrepNumber)))) + .ForMember(x => x.HtsNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.HtsNumber)))) + .ForMember(x => x.EncounterId, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.EncounterId)))) + .ForMember(x => x.VisitID, + o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPrepVisitExtract.VisitID)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.Emr)))) + .ForMember(x => x.Project, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.Project)))) + .ForMember(x => x.VisitDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepVisitExtract.VisitDate)))) + .ForMember(x => x.BloodPressure, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.BloodPressure)))) + .ForMember(x => x.Temperature, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.Temperature)))) + .ForMember(x => x.Weight, + o => o.MapFrom(s => s.GetNullDecimalOrDefault(nameof(TempPrepVisitExtract.Weight)))) + .ForMember(x => x.Height, + o => o.MapFrom(s => s.GetNullDecimalOrDefault(nameof(TempPrepVisitExtract.Height)))) + .ForMember(x => x.BMI, o => o.MapFrom(s => s.GetNullDecimalOrDefault(nameof(TempPrepVisitExtract.BMI)))) + .ForMember(x => x.STIScreening, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.STIScreening)))) + .ForMember(x => x.STISymptoms, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.STISymptoms)))) + .ForMember(x => x.STITreated, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.STITreated)))) + .ForMember(x => x.Circumcised, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.Circumcised)))) + .ForMember(x => x.VMMCReferral, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.VMMCReferral)))) + .ForMember(x => x.LMP, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepVisitExtract.LMP)))) + .ForMember(x => x.MenopausalStatus, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.MenopausalStatus)))) + .ForMember(x => x.PregnantAtThisVisit, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PregnantAtThisVisit)))) + .ForMember(x => x.EDD, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepVisitExtract.EDD)))) + .ForMember(x => x.PlanningToGetPregnant, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PlanningToGetPregnant)))) + .ForMember(x => x.PregnancyPlanned, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PregnancyPlanned)))) + .ForMember(x => x.PregnancyEnded, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PregnancyEnded)))) + .ForMember(x => x.PregnancyEndDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepVisitExtract.PregnancyEndDate)))) + .ForMember(x => x.PregnancyOutcome, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PregnancyOutcome)))) + .ForMember(x => x.BirthDefects, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.BirthDefects)))) + .ForMember(x => x.Breastfeeding, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.Breastfeeding)))) + .ForMember(x => x.FamilyPlanningStatus, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.FamilyPlanningStatus)))) + .ForMember(x => x.FPMethods, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.FPMethods)))) + .ForMember(x => x.AdherenceDone, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.AdherenceDone)))) + .ForMember(x => x.AdherenceOutcome, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.AdherenceOutcome)))) + .ForMember(x => x.AdherenceReasons, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.AdherenceReasons)))) + .ForMember(x => x.SymptomsAcuteHIV, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.SymptomsAcuteHIV)))) + .ForMember(x => x.ContraindicationsPrep, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.ContraindicationsPrep)))) + .ForMember(x => x.PrepTreatmentPlan, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PrepTreatmentPlan)))) + .ForMember(x => x.PrepPrescribed, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PrepPrescribed)))) + .ForMember(x => x.RegimenPrescribed, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.RegimenPrescribed)))) + .ForMember(x => x.MonthsPrescribed, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.MonthsPrescribed)))) + .ForMember(x => x.CondomsIssued, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.CondomsIssued)))) + .ForMember(x => x.Tobegivennextappointment, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.Tobegivennextappointment)))) + .ForMember(x => x.Reasonfornotgivingnextappointment, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepVisitExtract.Reasonfornotgivingnextappointment)))) + .ForMember(x => x.HepatitisBPositiveResult, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.HepatitisBPositiveResult)))) + .ForMember(x => x.HepatitisCPositiveResult, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.HepatitisCPositiveResult)))) + .ForMember(x => x.VaccinationForHepBStarted, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.VaccinationForHepBStarted)))) + .ForMember(x => x.TreatedForHepB, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.TreatedForHepB)))) + .ForMember(x => x.VaccinationForHepCStarted, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.VaccinationForHepCStarted)))) + .ForMember(x => x.TreatedForHepC, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.TreatedForHepC)))) + .ForMember(x => x.NextAppointment, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepVisitExtract.NextAppointment)))) + .ForMember(x => x.ClinicalNotes, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.ClinicalNotes)))) + // .ForMember(x => x.FacilityName, + // o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.FacilityName)))) + .ForMember(x => x.Date_Created, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Created)))) + .ForMember(x => x.Date_Last_Modified, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Last_Modified)))); + + + CreateMap() + .ForMember(x => x.PatientPK, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.PatientPK)))) + .ForMember(x => x.SiteCode, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.SiteCode)))) + .ForMember(x => x.PrepNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.PrepNumber)))) + .ForMember(x => x.HtsNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.HtsNumber)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.Emr)))) + .ForMember(x => x.Project, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.Project)))) + .ForMember(x => x.VisitID, + o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPrepLabExtract.VisitID)))) + .ForMember(x => x.TestName, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.TestName)))) + .ForMember(x => x.TestResult, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.TestResult)))) + .ForMember(x => x.SampleDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepLabExtract.SampleDate)))) + .ForMember(x => x.TestResultDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepLabExtract.TestResultDate)))) + .ForMember(x => x.Reason, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.Reason)))) + // .ForMember(x => x.FacilityName, + // o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.FacilityName)))) + .ForMember(x => x.Date_Created, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Created)))) + .ForMember(x => x.Date_Last_Modified, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Last_Modified)))); + + + CreateMap() + .ForMember(x => x.PatientPK, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.PatientPK)))) + .ForMember(x => x.SiteCode, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.SiteCode)))) + .ForMember(x => x.PrepNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.PrepNumber)))) + .ForMember(x => x.HtsNumber, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.HtsNumber)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.Emr)))) + .ForMember(x => x.Project, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.Project)))) + .ForMember(x => x.VisitID, o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPrepPharmacyExtract.VisitID)))) + .ForMember(x => x.RegimenPrescribed, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.RegimenPrescribed)))) + .ForMember(x => x.DispenseDate, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepPharmacyExtract.DispenseDate)))) + .ForMember(x => x.Duration, o => o.MapFrom(s => s.GetNullDecimalOrDefault(nameof(TempPrepPharmacyExtract.Duration)))) + // .ForMember(x => x.FacilityName, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.FacilityName)))) .ForMember(x => x.Date_Created, + // o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Created)))) + .ForMember(x => x.Date_Last_Modified, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Last_Modified)))); + + + CreateMap() + .ForMember(x => x.PatientPK, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.PatientPK)))) + .ForMember(x => x.SiteCode, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.SiteCode)))) + .ForMember(x => x.PrepNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.PrepNumber)))) + .ForMember(x => x.Emr, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.Emr)))) + .ForMember(x => x.Project, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.Project)))) + .ForMember(x => x.AdverseEvent, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEvent)))) + .ForMember(x => x.AdverseEventStartDate, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventStartDate)))) + .ForMember(x => x.AdverseEventEndDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventEndDate)))) + .ForMember(x => x.Severity, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.Severity)))) + .ForMember(x => x.VisitDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepAdverseEventExtract.VisitDate)))) + .ForMember(x => x.AdverseEventActionTaken, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventActionTaken)))) + .ForMember(x => x.AdverseEventClinicalOutcome, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventClinicalOutcome)))) + .ForMember(x => x.AdverseEventIsPregnant, + o => o.MapFrom( + s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventIsPregnant)))) + .ForMember(x => x.AdverseEventCause, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventCause)))) + .ForMember(x => x.AdverseEventRegimen, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventRegimen)))) + // .ForMember(x => x.FacilityName, + // o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.FacilityName)))) + .ForMember(x => x.Date_Created, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Created)))) + .ForMember(x => x.Date_Last_Modified, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Last_Modified)))); + + + CreateMap() + .ForMember(x => x.PatientPK, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.PatientPK)))) + .ForMember(x => x.SiteCode, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.SiteCode)))) + .ForMember(x => x.PrepNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.PrepNumber)))) + .ForMember(x => x.Emr, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.Emr)))) + .ForMember(x => x.Project, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.Project)))) + .ForMember(x => x.HtsNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.HtsNumber)))) + .ForMember(x => x.ExitDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepCareTerminationExtract.ExitDate)))) + .ForMember(x => x.ExitReason, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.ExitReason)))) + .ForMember(x => x.DateOfLastPrepDose, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPrepCareTerminationExtract.DateOfLastPrepDose)))) + // .ForMember(x => x.FacilityName, + // o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.FacilityName)))) + .ForMember(x => x.Date_Created, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Created)))) + .ForMember(x => x.Date_Last_Modified, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.Date_Last_Modified)))); + + + CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Profiles/Prep/PrepExtractProfile.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/Prep/PrepExtractProfile.cs new file mode 100644 index 00000000..bc2ecacc --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Profiles/Prep/PrepExtractProfile.cs @@ -0,0 +1,377 @@ +using System.Data; +using AutoMapper; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Utility; + +namespace Dwapi.ExtractsManagement.Core.Profiles.Prep +{ + public class PrepExtractProfile : Profile + { + public PrepExtractProfile() + { + CreateMap() + .ForMember(x => x.PatientPK, + o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPatientPrepExtract.PatientPK)))) + .ForMember(x => x.SiteCode, + o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPatientPrepExtract.SiteCode)))) + // .ForMember(x => x.FacilityId, + // o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPatientPrepExtract.FacilityId)))) + .ForMember(x => x.Project, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Project)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Emr)))) + .ForMember(x => x.FacilityName, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.FacilityName)))) + .ForMember(x => x.PrepNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.PrepNumber)))) + .ForMember(x => x.HtsNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.HtsNumber)))) + .ForMember(x => x.PrepEnrollmentDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.PrepEnrollmentDate)))) + .ForMember(x => x.Sex, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Sex)))) + .ForMember(x => x.DateofBirth, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.DateofBirth)))) + .ForMember(x => x.CountyofBirth, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.CountyofBirth)))) + .ForMember(x => x.County, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.County)))) + .ForMember(x => x.SubCounty, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.SubCounty)))) + .ForMember(x => x.Location, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Location)))) + .ForMember(x => x.LandMark, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.LandMark)))) + .ForMember(x => x.Ward, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Ward)))) + .ForMember(x => x.ClientType, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.ClientType)))) + .ForMember(x => x.ReferralPoint, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.ReferralPoint)))) + .ForMember(x => x.MaritalStatus, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.MaritalStatus)))) + .ForMember(x => x.Inschool, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Inschool)))) + .ForMember(x => x.PopulationType, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.PopulationType)))) + .ForMember(x => x.KeyPopulationType, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.KeyPopulationType)))) + .ForMember(x => x.Refferedfrom, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.Refferedfrom)))) + .ForMember(x => x.TransferIn, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.TransferIn)))) + .ForMember(x => x.TransferInDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.TransferInDate)))) + .ForMember(x => x.TransferFromFacility, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.TransferFromFacility)))) + .ForMember(x => x.DatefirstinitiatedinPrepCare, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.DatefirstinitiatedinPrepCare)))) + .ForMember(x => x.DateStartedPrEPattransferringfacility, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.DateStartedPrEPattransferringfacility)))) + .ForMember(x => x.ClientPreviouslyonPrep, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.ClientPreviouslyonPrep)))) + .ForMember(x => x.PrevPrepReg, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPatientPrepExtract.PrevPrepReg)))) + .ForMember(x => x.DateLastUsedPrev, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.DateLastUsedPrev)))) + .ForMember(x => x.NUPI, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientPrepExtract.NUPI)))); + + + CreateMap() + .ForMember(x => x.PatientPK, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.PatientPK)))) + .ForMember(x => x.SiteCode, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.SiteCode)))) + .ForMember(x => x.PrepNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.PrepNumber)))) + .ForMember(x => x.HtsNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.HtsNumber)))) + .ForMember(x => x.Emr, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.Emr)))) + .ForMember(x => x.Project, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.Project)))) + .ForMember(x => x.VisitDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepBehaviourRiskExtract.VisitDate)))) + .ForMember(x => x.VisitID, + o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPrepBehaviourRiskExtract.VisitID)))) + .ForMember(x => x.SexPartnerHIVStatus, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.SexPartnerHIVStatus)))) + .ForMember(x => x.IsHIVPositivePartnerCurrentonART, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.IsHIVPositivePartnerCurrentonART)))) + .ForMember(x => x.IsPartnerHighrisk, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.IsPartnerHighrisk)))) + .ForMember(x => x.PartnerARTRisk, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.PartnerARTRisk)))) + .ForMember(x => x.ClientAssessments, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.ClientAssessments)))) + .ForMember(x => x.ClientRisk, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.ClientRisk)))) + .ForMember(x => x.ClientWillingToTakePrep, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.ClientWillingToTakePrep)))) + .ForMember(x => x.PrEPDeclineReason, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.PrEPDeclineReason)))) + .ForMember(x => x.RiskReductionEducationOffered, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.RiskReductionEducationOffered)))) + .ForMember(x => x.ReferralToOtherPrevServices, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.ReferralToOtherPrevServices)))) + .ForMember(x => x.FirstEstablishPartnerStatus, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPrepBehaviourRiskExtract.FirstEstablishPartnerStatus)))) + .ForMember(x => x.PartnerEnrolledtoCCC, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPrepBehaviourRiskExtract.PartnerEnrolledtoCCC)))) + .ForMember(x => x.HIVPartnerCCCnumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.HIVPartnerCCCnumber)))) + .ForMember(x => x.HIVPartnerARTStartDate, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPrepBehaviourRiskExtract.HIVPartnerARTStartDate)))) + .ForMember(x => x.MonthsknownHIVSerodiscordant, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.MonthsknownHIVSerodiscordant)))) + .ForMember(x => x.SexWithoutCondom, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.SexWithoutCondom)))) + .ForMember(x => x.NumberofchildrenWithPartner, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.NumberofchildrenWithPartner)))); + //.ForMember(x => x.FacilityName, + // o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepBehaviourRiskExtract.FacilityName)))); + + CreateMap() + .ForMember(x => x.PatientPK, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PatientPK)))) + .ForMember(x => x.SiteCode, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.SiteCode)))) + .ForMember(x => x.PrepNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PrepNumber)))) + .ForMember(x => x.HtsNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.HtsNumber)))) + .ForMember(x => x.EncounterId, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.EncounterId)))) + .ForMember(x => x.VisitID, + o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPrepVisitExtract.VisitID)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.Emr)))) + .ForMember(x => x.Project, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.Project)))) + .ForMember(x => x.VisitDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepVisitExtract.VisitDate)))) + .ForMember(x => x.BloodPressure, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.BloodPressure)))) + .ForMember(x => x.Temperature, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.Temperature)))) + .ForMember(x => x.Weight, + o => o.MapFrom(s => s.GetNullDecimalOrDefault(nameof(TempPrepVisitExtract.Weight)))) + .ForMember(x => x.Height, + o => o.MapFrom(s => s.GetNullDecimalOrDefault(nameof(TempPrepVisitExtract.Height)))) + .ForMember(x => x.BMI, o => o.MapFrom(s => s.GetNullDecimalOrDefault(nameof(TempPrepVisitExtract.BMI)))) + .ForMember(x => x.STIScreening, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.STIScreening)))) + .ForMember(x => x.STISymptoms, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.STISymptoms)))) + .ForMember(x => x.STITreated, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.STITreated)))) + .ForMember(x => x.Circumcised, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.Circumcised)))) + .ForMember(x => x.VMMCReferral, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.VMMCReferral)))) + .ForMember(x => x.LMP, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepVisitExtract.LMP)))) + .ForMember(x => x.MenopausalStatus, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.MenopausalStatus)))) + .ForMember(x => x.PregnantAtThisVisit, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PregnantAtThisVisit)))) + .ForMember(x => x.EDD, o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepVisitExtract.EDD)))) + .ForMember(x => x.PlanningToGetPregnant, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PlanningToGetPregnant)))) + .ForMember(x => x.PregnancyPlanned, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PregnancyPlanned)))) + .ForMember(x => x.PregnancyEnded, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PregnancyEnded)))) + .ForMember(x => x.PregnancyEndDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepVisitExtract.PregnancyEndDate)))) + .ForMember(x => x.PregnancyOutcome, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PregnancyOutcome)))) + .ForMember(x => x.BirthDefects, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.BirthDefects)))) + .ForMember(x => x.Breastfeeding, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.Breastfeeding)))) + .ForMember(x => x.FamilyPlanningStatus, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.FamilyPlanningStatus)))) + .ForMember(x => x.FPMethods, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.FPMethods)))) + .ForMember(x => x.AdherenceDone, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.AdherenceDone)))) + .ForMember(x => x.AdherenceOutcome, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.AdherenceOutcome)))) + .ForMember(x => x.AdherenceReasons, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.AdherenceReasons)))) + .ForMember(x => x.SymptomsAcuteHIV, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.SymptomsAcuteHIV)))) + .ForMember(x => x.ContraindicationsPrep, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.ContraindicationsPrep)))) + .ForMember(x => x.PrepTreatmentPlan, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PrepTreatmentPlan)))) + .ForMember(x => x.PrepPrescribed, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.PrepPrescribed)))) + .ForMember(x => x.RegimenPrescribed, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.RegimenPrescribed)))) + .ForMember(x => x.MonthsPrescribed, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.MonthsPrescribed)))) + .ForMember(x => x.CondomsIssued, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.CondomsIssued)))) + .ForMember(x => x.Tobegivennextappointment, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.Tobegivennextappointment)))) + .ForMember(x => x.Reasonfornotgivingnextappointment, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepVisitExtract.Reasonfornotgivingnextappointment)))) + .ForMember(x => x.HepatitisBPositiveResult, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.HepatitisBPositiveResult)))) + .ForMember(x => x.HepatitisCPositiveResult, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.HepatitisCPositiveResult)))) + .ForMember(x => x.VaccinationForHepBStarted, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.VaccinationForHepBStarted)))) + .ForMember(x => x.TreatedForHepB, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.TreatedForHepB)))) + .ForMember(x => x.VaccinationForHepCStarted, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.VaccinationForHepCStarted)))) + .ForMember(x => x.TreatedForHepC, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.TreatedForHepC)))) + .ForMember(x => x.NextAppointment, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepVisitExtract.NextAppointment)))) + .ForMember(x => x.ClinicalNotes, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.ClinicalNotes)))); + //.ForMember(x => x.FacilityName, + // o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepVisitExtract.FacilityName)))); + + + CreateMap() + .ForMember(x => x.PatientPK, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.PatientPK)))) + .ForMember(x => x.SiteCode, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.SiteCode)))) + .ForMember(x => x.PrepNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.PrepNumber)))) + .ForMember(x => x.HtsNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.HtsNumber)))) + .ForMember(x => x.Emr, o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.Emr)))) + .ForMember(x => x.Project, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.Project)))) + .ForMember(x => x.VisitID, + o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPrepLabExtract.VisitID)))) + .ForMember(x => x.TestName, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.TestName)))) + .ForMember(x => x.TestResult, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.TestResult)))) + .ForMember(x => x.SampleDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepLabExtract.SampleDate)))) + .ForMember(x => x.TestResultDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepLabExtract.TestResultDate)))) + .ForMember(x => x.Reason, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.Reason)))); + // .ForMember(x => x.FacilityName, + // o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepLabExtract.FacilityName)))); + + + CreateMap() + .ForMember(x => x.PatientPK, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.PatientPK)))) + .ForMember(x => x.SiteCode, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.SiteCode)))) + .ForMember(x => x.PrepNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.PrepNumber)))) + .ForMember(x => x.HtsNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.HtsNumber)))) + .ForMember(x => x.Emr, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.Emr)))) + .ForMember(x => x.Project, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.Project)))) + .ForMember(x => x.VisitID, + o => o.MapFrom(s => s.GetNullIntOrDefault(nameof(TempPrepPharmacyExtract.VisitID)))) + .ForMember(x => x.RegimenPrescribed, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.RegimenPrescribed)))) + .ForMember(x => x.DispenseDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepPharmacyExtract.DispenseDate)))) + .ForMember(x => x.Duration, + o => o.MapFrom(s => s.GetNullDecimalOrDefault(nameof(TempPrepPharmacyExtract.Duration)))); + // .ForMember(x => x.FacilityName, + // o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepPharmacyExtract.FacilityName)))); + + + + CreateMap() + .ForMember(x => x.PatientPK, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.PatientPK)))) + .ForMember(x => x.SiteCode, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.SiteCode)))) + .ForMember(x => x.PrepNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.PrepNumber)))) + .ForMember(x => x.Emr, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.Emr)))) + .ForMember(x => x.Project, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.Project)))) + .ForMember(x => x.AdverseEvent, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEvent)))) + .ForMember(x => x.AdverseEventStartDate, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventStartDate)))) + .ForMember(x => x.AdverseEventEndDate, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventEndDate)))) + .ForMember(x => x.Severity, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.Severity)))) + .ForMember(x => x.VisitDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepAdverseEventExtract.VisitDate)))) + .ForMember(x => x.AdverseEventActionTaken, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventActionTaken)))) + .ForMember(x => x.AdverseEventClinicalOutcome, + o => o.MapFrom(s => + s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventClinicalOutcome)))) + .ForMember(x => x.AdverseEventIsPregnant, + o => o.MapFrom( + s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventIsPregnant)))) + .ForMember(x => x.AdverseEventCause, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventCause)))) + .ForMember(x => x.AdverseEventRegimen, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.AdverseEventRegimen)))); + // .ForMember(x => x.FacilityName, + // o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepAdverseEventExtract.FacilityName)))); + + + CreateMap() + .ForMember(x => x.PatientPK, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.PatientPK)))) + .ForMember(x => x.SiteCode, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.SiteCode)))) + .ForMember(x => x.PrepNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.PrepNumber)))) + .ForMember(x => x.Emr, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.Emr)))) + .ForMember(x => x.Project, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.Project)))) + .ForMember(x => x.HtsNumber, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.HtsNumber)))) + .ForMember(x => x.ExitDate, + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPrepCareTerminationExtract.ExitDate)))) + .ForMember(x => x.ExitReason, + o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.ExitReason)))) + .ForMember(x => x.DateOfLastPrepDose, + o => o.MapFrom(s => + s.GetNullDateOrDefault(nameof(TempPrepCareTerminationExtract.DateOfLastPrepDose)))); + // .ForMember(x => x.FacilityName, + // o => o.MapFrom(s => s.GetStringOrDefault(nameof(TempPrepCareTerminationExtract.FacilityName)))); + + CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + CreateMap(); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Core/Services/DwhExtractSentServcie.cs b/src/Dwapi.ExtractsManagement.Core/Services/DwhExtractSentServcie.cs index cf3adb4a..7ff52118 100644 --- a/src/Dwapi.ExtractsManagement.Core/Services/DwhExtractSentServcie.cs +++ b/src/Dwapi.ExtractsManagement.Core/Services/DwhExtractSentServcie.cs @@ -29,8 +29,10 @@ public class DwhExtractSentServcie : IDwhExtractSentServcie private readonly IOvcExtractRepository _ovcExtractRepository; private readonly IOtzExtractRepository _otzExtractRepository; + private readonly ICovidExtractRepository _covidExtractRepository; + private readonly IDefaulterTracingExtractRepository _defaulterTracingExtractRepository; - public DwhExtractSentServcie(IPatientExtractRepository patientExtractRepository, IPatientArtExtractRepository artExtractRepository, IPatientBaselinesExtractRepository baselinesExtractRepository, IPatientLaboratoryExtractRepository laboratoryExtractRepository, IPatientPharmacyExtractRepository pharmacyExtractRepository, IPatientStatusExtractRepository statusExtractRepository, IPatientVisitExtractRepository visitExtractRepository, IPatientAdverseEventExtractRepository adverseEventExtractRepository, IAllergiesChronicIllnessExtractRepository allergiesChronicIllnessExtractRepository, IIptExtractRepository iptExtractRepository, IDepressionScreeningExtractRepository depressionScreeningExtractRepository, IContactListingExtractRepository contactListingExtractRepository, IGbvScreeningExtractRepository gbvScreeningExtractRepository, IEnhancedAdherenceCounsellingExtractRepository enhancedAdherenceCounsellingExtractRepository, IDrugAlcoholScreeningExtractRepository drugAlcoholScreeningExtractRepository, IOvcExtractRepository ovcExtractRepository, IOtzExtractRepository otzExtractRepository) + public DwhExtractSentServcie(IPatientExtractRepository patientExtractRepository, IPatientArtExtractRepository artExtractRepository, IPatientBaselinesExtractRepository baselinesExtractRepository, IPatientLaboratoryExtractRepository laboratoryExtractRepository, IPatientPharmacyExtractRepository pharmacyExtractRepository, IPatientStatusExtractRepository statusExtractRepository, IPatientVisitExtractRepository visitExtractRepository, IPatientAdverseEventExtractRepository adverseEventExtractRepository, IAllergiesChronicIllnessExtractRepository allergiesChronicIllnessExtractRepository, IIptExtractRepository iptExtractRepository, IDepressionScreeningExtractRepository depressionScreeningExtractRepository, IContactListingExtractRepository contactListingExtractRepository, IGbvScreeningExtractRepository gbvScreeningExtractRepository, IEnhancedAdherenceCounsellingExtractRepository enhancedAdherenceCounsellingExtractRepository, IDrugAlcoholScreeningExtractRepository drugAlcoholScreeningExtractRepository, IOvcExtractRepository ovcExtractRepository, IOtzExtractRepository otzExtractRepository, ICovidExtractRepository covidExtractRepository, IDefaulterTracingExtractRepository defaulterTracingExtractRepository) { _patientExtractRepository = patientExtractRepository; _artExtractRepository = artExtractRepository; @@ -50,6 +52,9 @@ public DwhExtractSentServcie(IPatientExtractRepository patientExtractRepository, _drugAlcoholScreeningExtractRepository = drugAlcoholScreeningExtractRepository; _ovcExtractRepository = ovcExtractRepository; _otzExtractRepository = otzExtractRepository; + + _covidExtractRepository = covidExtractRepository; + _defaulterTracingExtractRepository = defaulterTracingExtractRepository; } public void UpdateSendStatus(ExtractType extractType, List sentItems) @@ -111,6 +116,12 @@ public void UpdateSendStatus(ExtractType extractType, List sentItems) case ExtractType.Ovc: _ovcExtractRepository.UpdateSendStatus(sentItems); break; + case ExtractType.Covid: + _covidExtractRepository.UpdateSendStatus(sentItems); + break; + case ExtractType.DefaulterTracing: + _defaulterTracingExtractRepository.UpdateSendStatus(sentItems); + break; } } catch (Exception e) diff --git a/src/Dwapi.ExtractsManagement.Core/Services/PrepExtractSentServcie.cs b/src/Dwapi.ExtractsManagement.Core/Services/PrepExtractSentServcie.cs new file mode 100644 index 00000000..94f82685 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Core/Services/PrepExtractSentServcie.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Services; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Model; +using Serilog; + +namespace Dwapi.ExtractsManagement.Core.Services +{ + public class PrepExtractSentServcie : IPrepExtractSentServcie + { + private readonly IPatientPrepExtractRepository _patientPrepExtractRepository; + private readonly IPrepAdverseEventExtractRepository _prepAdverseEventExtractRepository; + private readonly IPrepBehaviourRiskExtractRepository _prepBehaviourRiskExtractRepository; + private readonly IPrepCareTerminationExtractRepository _prepCareTerminationExtractRepository; + private readonly IPrepLabExtractRepository _prepLabExtractRepository; + private readonly IPrepPharmacyExtractRepository _prepPharmacyExtractRepository; + private readonly IPrepVisitExtractRepository _prepVisitExtractRepository; + + public PrepExtractSentServcie(IPatientPrepExtractRepository patientPrepExtractRepository, IPrepAdverseEventExtractRepository prepAdverseEventExtractRepository, IPrepBehaviourRiskExtractRepository prepBehaviourRiskExtractRepository, IPrepCareTerminationExtractRepository prepCareTerminationExtractRepository, IPrepLabExtractRepository prepLabExtractRepository, IPrepPharmacyExtractRepository prepPharmacyExtractRepository, IPrepVisitExtractRepository prepVisitExtractRepository) + { + _patientPrepExtractRepository = patientPrepExtractRepository; + _prepAdverseEventExtractRepository = prepAdverseEventExtractRepository; + _prepBehaviourRiskExtractRepository = prepBehaviourRiskExtractRepository; + _prepCareTerminationExtractRepository = prepCareTerminationExtractRepository; + _prepLabExtractRepository = prepLabExtractRepository; + _prepPharmacyExtractRepository = prepPharmacyExtractRepository; + _prepVisitExtractRepository = prepVisitExtractRepository; + } + + public void UpdateSendStatus(ExtractType extractType, List sentItems) + { + try + { + switch (extractType) + { + case ExtractType.Patient: + _patientPrepExtractRepository.UpdateSendStatus(sentItems); + break; + case ExtractType.PrepAdverseEvent: + _prepAdverseEventExtractRepository.UpdateSendStatus(sentItems); + break; + case ExtractType.PrepBehaviourRisk: + _prepBehaviourRiskExtractRepository.UpdateSendStatus(sentItems); + break; + case ExtractType.PrepCareTermination: + _prepCareTerminationExtractRepository.UpdateSendStatus(sentItems); + break; + case ExtractType.PrepPharmacy: + _prepPharmacyExtractRepository.UpdateSendStatus(sentItems); + break; + case ExtractType.PrepLab: + _prepLabExtractRepository.UpdateSendStatus(sentItems); + break; + case ExtractType.PrepVisit: + _prepVisitExtractRepository.UpdateSendStatus(sentItems); + break; + } + } + catch (Exception e) + { + Log.Error(e, "Sent status"); + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/ExtractsContext.cs b/src/Dwapi.ExtractsManagement.Infrastructure/ExtractsContext.cs index 7393ec88..490cba89 100644 --- a/src/Dwapi.ExtractsManagement.Infrastructure/ExtractsContext.cs +++ b/src/Dwapi.ExtractsManagement.Infrastructure/ExtractsContext.cs @@ -1,20 +1,25 @@ -using Dwapi.ExtractsManagement.Core.Model; +using Dwapi.Contracts.Crs; +using Dwapi.ExtractsManagement.Core.Model; using Dwapi.ExtractsManagement.Core.Model.Destination; using Dwapi.ExtractsManagement.Core.Model.Destination.Cbs; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; using Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts; using Dwapi.ExtractsManagement.Core.Model.Destination.Hts; using Dwapi.ExtractsManagement.Core.Model.Destination.Mgs; using Dwapi.ExtractsManagement.Core.Model.Destination.Mnch; using Dwapi.ExtractsManagement.Core.Model.Destination.Mts; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; using Dwapi.ExtractsManagement.Core.Model.Diff; using Dwapi.ExtractsManagement.Core.Model.Source.Cbs; +using Dwapi.ExtractsManagement.Core.Model.Source.Crs; using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; using Dwapi.ExtractsManagement.Core.Model.Source.Hts; using Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts; using Dwapi.ExtractsManagement.Core.Model.Source.Mgs; using Dwapi.ExtractsManagement.Core.Model.Source.Mnch; using Dwapi.ExtractsManagement.Core.Model.Source.Mts; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; using Dwapi.SharedKernel.Infrastructure; using LiveSeeder.Core; using Microsoft.EntityFrameworkCore; @@ -91,6 +96,7 @@ public DbSet TempPatientAdverseEvent public DbSet HtsTestKitsExtracts { get; set; } public DbSet HtsClientsLinkageExtracts { get; set; } public DbSet HtsPartnerNotificationServicesExtracts { get; set; } + public DbSet HtsEligibilityExtracts { get; set; } public DbSet TempHtsClientsExtracts { get; set; } public DbSet TempHtsClientTestsExtracts { get; set; } @@ -99,6 +105,8 @@ public DbSet TempPatientAdverseEvent public DbSet TempHtsTestKitsExtracts { get; set; } public DbSet TempHtsClientsLinkageExtracts { get; set; } public DbSet TempHtsPartnerNotificationServicesExtracts { get; set; } + public DbSet TempHtsEligibilityExtracts { get; set; } + @@ -110,6 +118,7 @@ public DbSet TempPatientAdverseEvent public DbSet TempHtsTestKitsExtractsErrors { get; set; } public DbSet TempHtsClientsLinkageExtractsErrors { get; set; } public DbSet TempHtsPartnerNotificationServicesExtractsErrors { get; set; } + public DbSet TempHtsEligibilityExtractErrors { get; set; } public DbSet TempHtsClientExtractErrorSummaries { get; set; } public DbSet TempHtsClientPartnerExtractErrorSummaries { get; set; } @@ -122,6 +131,7 @@ public DbSet TempPatientAdverseEvent public DbSet TempHtsTestKitsExtractsErrorSummaries { get; set; } public DbSet TempHtsClientsLinkageExtractsErrorSummaries { get; set; } public DbSet TempHtsPartnerNotificationServicesExtractsErrorSummaries { get; set; } + public DbSet TempHtsEligibilityExtractErrorSummaries { get; set; } public DbSet TempMetricMigrationExtracts { get; set; } public DbSet MetricMigrationExtracts { get; set; } @@ -144,6 +154,10 @@ public DbSet TempPatientAdverseEvent public DbSet TempOvcExtracts { get; set; } public DbSet TempOtzExtracts { get; set; } + + public DbSet TempCovidExtracts { get; set; } + public DbSet TempDefaulterTracingExtracts { get; set; } + public DbSet AllergiesChronicIllnessExtracts { get; set; } public DbSet IptExtracts { get; set; } public DbSet DepressionScreeningExtracts { get; set; } @@ -154,6 +168,9 @@ public DbSet TempPatientAdverseEvent public DbSet OvcExtracts { get; set; } public DbSet OtzExtracts { get; set; } + public DbSet CovidExtracts { get; set; } + public DbSet DefaulterTracingExtracts { get; set; } + public DbSet TempAllergiesChronicIllnessExtractError { get; set; } public DbSet TempAllergiesChronicIllnessExtractErrorSummary { get; set; } @@ -174,6 +191,11 @@ public DbSet TempPatientAdverseEvent public DbSet TempOtzExtractError { get; set; } public DbSet TempOtzExtractErrorSummary { get; set; } + public DbSet TempCovidExtractError { get; set; } + public DbSet TempCovidExtractErrorSummary { get; set; } + public DbSet TempDefaulterTracingExtractError { get; set; } + public DbSet TempDefaulterTracingExtractErrorSummary { get; set; } + #region Mnch public virtual DbSet TempPatientMnchExtracts { get; set; } public virtual DbSet TempMnchEnrolmentExtracts { get; set; } @@ -199,33 +221,74 @@ public DbSet TempPatientAdverseEvent public virtual DbSet HeiExtracts { get; set; } public virtual DbSet MnchLabExtracts { get; set; } - // public virtual DbSet TempPatientMnchExtractError { get; set; } - // public virtual DbSet TempMnchEnrolmentExtractError { get; set; } - // public virtual DbSet TempMnchArtExtractError { get; set; } - // public virtual DbSet TempAncVisitExtractError { get; set; } - // public virtual DbSet TempMatVisitExtractError { get; set; } - // public virtual DbSet TempPncVisitExtractError { get; set; } - // public virtual DbSet TempMotherBabyPairExtractError { get; set; } - // public virtual DbSet TempCwcEnrolmentExtractError { get; set; } - // public virtual DbSet TempCwcVisitExtractError { get; set; } - // public virtual DbSet TempHeiExtractError { get; set; } - // public virtual DbSet TempMnchLabExtractError { get; set; } - // - // public virtual DbSet TempPatientMnchExtractErrorSummary { get; set; } - // public virtual DbSet TempMnchEnrolmentExtractErrorSummary { get; set; } - // public virtual DbSet TempMnchArtExtractErrorSummary { get; set; } - // public virtual DbSet TempAncVisitExtractErrorSummary { get; set; } - // public virtual DbSet TempMatVisitExtractErrorSummary { get; set; } - // public virtual DbSet TempPncVisitExtractErrorSummary { get; set; } - // public virtual DbSet TempMotherBabyPairExtractErrorSummary { get; set; } - // public virtual DbSet TempCwcEnrolmentExtractErrorSummary { get; set; } - // public virtual DbSet TempCwcVisitExtractErrorSummary { get; set; } - // public virtual DbSet TempHeiExtractErrorSummary { get; set; } - // public virtual DbSet TempMnchLabExtractErrorSummary { get; set; } + public virtual DbSet TempPatientMnchExtractError { get; set; } + public virtual DbSet TempMnchEnrolmentExtractError { get; set; } + public virtual DbSet TempMnchArtExtractError { get; set; } + public virtual DbSet TempAncVisitExtractError { get; set; } + public virtual DbSet TempMatVisitExtractError { get; set; } + public virtual DbSet TempPncVisitExtractError { get; set; } + public virtual DbSet TempMotherBabyPairExtractError { get; set; } + public virtual DbSet TempCwcEnrolmentExtractError { get; set; } + public virtual DbSet TempCwcVisitExtractError { get; set; } + public virtual DbSet TempHeiExtractError { get; set; } + public virtual DbSet TempMnchLabExtractError { get; set; } + + public virtual DbSet TempPatientMnchExtractErrorSummary { get; set; } + public virtual DbSet TempMnchEnrolmentExtractErrorSummary { get; set; } + public virtual DbSet TempMnchArtExtractErrorSummary { get; set; } + public virtual DbSet TempAncVisitExtractErrorSummary { get; set; } + public virtual DbSet TempMatVisitExtractErrorSummary { get; set; } + public virtual DbSet TempPncVisitExtractErrorSummary { get; set; } + public virtual DbSet TempMotherBabyPairExtractErrorSummary { get; set; } + public virtual DbSet TempCwcEnrolmentExtractErrorSummary { get; set; } + public virtual DbSet TempCwcVisitExtractErrorSummary { get; set; } + public virtual DbSet TempHeiExtractErrorSummary { get; set; } + public virtual DbSet TempMnchLabExtractErrorSummary { get; set; } #endregion + #region Prep + public DbSet TempPatientPrepExtracts { get; set; } + public DbSet TempPrepAdverseEventExtracts { get; set; } + public DbSet TempPrepBehaviourRiskExtracts { get; set; } + public DbSet TempPrepCareTerminationExtracts { get; set; } + public DbSet TempPrepLabExtracts { get; set; } + public DbSet TempPrepPharmacyExtracts { get; set; } + public DbSet TempPrepVisitExtracts { get; set; } + + public DbSet PatientPrepExtracts { get; set; } + public DbSet PrepAdverseEventExtracts { get; set; } + public DbSet PrepBehaviourRiskExtracts { get; set; } + public DbSet PrepCareTerminationExtracts { get; set; } + public DbSet PrepLabExtracts { get; set; } + public DbSet PrepPharmacyExtracts { get; set; } + public DbSet PrepVisitExtracts { get; set; } + + public DbSet TempPatientPrepExtractError { get; set; } + public DbSet TempPrepAdverseEventExtractError { get; set; } + public DbSet TempPrepBehaviourRiskExtractError { get; set; } + public DbSet TempPrepCareTerminationExtractError { get; set; } + public DbSet TempPrepLabExtractError { get; set; } + public DbSet TempPrepPharmacyExtractError { get; set; } + public DbSet TempPrepVisitExtractError { get; set; } + + public DbSet TempPatientPrepExtractErrorSummary { get; set; } + public DbSet TempPrepAdverseEventExtractErrorSummary { get; set; } + public DbSet TempPrepBehaviourRiskExtractErrorSummary { get; set; } + public DbSet TempPrepCareTerminationExtractErrorSummary { get; set; } + public DbSet TempPrepLabExtractErrorSummary { get; set; } + public DbSet TempPrepPharmacyExtractErrorSummary { get; set; } + public DbSet TempPrepVisitExtractErrorSummary { get; set; } + #endregion + + public DbSet ClientRegistryExtracts{ get; set; } + public DbSet TempClientRegistryExtracts { get; set; } + + public DbSet TempClientRegistryExtractError { get; set; } + public DbSet TempClientRegistryExtractErrorSummary { get; set; } + + public ExtractsContext(DbContextOptions options) : base(options) { @@ -318,6 +381,12 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) .WithOne() .IsRequired() .HasForeignKey(f => new { f.SiteCode, f.PatientPk }); + + modelBuilder.Entity() + .HasMany(c => c.HtsEligibilityExtracts) + .WithOne() + .IsRequired() + .HasForeignKey(f => new { f.SiteCode, f.PatientPk }); // modelBuilder.Entity() // .HasKey(f => new {f.SiteCode, f.PatientPk,f.EncounterId}); @@ -369,6 +438,17 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) .IsRequired() .HasForeignKey(f => new {f.SiteCode, f.PatientPK}); + modelBuilder.Entity() + .HasMany(c => c.CovidExtracts) + .WithOne() + .IsRequired() + .HasForeignKey(f => new {f.SiteCode, f.PatientPK}); + modelBuilder.Entity() + .HasMany(c => c.DefaulterTracingExtracts) + .WithOne() + .IsRequired() + .HasForeignKey(f => new {f.SiteCode, f.PatientPK}); + modelBuilder.Entity() .HasKey(f => new {f.SiteCode, f.PatientPK}); @@ -434,6 +514,47 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) .IsRequired() .HasForeignKey(f => new {f.SiteCode, f.PatientPK}); + + + modelBuilder.Entity() + .HasKey(f => new {f.SiteCode, f.PatientPK}); + + modelBuilder.Entity() + .HasMany(c => c.PrepAdverseEventExtracts) + .WithOne() + .IsRequired() + .HasForeignKey(f => new {f.SiteCode, f.PatientPK}); + + modelBuilder.Entity() + .HasMany(c => c.PrepBehaviourRiskExtracts) + .WithOne() + .IsRequired() + .HasForeignKey(f => new {f.SiteCode, f.PatientPK}); + + modelBuilder.Entity() + .HasMany(c => c.PrepCareTerminationExtracts) + .WithOne() + .IsRequired() + .HasForeignKey(f => new {f.SiteCode, f.PatientPK}); + + modelBuilder.Entity() + .HasMany(c => c.PrepLabExtracts) + .WithOne() + .IsRequired() + .HasForeignKey(f => new {f.SiteCode, f.PatientPK}); + + modelBuilder.Entity() + .HasMany(c => c.PrepPharmacyExtracts) + .WithOne() + .IsRequired() + .HasForeignKey(f => new {f.SiteCode, f.PatientPK}); + + modelBuilder.Entity() + .HasMany(c => c.PrepVisitExtracts) + .WithOne() + .IsRequired() + .HasForeignKey(f => new {f.SiteCode, f.PatientPK}); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempPatientExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempPatientArtExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id) @@ -476,6 +597,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(HtsClientsLinkageExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(HtsTestKitsExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(HtsPartnerTracingExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(HtsEligibilityExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempHtsClientExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempHtsClientLinkageExtracts)}"); @@ -488,6 +610,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempHtsClientsLinkageExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempHtsTestKitsExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempHtsPartnerTracingExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempHtsEligibilityExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(MetricMigrationExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempMetricMigrationExtracts)}"); @@ -508,6 +631,9 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempOvcExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempOtzExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempCovidExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempDefaulterTracingExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(AllergiesChronicIllnessExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(IptExtracts)}"); @@ -519,6 +645,9 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(OvcExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(OtzExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(CovidExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(DefaulterTracingExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempPatientMnchExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempMnchEnrolmentExtracts)}"); @@ -543,6 +672,26 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(CwcVisitExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(HeiExtracts)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(MnchLabExtracts)}"); + + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempPatientPrepExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempPrepBehaviourRiskExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempPrepVisitExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempPrepLabExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempPrepPharmacyExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempPrepAdverseEventExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempPrepCareTerminationExtracts)}"); + + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(PatientPrepExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(PrepBehaviourRiskExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(PrepVisitExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(PrepLabExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(PrepPharmacyExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(PrepAdverseEventExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(PrepCareTerminationExtracts)}"); + + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(ClientRegistryExtracts)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TempClientRegistryExtracts)}"); + } public override void EnsureSeeded() diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210913100309_CovidPatientStatus.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210913100309_CovidPatientStatus.Designer.cs new file mode 100644 index 00000000..303a38f1 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210913100309_CovidPatientStatus.Designer.cs @@ -0,0 +1,9654 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20210913100309_CovidPatientStatus")] + partial class CovidPatientStatus + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210913100309_CovidPatientStatus.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210913100309_CovidPatientStatus.cs new file mode 100644 index 00000000..68b0b7e2 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210913100309_CovidPatientStatus.cs @@ -0,0 +1,68 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class CovidPatientStatus : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "DeathDate", + table: "TempPatientStatusExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "ReasonForDeath", + table: "TempPatientStatusExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "SpecificDeathReason", + table: "TempPatientStatusExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "DeathDate", + table: "PatientStatusExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "ReasonForDeath", + table: "PatientStatusExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "SpecificDeathReason", + table: "PatientStatusExtracts", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "DeathDate", + table: "TempPatientStatusExtracts"); + + migrationBuilder.DropColumn( + name: "ReasonForDeath", + table: "TempPatientStatusExtracts"); + + migrationBuilder.DropColumn( + name: "SpecificDeathReason", + table: "TempPatientStatusExtracts"); + + migrationBuilder.DropColumn( + name: "DeathDate", + table: "PatientStatusExtracts"); + + migrationBuilder.DropColumn( + name: "ReasonForDeath", + table: "PatientStatusExtracts"); + + migrationBuilder.DropColumn( + name: "SpecificDeathReason", + table: "PatientStatusExtracts"); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210913100406_CovidPatientStatusViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210913100406_CovidPatientStatusViews.Designer.cs new file mode 100644 index 00000000..6a449a52 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210913100406_CovidPatientStatusViews.Designer.cs @@ -0,0 +1,9654 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20210913100406_CovidPatientStatusViews")] + partial class CovidPatientStatusViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210913100406_CovidPatientStatusViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210913100406_CovidPatientStatusViews.cs new file mode 100644 index 00000000..010805ab --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210913100406_CovidPatientStatusViews.cs @@ -0,0 +1,50 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class CovidPatientStatusViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + if (migrationBuilder.ActiveProvider.ToLower().Contains("MySql".ToLower())) + { + migrationBuilder.Sql(@"SET FOREIGN_KEY_CHECKS = 0;"); + migrationBuilder.Sql( + @"alter table PatientStatusExtracts convert to character set utf8 collate utf8_unicode_ci;"); + + migrationBuilder.Sql( + @"alter table TempPatientStatusExtracts convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql(@"SET FOREIGN_KEY_CHECKS = 1;"); + } + + migrationBuilder.Sql(@" + ALTER view vTempPatientStatusExtractError as + SELECT * + FROM TempPatientStatusExtracts + WHERE (CheckError = 1) + "); + migrationBuilder.Sql(@" + ALTER VIEW vTempPatientStatusExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, vTempPatientStatusExtractError.PatientPK,vTempPatientStatusExtractError.FacilityId, + vTempPatientStatusExtractError.PatientID, vTempPatientStatusExtractError.SiteCode, vTempPatientStatusExtractError.FacilityName, ValidationError.RecordId, + + vTempPatientStatusExtractError.ExitDescription, + vTempPatientStatusExtractError.ExitDate, + vTempPatientStatusExtractError.ExitReason, + vTempPatientStatusExtractError.ReasonForDeath, + vTempPatientStatusExtractError.SpecificDeathReason, + vTempPatientStatusExtractError.DeathDate + + FROM vTempPatientStatusExtractError INNER JOIN + ValidationError ON vTempPatientStatusExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210914130638_NewCovid.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210914130638_NewCovid.Designer.cs new file mode 100644 index 00000000..b7d0794e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210914130638_NewCovid.Designer.cs @@ -0,0 +1,9978 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20210914130638_NewCovid")] + partial class NewCovid + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210914130638_NewCovid.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210914130638_NewCovid.cs new file mode 100644 index 00000000..21d812d0 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210914130638_NewCovid.cs @@ -0,0 +1,234 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class NewCovid : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "CovidExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: false), + SiteCode = table.Column(nullable: false), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + Processed = table.Column(nullable: true), + QueueId = table.Column(nullable: true), + Status = table.Column(nullable: true), + StatusDate = table.Column(nullable: true), + DateExtracted = table.Column(nullable: true), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true), + FacilityName = table.Column(nullable: true), + VisitID = table.Column(nullable: true), + Covid19AssessmentDate = table.Column(nullable: true), + ReceivedCOVID19Vaccine = table.Column(nullable: true), + DateGivenFirstDose = table.Column(nullable: true), + FirstDoseVaccineAdministered = table.Column(nullable: true), + DateGivenSecondDose = table.Column(nullable: true), + SecondDoseVaccineAdministered = table.Column(nullable: true), + VaccinationStatus = table.Column(nullable: true), + VaccineVerification = table.Column(nullable: true), + BoosterGiven = table.Column(nullable: true), + BoosterDose = table.Column(nullable: true), + BoosterDoseDate = table.Column(nullable: true), + EverCOVID19Positive = table.Column(nullable: true), + COVID19TestDate = table.Column(nullable: true), + PatientStatus = table.Column(nullable: true), + AdmissionStatus = table.Column(nullable: true), + AdmissionUnit = table.Column(nullable: true), + MissedAppointmentDueToCOVID19 = table.Column(nullable: true), + COVID19PositiveSinceLasVisit = table.Column(nullable: true), + COVID19TestDateSinceLastVisit = table.Column(nullable: true), + PatientStatusSinceLastVisit = table.Column(nullable: true), + AdmissionStatusSinceLastVisit = table.Column(nullable: true), + AdmissionStartDate = table.Column(nullable: true), + AdmissionEndDate = table.Column(nullable: true), + AdmissionUnitSinceLastVisit = table.Column(nullable: true), + SupplementalOxygenReceived = table.Column(nullable: true), + PatientVentilated = table.Column(nullable: true), + TracingFinalOutcome = table.Column(nullable: true), + CauseOfDeath = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_CovidExtracts", x => x.Id); + table.ForeignKey( + name: "FK_CovidExtracts_PatientExtracts_SiteCode_PatientPK", + columns: x => new { x.SiteCode, x.PatientPK }, + principalTable: "PatientExtracts", + principalColumns: new[] { "SiteCode", "PatientPK" }, + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "DefaulterTracingExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: false), + SiteCode = table.Column(nullable: false), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + Processed = table.Column(nullable: true), + QueueId = table.Column(nullable: true), + Status = table.Column(nullable: true), + StatusDate = table.Column(nullable: true), + DateExtracted = table.Column(nullable: true), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true), + FacilityName = table.Column(nullable: true), + VisitID = table.Column(nullable: true), + VisitDate = table.Column(nullable: true), + EncounterId = table.Column(nullable: true), + TracingType = table.Column(nullable: true), + TracingOutcome = table.Column(nullable: true), + AttemptNumber = table.Column(nullable: true), + IsFinalTrace = table.Column(nullable: true), + TrueStatus = table.Column(nullable: true), + CauseOfDeath = table.Column(nullable: true), + Comments = table.Column(nullable: true), + BookingDate = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_DefaulterTracingExtracts", x => x.Id); + table.ForeignKey( + name: "FK_DefaulterTracingExtracts_PatientExtracts_SiteCode_PatientPK", + columns: x => new { x.SiteCode, x.PatientPK }, + principalTable: "PatientExtracts", + principalColumns: new[] { "SiteCode", "PatientPK" }, + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "TempCovidExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: true), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + SiteCode = table.Column(nullable: true), + DateExtracted = table.Column(nullable: false), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + CheckError = table.Column(nullable: false), + ErrorType = table.Column(nullable: false), + FacilityName = table.Column(nullable: true), + VisitID = table.Column(nullable: true), + Covid19AssessmentDate = table.Column(nullable: true), + ReceivedCOVID19Vaccine = table.Column(nullable: true), + DateGivenFirstDose = table.Column(nullable: true), + FirstDoseVaccineAdministered = table.Column(nullable: true), + DateGivenSecondDose = table.Column(nullable: true), + SecondDoseVaccineAdministered = table.Column(nullable: true), + VaccinationStatus = table.Column(nullable: true), + VaccineVerification = table.Column(nullable: true), + BoosterGiven = table.Column(nullable: true), + BoosterDose = table.Column(nullable: true), + BoosterDoseDate = table.Column(nullable: true), + EverCOVID19Positive = table.Column(nullable: true), + COVID19TestDate = table.Column(nullable: true), + PatientStatus = table.Column(nullable: true), + AdmissionStatus = table.Column(nullable: true), + AdmissionUnit = table.Column(nullable: true), + MissedAppointmentDueToCOVID19 = table.Column(nullable: true), + COVID19PositiveSinceLasVisit = table.Column(nullable: true), + COVID19TestDateSinceLastVisit = table.Column(nullable: true), + PatientStatusSinceLastVisit = table.Column(nullable: true), + AdmissionStatusSinceLastVisit = table.Column(nullable: true), + AdmissionStartDate = table.Column(nullable: true), + AdmissionEndDate = table.Column(nullable: true), + AdmissionUnitSinceLastVisit = table.Column(nullable: true), + SupplementalOxygenReceived = table.Column(nullable: true), + PatientVentilated = table.Column(nullable: true), + TracingFinalOutcome = table.Column(nullable: true), + CauseOfDeath = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_TempCovidExtracts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "TempDefaulterTracingExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: true), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + SiteCode = table.Column(nullable: true), + DateExtracted = table.Column(nullable: false), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + CheckError = table.Column(nullable: false), + ErrorType = table.Column(nullable: false), + FacilityName = table.Column(nullable: true), + VisitID = table.Column(nullable: true), + VisitDate = table.Column(nullable: true), + EncounterId = table.Column(nullable: true), + TracingType = table.Column(nullable: true), + TracingOutcome = table.Column(nullable: true), + AttemptNumber = table.Column(nullable: true), + IsFinalTrace = table.Column(nullable: true), + TrueStatus = table.Column(nullable: true), + CauseOfDeath = table.Column(nullable: true), + Comments = table.Column(nullable: true), + BookingDate = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_TempDefaulterTracingExtracts", x => x.Id); + }); + + migrationBuilder.CreateIndex( + name: "IX_CovidExtracts_SiteCode_PatientPK", + table: "CovidExtracts", + columns: new[] { "SiteCode", "PatientPK" }); + + migrationBuilder.CreateIndex( + name: "IX_DefaulterTracingExtracts_SiteCode_PatientPK", + table: "DefaulterTracingExtracts", + columns: new[] { "SiteCode", "PatientPK" }); + + if (migrationBuilder.ActiveProvider.ToLower().Contains("MySql".ToLower())) + { + migrationBuilder.Sql(@"SET FOREIGN_KEY_CHECKS = 0;"); + migrationBuilder.Sql(@"alter table TempCovidExtracts convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql(@"alter table TempDefaulterTracingExtracts convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql(@"alter table CovidExtracts convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql(@"alter table DefaulterTracingExtracts convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql(@"SET FOREIGN_KEY_CHECKS = 1;"); + } + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "CovidExtracts"); + + migrationBuilder.DropTable( + name: "DefaulterTracingExtracts"); + + migrationBuilder.DropTable( + name: "TempCovidExtracts"); + + migrationBuilder.DropTable( + name: "TempDefaulterTracingExtracts"); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210914130803_NewCovidView.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210914130803_NewCovidView.Designer.cs new file mode 100644 index 00000000..e4a8d7e8 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210914130803_NewCovidView.Designer.cs @@ -0,0 +1,9978 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20210914130803_NewCovidView")] + partial class NewCovidView + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210914130803_NewCovidView.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210914130803_NewCovidView.cs new file mode 100644 index 00000000..59a3b048 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210914130803_NewCovidView.cs @@ -0,0 +1,106 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class NewCovidView : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.Sql( + @"create view vTempCovidExtractError as SELECT * FROM TempCovidExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql( + @"create view vTempDefaulterTracingExtractError as SELECT * FROM TempDefaulterTracingExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@" + CREATE VIEW vTempDefaulterTracingExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, + + vTempDefaulterTracingExtractError.PatientPK, + vTempDefaulterTracingExtractError.FacilityId, + vTempDefaulterTracingExtractError.SiteCode, + vTempDefaulterTracingExtractError.PatientID, + vTempDefaulterTracingExtractError.Emr, + vTempDefaulterTracingExtractError.Project, + vTempDefaulterTracingExtractError.FacilityName, + vTempDefaulterTracingExtractError.VisitID, + vTempDefaulterTracingExtractError.VisitDate, + vTempDefaulterTracingExtractError.EncounterId, + vTempDefaulterTracingExtractError.TracingType, + vTempDefaulterTracingExtractError.TracingOutcome, + vTempDefaulterTracingExtractError.AttemptNumber, + vTempDefaulterTracingExtractError.IsFinalTrace, + vTempDefaulterTracingExtractError.TrueStatus, + vTempDefaulterTracingExtractError.CauseOfDeath, + vTempDefaulterTracingExtractError.Comments, + vTempDefaulterTracingExtractError.BookingDate, + + vTempDefaulterTracingExtractError.Date_Created, + vTempDefaulterTracingExtractError.Date_Last_Modified + + FROM vTempDefaulterTracingExtractError INNER JOIN + ValidationError ON vTempDefaulterTracingExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + migrationBuilder.Sql(@" + CREATE VIEW vTempCovidExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, + + + vTempCovidExtractError.PatientPK, + vTempCovidExtractError.FacilityId, + vTempCovidExtractError.PatientID, + vTempCovidExtractError.SiteCode, + vTempCovidExtractError.Emr, + vTempCovidExtractError.Project, + + vTempCovidExtractError.FacilityName, + vTempCovidExtractError.VisitID, + vTempCovidExtractError.Covid19AssessmentDate, + vTempCovidExtractError.ReceivedCOVID19Vaccine, + vTempCovidExtractError.DateGivenFirstDose, + vTempCovidExtractError.FirstDoseVaccineAdministered, + vTempCovidExtractError.DateGivenSecondDose, + vTempCovidExtractError.SecondDoseVaccineAdministered, + vTempCovidExtractError.VaccinationStatus, + vTempCovidExtractError.VaccineVerification, + vTempCovidExtractError.BoosterGiven, + vTempCovidExtractError.BoosterDose, + vTempCovidExtractError.BoosterDoseDate, + vTempCovidExtractError.EverCOVID19Positive, + vTempCovidExtractError.COVID19TestDate, + vTempCovidExtractError.PatientStatus, + vTempCovidExtractError.AdmissionStatus, + vTempCovidExtractError.AdmissionUnit, + vTempCovidExtractError.MissedAppointmentDueToCOVID19, + vTempCovidExtractError.COVID19PositiveSinceLasVisit, + vTempCovidExtractError.COVID19TestDateSinceLastVisit, + vTempCovidExtractError.PatientStatusSinceLastVisit, + vTempCovidExtractError.AdmissionStatusSinceLastVisit, + vTempCovidExtractError.AdmissionStartDate, + vTempCovidExtractError.AdmissionEndDate, + vTempCovidExtractError.AdmissionUnitSinceLastVisit, + vTempCovidExtractError.SupplementalOxygenReceived, + vTempCovidExtractError.PatientVentilated, + vTempCovidExtractError.TracingFinalOutcome, + vTempCovidExtractError.CauseOfDeath, + + vTempCovidExtractError.Date_Created, + vTempCovidExtractError.Date_Last_Modified + + + + FROM vTempCovidExtractError INNER JOIN + ValidationError ON vTempCovidExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210917091405_CovidSeq.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210917091405_CovidSeq.Designer.cs new file mode 100644 index 00000000..7016016a --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210917091405_CovidSeq.Designer.cs @@ -0,0 +1,9986 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20210917091405_CovidSeq")] + partial class CovidSeq + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210917091405_CovidSeq.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210917091405_CovidSeq.cs new file mode 100644 index 00000000..d005ed7f --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210917091405_CovidSeq.cs @@ -0,0 +1,49 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class CovidSeq : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "COVID19TestResult", + table: "TempCovidExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "Sequence", + table: "TempCovidExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "COVID19TestResult", + table: "CovidExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "Sequence", + table: "CovidExtracts", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "COVID19TestResult", + table: "TempCovidExtracts"); + + migrationBuilder.DropColumn( + name: "Sequence", + table: "TempCovidExtracts"); + + migrationBuilder.DropColumn( + name: "COVID19TestResult", + table: "CovidExtracts"); + + migrationBuilder.DropColumn( + name: "Sequence", + table: "CovidExtracts"); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210917091456_CovidSeqView.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210917091456_CovidSeqView.Designer.cs new file mode 100644 index 00000000..d6720966 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210917091456_CovidSeqView.Designer.cs @@ -0,0 +1,9986 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20210917091456_CovidSeqView")] + partial class CovidSeqView + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210917091456_CovidSeqView.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210917091456_CovidSeqView.cs new file mode 100644 index 00000000..8669addd --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20210917091456_CovidSeqView.cs @@ -0,0 +1,71 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class CovidSeqView : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.Sql( + @"ALTER view vTempCovidExtractError as SELECT * FROM TempCovidExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@" + ALTER VIEW vTempCovidExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, + + + vTempCovidExtractError.PatientPK, + vTempCovidExtractError.FacilityId, + vTempCovidExtractError.PatientID, + vTempCovidExtractError.SiteCode, + vTempCovidExtractError.Emr, + vTempCovidExtractError.Project, + + vTempCovidExtractError.FacilityName, + vTempCovidExtractError.VisitID, + vTempCovidExtractError.Covid19AssessmentDate, + vTempCovidExtractError.ReceivedCOVID19Vaccine, + vTempCovidExtractError.DateGivenFirstDose, + vTempCovidExtractError.FirstDoseVaccineAdministered, + vTempCovidExtractError.DateGivenSecondDose, + vTempCovidExtractError.SecondDoseVaccineAdministered, + vTempCovidExtractError.VaccinationStatus, + vTempCovidExtractError.VaccineVerification, + vTempCovidExtractError.BoosterGiven, + vTempCovidExtractError.BoosterDose, + vTempCovidExtractError.BoosterDoseDate, + vTempCovidExtractError.EverCOVID19Positive, + vTempCovidExtractError.COVID19TestDate, + vTempCovidExtractError.PatientStatus, + vTempCovidExtractError.AdmissionStatus, + vTempCovidExtractError.AdmissionUnit, + vTempCovidExtractError.MissedAppointmentDueToCOVID19, + vTempCovidExtractError.COVID19PositiveSinceLasVisit, + vTempCovidExtractError.COVID19TestDateSinceLastVisit, + vTempCovidExtractError.PatientStatusSinceLastVisit, + vTempCovidExtractError.AdmissionStatusSinceLastVisit, + vTempCovidExtractError.AdmissionStartDate, + vTempCovidExtractError.AdmissionEndDate, + vTempCovidExtractError.AdmissionUnitSinceLastVisit, + vTempCovidExtractError.SupplementalOxygenReceived, + vTempCovidExtractError.PatientVentilated, + vTempCovidExtractError.TracingFinalOutcome, + vTempCovidExtractError.CauseOfDeath, + vTempCovidExtractError.Date_Created, + vTempCovidExtractError.Date_Last_Modified, + vTempCovidExtractError.COVID19TestResult, + vTempCovidExtractError.Sequence + + FROM vTempCovidExtractError INNER JOIN + ValidationError ON vTempCovidExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220412035038_PrepInitial.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220412035038_PrepInitial.Designer.cs new file mode 100644 index 00000000..86a73b1b --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220412035038_PrepInitial.Designer.cs @@ -0,0 +1,11055 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220412035038_PrepInitial")] + partial class PrepInitial + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220412035038_PrepInitial.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220412035038_PrepInitial.cs new file mode 100644 index 00000000..015c1a31 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220412035038_PrepInitial.cs @@ -0,0 +1,747 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class PrepInitial : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "EffectiveDiscontinuationDate", + table: "TempPatientStatusExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "EffectiveDiscontinuationDate", + table: "PatientStatusExtracts", + nullable: true); + + migrationBuilder.CreateTable( + name: "PatientPrepExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: false), + SiteCode = table.Column(nullable: false), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + Processed = table.Column(nullable: true), + QueueId = table.Column(nullable: true), + Status = table.Column(nullable: true), + StatusDate = table.Column(nullable: true), + DateExtracted = table.Column(nullable: true), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + HtsNumber = table.Column(nullable: true), + PrepEnrollmentDate = table.Column(nullable: true), + Sex = table.Column(nullable: true), + DateofBirth = table.Column(nullable: true), + CountyofBirth = table.Column(nullable: true), + County = table.Column(nullable: true), + SubCounty = table.Column(nullable: true), + Location = table.Column(nullable: true), + LandMark = table.Column(nullable: true), + Ward = table.Column(nullable: true), + ClientType = table.Column(nullable: true), + ReferralPoint = table.Column(nullable: true), + MaritalStatus = table.Column(nullable: true), + Inschool = table.Column(nullable: true), + PopulationType = table.Column(nullable: true), + KeyPopulationType = table.Column(nullable: true), + Refferedfrom = table.Column(nullable: true), + TransferIn = table.Column(nullable: true), + TransferInDate = table.Column(nullable: true), + TransferFromFacility = table.Column(nullable: true), + DatefirstinitiatedinPrepCare = table.Column(nullable: true), + DateStartedPrEPattransferringfacility = table.Column(nullable: true), + ClientPreviouslyonPrep = table.Column(nullable: true), + PrevPrepReg = table.Column(nullable: true), + DateLastUsedPrev = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_PatientPrepExtracts", x => new { x.SiteCode, x.PatientPK }); + table.UniqueConstraint("AK_PatientPrepExtracts_Id", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "TempPatientPrepExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: true), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + SiteCode = table.Column(nullable: true), + DateExtracted = table.Column(nullable: false), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + CheckError = table.Column(nullable: false), + ErrorType = table.Column(nullable: false), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + HtsNumber = table.Column(nullable: true), + PrepEnrollmentDate = table.Column(nullable: true), + Sex = table.Column(nullable: true), + DateofBirth = table.Column(nullable: true), + CountyofBirth = table.Column(nullable: true), + County = table.Column(nullable: true), + SubCounty = table.Column(nullable: true), + Location = table.Column(nullable: true), + LandMark = table.Column(nullable: true), + Ward = table.Column(nullable: true), + ClientType = table.Column(nullable: true), + ReferralPoint = table.Column(nullable: true), + MaritalStatus = table.Column(nullable: true), + Inschool = table.Column(nullable: true), + PopulationType = table.Column(nullable: true), + KeyPopulationType = table.Column(nullable: true), + Refferedfrom = table.Column(nullable: true), + TransferIn = table.Column(nullable: true), + TransferInDate = table.Column(nullable: true), + TransferFromFacility = table.Column(nullable: true), + DatefirstinitiatedinPrepCare = table.Column(nullable: true), + DateStartedPrEPattransferringfacility = table.Column(nullable: true), + ClientPreviouslyonPrep = table.Column(nullable: true), + PrevPrepReg = table.Column(nullable: true), + DateLastUsedPrev = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_TempPatientPrepExtracts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "TempPrepAdverseEventExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: true), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + SiteCode = table.Column(nullable: true), + DateExtracted = table.Column(nullable: false), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + CheckError = table.Column(nullable: false), + ErrorType = table.Column(nullable: false), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + AdverseEvent = table.Column(nullable: true), + AdverseEventStartDate = table.Column(nullable: true), + AdverseEventEndDate = table.Column(nullable: true), + Severity = table.Column(nullable: true), + VisitDate = table.Column(nullable: true), + AdverseEventActionTaken = table.Column(nullable: true), + AdverseEventClinicalOutcome = table.Column(nullable: true), + AdverseEventIsPregnant = table.Column(nullable: true), + AdverseEventCause = table.Column(nullable: true), + AdverseEventRegimen = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_TempPrepAdverseEventExtracts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "TempPrepBehaviourRiskExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: true), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + SiteCode = table.Column(nullable: true), + DateExtracted = table.Column(nullable: false), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + CheckError = table.Column(nullable: false), + ErrorType = table.Column(nullable: false), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + HtsNumber = table.Column(nullable: true), + VisitDate = table.Column(nullable: true), + VisitID = table.Column(nullable: true), + SexPartnerHIVStatus = table.Column(nullable: true), + IsHIVPositivePartnerCurrentonART = table.Column(nullable: true), + IsPartnerHighrisk = table.Column(nullable: true), + PartnerARTRisk = table.Column(nullable: true), + ClientAssessments = table.Column(nullable: true), + ClientRisk = table.Column(nullable: true), + ClientWillingToTakePrep = table.Column(nullable: true), + PrEPDeclineReason = table.Column(nullable: true), + RiskReductionEducationOffered = table.Column(nullable: true), + ReferralToOtherPrevServices = table.Column(nullable: true), + FirstEstablishPartnerStatus = table.Column(nullable: true), + PartnerEnrolledtoCCC = table.Column(nullable: true), + HIVPartnerCCCnumber = table.Column(nullable: true), + HIVPartnerARTStartDate = table.Column(nullable: true), + MonthsknownHIVSerodiscordant = table.Column(nullable: true), + SexWithoutCondom = table.Column(nullable: true), + NumberofchildrenWithPartner = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_TempPrepBehaviourRiskExtracts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "TempPrepCareTerminationExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: true), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + SiteCode = table.Column(nullable: true), + DateExtracted = table.Column(nullable: false), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + CheckError = table.Column(nullable: false), + ErrorType = table.Column(nullable: false), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + HtsNumber = table.Column(nullable: true), + ExitDate = table.Column(nullable: true), + ExitReason = table.Column(nullable: true), + DateOfLastPrepDose = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_TempPrepCareTerminationExtracts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "TempPrepLabExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: true), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + SiteCode = table.Column(nullable: true), + DateExtracted = table.Column(nullable: false), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + CheckError = table.Column(nullable: false), + ErrorType = table.Column(nullable: false), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + HtsNumber = table.Column(nullable: true), + VisitID = table.Column(nullable: true), + TestName = table.Column(nullable: true), + TestResult = table.Column(nullable: true), + SampleDate = table.Column(nullable: true), + TestResultDate = table.Column(nullable: true), + Reason = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_TempPrepLabExtracts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "TempPrepPharmacyExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: true), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + SiteCode = table.Column(nullable: true), + DateExtracted = table.Column(nullable: false), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + CheckError = table.Column(nullable: false), + ErrorType = table.Column(nullable: false), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + HtsNumber = table.Column(nullable: true), + VisitID = table.Column(nullable: true), + RegimenPrescribed = table.Column(nullable: true), + DispenseDate = table.Column(nullable: true), + Duration = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_TempPrepPharmacyExtracts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "TempPrepVisitExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: true), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + SiteCode = table.Column(nullable: true), + DateExtracted = table.Column(nullable: false), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + CheckError = table.Column(nullable: false), + ErrorType = table.Column(nullable: false), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + HtsNumber = table.Column(nullable: true), + EncounterId = table.Column(nullable: true), + VisitID = table.Column(nullable: true), + VisitDate = table.Column(nullable: true), + BloodPressure = table.Column(nullable: true), + Temperature = table.Column(nullable: true), + Weight = table.Column(nullable: true), + Height = table.Column(nullable: true), + BMI = table.Column(nullable: true), + STIScreening = table.Column(nullable: true), + STISymptoms = table.Column(nullable: true), + STITreated = table.Column(nullable: true), + Circumcised = table.Column(nullable: true), + VMMCReferral = table.Column(nullable: true), + LMP = table.Column(nullable: true), + MenopausalStatus = table.Column(nullable: true), + PregnantAtThisVisit = table.Column(nullable: true), + EDD = table.Column(nullable: true), + PlanningToGetPregnant = table.Column(nullable: true), + PregnancyPlanned = table.Column(nullable: true), + PregnancyEnded = table.Column(nullable: true), + PregnancyEndDate = table.Column(nullable: true), + PregnancyOutcome = table.Column(nullable: true), + BirthDefects = table.Column(nullable: true), + Breastfeeding = table.Column(nullable: true), + FamilyPlanningStatus = table.Column(nullable: true), + FPMethods = table.Column(nullable: true), + AdherenceDone = table.Column(nullable: true), + AdherenceOutcome = table.Column(nullable: true), + AdherenceReasons = table.Column(nullable: true), + SymptomsAcuteHIV = table.Column(nullable: true), + ContraindicationsPrep = table.Column(nullable: true), + PrepTreatmentPlan = table.Column(nullable: true), + PrepPrescribed = table.Column(nullable: true), + RegimenPrescribed = table.Column(nullable: true), + MonthsPrescribed = table.Column(nullable: true), + CondomsIssued = table.Column(nullable: true), + Tobegivennextappointment = table.Column(nullable: true), + Reasonfornotgivingnextappointment = table.Column(nullable: true), + HepatitisBPositiveResult = table.Column(nullable: true), + HepatitisCPositiveResult = table.Column(nullable: true), + VaccinationForHepBStarted = table.Column(nullable: true), + TreatedForHepB = table.Column(nullable: true), + VaccinationForHepCStarted = table.Column(nullable: true), + TreatedForHepC = table.Column(nullable: true), + NextAppointment = table.Column(nullable: true), + ClinicalNotes = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_TempPrepVisitExtracts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "PrepAdverseEventExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: false), + SiteCode = table.Column(nullable: false), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + Processed = table.Column(nullable: true), + QueueId = table.Column(nullable: true), + Status = table.Column(nullable: true), + StatusDate = table.Column(nullable: true), + DateExtracted = table.Column(nullable: true), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + AdverseEvent = table.Column(nullable: true), + AdverseEventStartDate = table.Column(nullable: true), + AdverseEventEndDate = table.Column(nullable: true), + Severity = table.Column(nullable: true), + VisitDate = table.Column(nullable: true), + AdverseEventActionTaken = table.Column(nullable: true), + AdverseEventClinicalOutcome = table.Column(nullable: true), + AdverseEventIsPregnant = table.Column(nullable: true), + AdverseEventCause = table.Column(nullable: true), + AdverseEventRegimen = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_PrepAdverseEventExtracts", x => x.Id); + table.ForeignKey( + name: "FK_PrepAdverseEventExtracts_PatientPrepExtracts_SiteCode_PatientPK", + columns: x => new { x.SiteCode, x.PatientPK }, + principalTable: "PatientPrepExtracts", + principalColumns: new[] { "SiteCode", "PatientPK" }, + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "PrepBehaviourRiskExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: false), + SiteCode = table.Column(nullable: false), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + Processed = table.Column(nullable: true), + QueueId = table.Column(nullable: true), + Status = table.Column(nullable: true), + StatusDate = table.Column(nullable: true), + DateExtracted = table.Column(nullable: true), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + HtsNumber = table.Column(nullable: true), + VisitDate = table.Column(nullable: true), + VisitID = table.Column(nullable: true), + SexPartnerHIVStatus = table.Column(nullable: true), + IsHIVPositivePartnerCurrentonART = table.Column(nullable: true), + IsPartnerHighrisk = table.Column(nullable: true), + PartnerARTRisk = table.Column(nullable: true), + ClientAssessments = table.Column(nullable: true), + ClientRisk = table.Column(nullable: true), + ClientWillingToTakePrep = table.Column(nullable: true), + PrEPDeclineReason = table.Column(nullable: true), + RiskReductionEducationOffered = table.Column(nullable: true), + ReferralToOtherPrevServices = table.Column(nullable: true), + FirstEstablishPartnerStatus = table.Column(nullable: true), + PartnerEnrolledtoCCC = table.Column(nullable: true), + HIVPartnerCCCnumber = table.Column(nullable: true), + HIVPartnerARTStartDate = table.Column(nullable: true), + MonthsknownHIVSerodiscordant = table.Column(nullable: true), + SexWithoutCondom = table.Column(nullable: true), + NumberofchildrenWithPartner = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_PrepBehaviourRiskExtracts", x => x.Id); + table.ForeignKey( + name: "FK_PrepBehaviourRiskExtracts_PatientPrepExtracts_SiteCode_PatientPK", + columns: x => new { x.SiteCode, x.PatientPK }, + principalTable: "PatientPrepExtracts", + principalColumns: new[] { "SiteCode", "PatientPK" }, + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "PrepCareTerminationExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: false), + SiteCode = table.Column(nullable: false), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + Processed = table.Column(nullable: true), + QueueId = table.Column(nullable: true), + Status = table.Column(nullable: true), + StatusDate = table.Column(nullable: true), + DateExtracted = table.Column(nullable: true), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + HtsNumber = table.Column(nullable: true), + ExitDate = table.Column(nullable: true), + ExitReason = table.Column(nullable: true), + DateOfLastPrepDose = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_PrepCareTerminationExtracts", x => x.Id); + table.ForeignKey( + name: "FK_PrepCareTerminationExtracts_PatientPrepExtracts_SiteCode_PatientPK", + columns: x => new { x.SiteCode, x.PatientPK }, + principalTable: "PatientPrepExtracts", + principalColumns: new[] { "SiteCode", "PatientPK" }, + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "PrepLabExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: false), + SiteCode = table.Column(nullable: false), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + Processed = table.Column(nullable: true), + QueueId = table.Column(nullable: true), + Status = table.Column(nullable: true), + StatusDate = table.Column(nullable: true), + DateExtracted = table.Column(nullable: true), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + HtsNumber = table.Column(nullable: true), + VisitID = table.Column(nullable: true), + TestName = table.Column(nullable: true), + TestResult = table.Column(nullable: true), + SampleDate = table.Column(nullable: true), + TestResultDate = table.Column(nullable: true), + Reason = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_PrepLabExtracts", x => x.Id); + table.ForeignKey( + name: "FK_PrepLabExtracts_PatientPrepExtracts_SiteCode_PatientPK", + columns: x => new { x.SiteCode, x.PatientPK }, + principalTable: "PatientPrepExtracts", + principalColumns: new[] { "SiteCode", "PatientPK" }, + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "PrepPharmacyExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: false), + SiteCode = table.Column(nullable: false), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + Processed = table.Column(nullable: true), + QueueId = table.Column(nullable: true), + Status = table.Column(nullable: true), + StatusDate = table.Column(nullable: true), + DateExtracted = table.Column(nullable: true), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + HtsNumber = table.Column(nullable: true), + VisitID = table.Column(nullable: true), + RegimenPrescribed = table.Column(nullable: true), + DispenseDate = table.Column(nullable: true), + Duration = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_PrepPharmacyExtracts", x => x.Id); + table.ForeignKey( + name: "FK_PrepPharmacyExtracts_PatientPrepExtracts_SiteCode_PatientPK", + columns: x => new { x.SiteCode, x.PatientPK }, + principalTable: "PatientPrepExtracts", + principalColumns: new[] { "SiteCode", "PatientPK" }, + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "PrepVisitExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: false), + SiteCode = table.Column(nullable: false), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + Processed = table.Column(nullable: true), + QueueId = table.Column(nullable: true), + Status = table.Column(nullable: true), + StatusDate = table.Column(nullable: true), + DateExtracted = table.Column(nullable: true), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true), + FacilityName = table.Column(nullable: true), + PrepNumber = table.Column(nullable: true), + HtsNumber = table.Column(nullable: true), + EncounterId = table.Column(nullable: true), + VisitID = table.Column(nullable: true), + VisitDate = table.Column(nullable: true), + BloodPressure = table.Column(nullable: true), + Temperature = table.Column(nullable: true), + Weight = table.Column(nullable: true), + Height = table.Column(nullable: true), + BMI = table.Column(nullable: true), + STIScreening = table.Column(nullable: true), + STISymptoms = table.Column(nullable: true), + STITreated = table.Column(nullable: true), + Circumcised = table.Column(nullable: true), + VMMCReferral = table.Column(nullable: true), + LMP = table.Column(nullable: true), + MenopausalStatus = table.Column(nullable: true), + PregnantAtThisVisit = table.Column(nullable: true), + EDD = table.Column(nullable: true), + PlanningToGetPregnant = table.Column(nullable: true), + PregnancyPlanned = table.Column(nullable: true), + PregnancyEnded = table.Column(nullable: true), + PregnancyEndDate = table.Column(nullable: true), + PregnancyOutcome = table.Column(nullable: true), + BirthDefects = table.Column(nullable: true), + Breastfeeding = table.Column(nullable: true), + FamilyPlanningStatus = table.Column(nullable: true), + FPMethods = table.Column(nullable: true), + AdherenceDone = table.Column(nullable: true), + AdherenceOutcome = table.Column(nullable: true), + AdherenceReasons = table.Column(nullable: true), + SymptomsAcuteHIV = table.Column(nullable: true), + ContraindicationsPrep = table.Column(nullable: true), + PrepTreatmentPlan = table.Column(nullable: true), + PrepPrescribed = table.Column(nullable: true), + RegimenPrescribed = table.Column(nullable: true), + MonthsPrescribed = table.Column(nullable: true), + CondomsIssued = table.Column(nullable: true), + Tobegivennextappointment = table.Column(nullable: true), + Reasonfornotgivingnextappointment = table.Column(nullable: true), + HepatitisBPositiveResult = table.Column(nullable: true), + HepatitisCPositiveResult = table.Column(nullable: true), + VaccinationForHepBStarted = table.Column(nullable: true), + TreatedForHepB = table.Column(nullable: true), + VaccinationForHepCStarted = table.Column(nullable: true), + TreatedForHepC = table.Column(nullable: true), + NextAppointment = table.Column(nullable: true), + ClinicalNotes = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_PrepVisitExtracts", x => x.Id); + table.ForeignKey( + name: "FK_PrepVisitExtracts_PatientPrepExtracts_SiteCode_PatientPK", + columns: x => new { x.SiteCode, x.PatientPK }, + principalTable: "PatientPrepExtracts", + principalColumns: new[] { "SiteCode", "PatientPK" }, + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateIndex( + name: "IX_PrepAdverseEventExtracts_SiteCode_PatientPK", + table: "PrepAdverseEventExtracts", + columns: new[] { "SiteCode", "PatientPK" }); + + migrationBuilder.CreateIndex( + name: "IX_PrepBehaviourRiskExtracts_SiteCode_PatientPK", + table: "PrepBehaviourRiskExtracts", + columns: new[] { "SiteCode", "PatientPK" }); + + migrationBuilder.CreateIndex( + name: "IX_PrepCareTerminationExtracts_SiteCode_PatientPK", + table: "PrepCareTerminationExtracts", + columns: new[] { "SiteCode", "PatientPK" }); + + migrationBuilder.CreateIndex( + name: "IX_PrepLabExtracts_SiteCode_PatientPK", + table: "PrepLabExtracts", + columns: new[] { "SiteCode", "PatientPK" }); + + migrationBuilder.CreateIndex( + name: "IX_PrepPharmacyExtracts_SiteCode_PatientPK", + table: "PrepPharmacyExtracts", + columns: new[] { "SiteCode", "PatientPK" }); + + migrationBuilder.CreateIndex( + name: "IX_PrepVisitExtracts_SiteCode_PatientPK", + table: "PrepVisitExtracts", + columns: new[] { "SiteCode", "PatientPK" }); + + if (migrationBuilder.ActiveProvider.ToLower().Contains("MySql".ToLower())) + { + migrationBuilder.Sql(@"SET FOREIGN_KEY_CHECKS = 0;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.TempPatientPrepExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.TempPrepAdverseEventExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.TempPrepBehaviourRiskExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.TempPrepCareTerminationExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.TempPrepLabExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.TempPrepPharmacyExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.TempPrepVisitExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.PatientPrepExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.PrepAdverseEventExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.PrepBehaviourRiskExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.PrepCareTerminationExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.PrepLabExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.PrepPharmacyExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.PrepVisitExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql(@"SET FOREIGN_KEY_CHECKS = 1;"); + } + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "PrepAdverseEventExtracts"); + + migrationBuilder.DropTable( + name: "PrepBehaviourRiskExtracts"); + + migrationBuilder.DropTable( + name: "PrepCareTerminationExtracts"); + + migrationBuilder.DropTable( + name: "PrepLabExtracts"); + + migrationBuilder.DropTable( + name: "PrepPharmacyExtracts"); + + migrationBuilder.DropTable( + name: "PrepVisitExtracts"); + + migrationBuilder.DropTable( + name: "TempPatientPrepExtracts"); + + migrationBuilder.DropTable( + name: "TempPrepAdverseEventExtracts"); + + migrationBuilder.DropTable( + name: "TempPrepBehaviourRiskExtracts"); + + migrationBuilder.DropTable( + name: "TempPrepCareTerminationExtracts"); + + migrationBuilder.DropTable( + name: "TempPrepLabExtracts"); + + migrationBuilder.DropTable( + name: "TempPrepPharmacyExtracts"); + + migrationBuilder.DropTable( + name: "TempPrepVisitExtracts"); + + migrationBuilder.DropTable( + name: "PatientPrepExtracts"); + + migrationBuilder.DropColumn( + name: "EffectiveDiscontinuationDate", + table: "TempPatientStatusExtracts"); + + migrationBuilder.DropColumn( + name: "EffectiveDiscontinuationDate", + table: "PatientStatusExtracts"); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220412035109_PrepViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220412035109_PrepViews.Designer.cs new file mode 100644 index 00000000..5d5278f2 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220412035109_PrepViews.Designer.cs @@ -0,0 +1,11055 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220412035109_PrepViews")] + partial class PrepViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220412035109_PrepViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220412035109_PrepViews.cs new file mode 100644 index 00000000..a0b1ef7e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220412035109_PrepViews.cs @@ -0,0 +1,328 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class PrepViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + + migrationBuilder.Sql(@"ALTER view vTempPatientStatusExtractError as SELECT * FROM TempPatientStatusExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@"create view vTempPatientPrepExtractError as SELECT * FROM TempPatientPrepExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql(@"create view vTempPrepAdverseEventExtractError as SELECT * FROM TempPrepAdverseEventExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql(@"create view vTempPrepBehaviourRiskExtractError as SELECT * FROM TempPrepBehaviourRiskExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql(@"create view vTempPrepCareTerminationExtractError as SELECT * FROM TempPrepCareTerminationExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql(@"create view vTempPrepLabExtractError as SELECT * FROM TempPrepLabExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql(@"create view vTempPrepPharmacyExtractError as SELECT * FROM TempPrepPharmacyExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql(@"create view vTempPrepVisitExtractError as SELECT * FROM TempPrepVisitExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@" + ALTER VIEW vTempPatientStatusExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, vTempPatientStatusExtractError.PatientPK,vTempPatientStatusExtractError.FacilityId, + vTempPatientStatusExtractError.PatientID, vTempPatientStatusExtractError.SiteCode, vTempPatientStatusExtractError.FacilityName, ValidationError.RecordId, + + vTempPatientStatusExtractError.ExitDescription, + vTempPatientStatusExtractError.EffectiveDiscontinuationDate, + vTempPatientStatusExtractError.ExitDate, + vTempPatientStatusExtractError.ExitReason, + vTempPatientStatusExtractError.ReasonForDeath, + vTempPatientStatusExtractError.SpecificDeathReason, + vTempPatientStatusExtractError.DeathDate, + vTempPatientStatusExtractError.Date_Created, + vTempPatientStatusExtractError.Date_Last_Modified + + FROM vTempPatientStatusExtractError INNER JOIN + ValidationError ON vTempPatientStatusExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + migrationBuilder.Sql(@" + CREATE VIEW vTempPatientPrepExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, + + + vTempPatientPrepExtractError.PatientPK, + vTempPatientPrepExtractError.FacilityId, + vTempPatientPrepExtractError.PatientID, + vTempPatientPrepExtractError.SiteCode, + vTempPatientPrepExtractError.Emr, + vTempPatientPrepExtractError.Project, + + vTempPatientPrepExtractError.PrepNumber, + vTempPatientPrepExtractError.HtsNumber, + vTempPatientPrepExtractError.PrepEnrollmentDate, + vTempPatientPrepExtractError.Sex, + vTempPatientPrepExtractError.DateofBirth, + vTempPatientPrepExtractError.CountyofBirth, + vTempPatientPrepExtractError.County, + vTempPatientPrepExtractError.SubCounty, + vTempPatientPrepExtractError.Location, + vTempPatientPrepExtractError.LandMark, + vTempPatientPrepExtractError.Ward, + vTempPatientPrepExtractError.ClientType, + vTempPatientPrepExtractError.ReferralPoint, + vTempPatientPrepExtractError.MaritalStatus, + vTempPatientPrepExtractError.Inschool, + vTempPatientPrepExtractError.PopulationType, + vTempPatientPrepExtractError.KeyPopulationType, + vTempPatientPrepExtractError.Refferedfrom, + vTempPatientPrepExtractError.TransferIn, + vTempPatientPrepExtractError.TransferInDate, + vTempPatientPrepExtractError.TransferFromFacility, + vTempPatientPrepExtractError.DatefirstinitiatedinPrepCare, + vTempPatientPrepExtractError.DateStartedPrEPattransferringfacility, + vTempPatientPrepExtractError.ClientPreviouslyonPrep, + vTempPatientPrepExtractError.PrevPrepReg, + vTempPatientPrepExtractError.DateLastUsedPrev, + + vTempPatientPrepExtractError.Date_Created, + vTempPatientPrepExtractError.Date_Last_Modified + FROM vTempPatientPrepExtractError INNER JOIN + ValidationError ON vTempPatientPrepExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + + migrationBuilder.Sql(@" + CREATE VIEW vTempPrepAdverseEventExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, + + + vTempPrepAdverseEventExtractError.PatientPK, + vTempPrepAdverseEventExtractError.FacilityId, + vTempPrepAdverseEventExtractError.PatientID, + vTempPrepAdverseEventExtractError.SiteCode, + vTempPrepAdverseEventExtractError.Emr, + vTempPrepAdverseEventExtractError.Project, +vTempPrepAdverseEventExtractError.PREPNumber, +vTempPrepAdverseEventExtractError.AdverseEvent, +vTempPrepAdverseEventExtractError.AdverseEventStartDate, +vTempPrepAdverseEventExtractError.AdverseEventEndDate, +vTempPrepAdverseEventExtractError.Severity, +vTempPrepAdverseEventExtractError.VisitDate, +vTempPrepAdverseEventExtractError.AdverseEventActionTaken, +vTempPrepAdverseEventExtractError.AdverseEventClinicalOutcome, +vTempPrepAdverseEventExtractError.AdverseEventIsPregnant, +vTempPrepAdverseEventExtractError.AdverseEventCause, +vTempPrepAdverseEventExtractError.AdverseEventRegimen, +vTempPrepAdverseEventExtractError.FacilityName, + + + vTempPrepAdverseEventExtractError.Date_Created, + vTempPrepAdverseEventExtractError.Date_Last_Modified + FROM vTempPrepAdverseEventExtractError INNER JOIN + ValidationError ON vTempPrepAdverseEventExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + migrationBuilder.Sql(@" + CREATE VIEW vTempPrepBehaviourRiskExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, + + + vTempPrepBehaviourRiskExtractError.PatientPK, + vTempPrepBehaviourRiskExtractError.FacilityId, + vTempPrepBehaviourRiskExtractError.PatientID, + vTempPrepBehaviourRiskExtractError.SiteCode, + vTempPrepBehaviourRiskExtractError.Emr, + vTempPrepBehaviourRiskExtractError.Project, + +vTempPrepBehaviourRiskExtractError.PrepNumber, +vTempPrepBehaviourRiskExtractError.HtsNumber, +vTempPrepBehaviourRiskExtractError.VisitDate, +vTempPrepBehaviourRiskExtractError.VisitID, +vTempPrepBehaviourRiskExtractError.SexPartnerHIVStatus, +vTempPrepBehaviourRiskExtractError.IsHIVPositivePartnerCurrentonART, +vTempPrepBehaviourRiskExtractError.IsPartnerHighrisk, +vTempPrepBehaviourRiskExtractError.PartnerARTRisk, +vTempPrepBehaviourRiskExtractError.ClientAssessments, +vTempPrepBehaviourRiskExtractError.ClientRisk, +vTempPrepBehaviourRiskExtractError.ClientWillingToTakePrep, +vTempPrepBehaviourRiskExtractError.PrEPDeclineReason, +vTempPrepBehaviourRiskExtractError.RiskReductionEducationOffered, +vTempPrepBehaviourRiskExtractError.ReferralToOtherPrevServices, +vTempPrepBehaviourRiskExtractError.FirstEstablishPartnerStatus, +vTempPrepBehaviourRiskExtractError.PartnerEnrolledtoCCC, +vTempPrepBehaviourRiskExtractError.HIVPartnerCCCnumber, +vTempPrepBehaviourRiskExtractError.HIVPartnerARTStartDate, +vTempPrepBehaviourRiskExtractError.MonthsknownHIVSerodiscordant, +vTempPrepBehaviourRiskExtractError.SexWithoutCondom, +vTempPrepBehaviourRiskExtractError.NumberofchildrenWithPartner, +vTempPrepBehaviourRiskExtractError.FacilityName, + + + vTempPrepBehaviourRiskExtractError.Date_Created, + vTempPrepBehaviourRiskExtractError.Date_Last_Modified + FROM vTempPrepBehaviourRiskExtractError INNER JOIN + ValidationError ON vTempPrepBehaviourRiskExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + migrationBuilder.Sql(@" + CREATE VIEW vTempPrepCareTerminationExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, + + + vTempPrepCareTerminationExtractError.PatientPK, + vTempPrepCareTerminationExtractError.FacilityId, + vTempPrepCareTerminationExtractError.PatientID, + vTempPrepCareTerminationExtractError.SiteCode, + vTempPrepCareTerminationExtractError.Emr, + vTempPrepCareTerminationExtractError.Project, + +vTempPrepCareTerminationExtractError.PrepNumber, +vTempPrepCareTerminationExtractError.HtsNumber, +vTempPrepCareTerminationExtractError.ExitDate, +vTempPrepCareTerminationExtractError.ExitReason, +vTempPrepCareTerminationExtractError.DateOfLastPrepDose, +vTempPrepCareTerminationExtractError.FacilityName, + + + vTempPrepCareTerminationExtractError.Date_Created, + vTempPrepCareTerminationExtractError.Date_Last_Modified + FROM vTempPrepCareTerminationExtractError INNER JOIN + ValidationError ON vTempPrepCareTerminationExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + migrationBuilder.Sql(@" + CREATE VIEW vTempPrepLabExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, + + + vTempPrepLabExtractError.PatientPK, + vTempPrepLabExtractError.FacilityId, + vTempPrepLabExtractError.PatientID, + vTempPrepLabExtractError.SiteCode, + vTempPrepLabExtractError.Emr, + vTempPrepLabExtractError.Project, +vTempPrepLabExtractError.PrepNumber, +vTempPrepLabExtractError.HtsNumber, +vTempPrepLabExtractError.VisitID, +vTempPrepLabExtractError.TestName, +vTempPrepLabExtractError.TestResult, +vTempPrepLabExtractError.SampleDate, +vTempPrepLabExtractError.TestResultDate, +vTempPrepLabExtractError.Reason, +vTempPrepLabExtractError.FacilityName, + + + + vTempPrepLabExtractError.Date_Created, + vTempPrepLabExtractError.Date_Last_Modified + FROM vTempPrepLabExtractError INNER JOIN + ValidationError ON vTempPrepLabExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + migrationBuilder.Sql(@" + CREATE VIEW vTempPrepPharmacyExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, + + + vTempPrepPharmacyExtractError.PatientPK, + vTempPrepPharmacyExtractError.FacilityId, + vTempPrepPharmacyExtractError.PatientID, + vTempPrepPharmacyExtractError.SiteCode, + vTempPrepPharmacyExtractError.Emr, + vTempPrepPharmacyExtractError.Project, + +vTempPrepPharmacyExtractError.PrepNumber, +vTempPrepPharmacyExtractError.HtsNumber, +vTempPrepPharmacyExtractError.VisitID, +vTempPrepPharmacyExtractError.RegimenPrescribed, +vTempPrepPharmacyExtractError.DispenseDate, +vTempPrepPharmacyExtractError.Duration, +vTempPrepPharmacyExtractError.FacilityName, + + + vTempPrepPharmacyExtractError.Date_Created, + vTempPrepPharmacyExtractError.Date_Last_Modified + FROM vTempPrepPharmacyExtractError INNER JOIN + ValidationError ON vTempPrepPharmacyExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + migrationBuilder.Sql(@" + CREATE VIEW vTempPrepVisitExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, + + + vTempPrepVisitExtractError.PatientPK, + vTempPrepVisitExtractError.FacilityId, + vTempPrepVisitExtractError.PatientID, + vTempPrepVisitExtractError.SiteCode, + vTempPrepVisitExtractError.Emr, + vTempPrepVisitExtractError.Project, +vTempPrepVisitExtractError.PrepNumber, +vTempPrepVisitExtractError.HtsNumber, +vTempPrepVisitExtractError.EncounterId, +vTempPrepVisitExtractError.VisitID, +vTempPrepVisitExtractError.VisitDate, +vTempPrepVisitExtractError.BloodPressure, +vTempPrepVisitExtractError.Temperature, +vTempPrepVisitExtractError.Weight, +vTempPrepVisitExtractError.Height, +vTempPrepVisitExtractError.BMI, +vTempPrepVisitExtractError.STIScreening, +vTempPrepVisitExtractError.STISymptoms, +vTempPrepVisitExtractError.STITreated, +vTempPrepVisitExtractError.Circumcised, +vTempPrepVisitExtractError.VMMCReferral, +vTempPrepVisitExtractError.LMP, +vTempPrepVisitExtractError.MenopausalStatus, +vTempPrepVisitExtractError.PregnantAtThisVisit, +vTempPrepVisitExtractError.EDD, +vTempPrepVisitExtractError.PlanningToGetPregnant, +vTempPrepVisitExtractError.PregnancyPlanned, +vTempPrepVisitExtractError.PregnancyEnded, +vTempPrepVisitExtractError.PregnancyEndDate, +vTempPrepVisitExtractError.PregnancyOutcome, +vTempPrepVisitExtractError.BirthDefects, +vTempPrepVisitExtractError.Breastfeeding, +vTempPrepVisitExtractError.FamilyPlanningStatus, +vTempPrepVisitExtractError.FPMethods, +vTempPrepVisitExtractError.AdherenceDone, +vTempPrepVisitExtractError.AdherenceOutcome, +vTempPrepVisitExtractError.AdherenceReasons, +vTempPrepVisitExtractError.SymptomsAcuteHIV, +vTempPrepVisitExtractError.ContraindicationsPrep, +vTempPrepVisitExtractError.PrepTreatmentPlan, +vTempPrepVisitExtractError.PrepPrescribed, +vTempPrepVisitExtractError.RegimenPrescribed, +vTempPrepVisitExtractError.MonthsPrescribed, +vTempPrepVisitExtractError.CondomsIssued, +vTempPrepVisitExtractError.Tobegivennextappointment, +vTempPrepVisitExtractError.Reasonfornotgivingnextappointment, +vTempPrepVisitExtractError.HepatitisBPositiveResult, +vTempPrepVisitExtractError.HepatitisCPositiveResult, +vTempPrepVisitExtractError.VaccinationForHepBStarted, +vTempPrepVisitExtractError.TreatedForHepB, +vTempPrepVisitExtractError.VaccinationForHepCStarted, +vTempPrepVisitExtractError.TreatedForHepC, +vTempPrepVisitExtractError.NextAppointment, +vTempPrepVisitExtractError.ClinicalNotes, +vTempPrepVisitExtractError.FacilityName, + + vTempPrepVisitExtractError.Date_Created, + vTempPrepVisitExtractError.Date_Last_Modified + FROM vTempPrepVisitExtractError INNER JOIN + ValidationError ON vTempPrepVisitExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220429065701_HeiRevise.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220429065701_HeiRevise.Designer.cs new file mode 100644 index 00000000..2fc4f1b8 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220429065701_HeiRevise.Designer.cs @@ -0,0 +1,11055 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220429065701_HeiRevise")] + partial class HeiRevise + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220429065701_HeiRevise.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220429065701_HeiRevise.cs new file mode 100644 index 00000000..d7b30778 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220429065701_HeiRevise.cs @@ -0,0 +1,182 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HeiRevise : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "FinalyAntibody", + table: "TempHeiExtracts", + nullable: true, + oldClrType: typeof(DateTime), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "DNAPCR3", + table: "TempHeiExtracts", + nullable: true, + oldClrType: typeof(DateTime), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "DNAPCR2", + table: "TempHeiExtracts", + nullable: true, + oldClrType: typeof(DateTime), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "DNAPCR1", + table: "TempHeiExtracts", + nullable: true, + oldClrType: typeof(DateTime), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ConfirmatoryPCR", + table: "TempHeiExtracts", + nullable: true, + oldClrType: typeof(DateTime), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "BasellineVL", + table: "TempHeiExtracts", + nullable: true, + oldClrType: typeof(DateTime), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "FinalyAntibody", + table: "HeiExtracts", + nullable: true, + oldClrType: typeof(DateTime), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "DNAPCR3", + table: "HeiExtracts", + nullable: true, + oldClrType: typeof(DateTime), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "DNAPCR2", + table: "HeiExtracts", + nullable: true, + oldClrType: typeof(DateTime), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "DNAPCR1", + table: "HeiExtracts", + nullable: true, + oldClrType: typeof(DateTime), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ConfirmatoryPCR", + table: "HeiExtracts", + nullable: true, + oldClrType: typeof(DateTime), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "BasellineVL", + table: "HeiExtracts", + nullable: true, + oldClrType: typeof(DateTime), + oldNullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "FinalyAntibody", + table: "TempHeiExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "DNAPCR3", + table: "TempHeiExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "DNAPCR2", + table: "TempHeiExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "DNAPCR1", + table: "TempHeiExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ConfirmatoryPCR", + table: "TempHeiExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "BasellineVL", + table: "TempHeiExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "FinalyAntibody", + table: "HeiExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "DNAPCR3", + table: "HeiExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "DNAPCR2", + table: "HeiExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "DNAPCR1", + table: "HeiExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "ConfirmatoryPCR", + table: "HeiExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "BasellineVL", + table: "HeiExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220429065941_HeiReviseView.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220429065941_HeiReviseView.Designer.cs new file mode 100644 index 00000000..0de85be3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220429065941_HeiReviseView.Designer.cs @@ -0,0 +1,11055 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220429065941_HeiReviseView")] + partial class HeiReviseView + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220429065941_HeiReviseView.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220429065941_HeiReviseView.cs new file mode 100644 index 00000000..6ae7e764 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220429065941_HeiReviseView.cs @@ -0,0 +1,53 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HeiReviseView : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.Sql(@" + ALTER VIEW vTempHeiExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, +vTempHeiExtractError.BasellineVL, +vTempHeiExtractError.BasellineVLDate, +vTempHeiExtractError.ConfirmatoryPCR, +vTempHeiExtractError.ConfirmatoryPCRDate, +vTempHeiExtractError.Date_Created, +vTempHeiExtractError.Date_Last_Modified, +vTempHeiExtractError.DateExtracted, +vTempHeiExtractError.DNAPCR1, +vTempHeiExtractError.DNAPCR1Date, +vTempHeiExtractError.DNAPCR2, +vTempHeiExtractError.DNAPCR2Date, +vTempHeiExtractError.DNAPCR3, +vTempHeiExtractError.DNAPCR3Date, +vTempHeiExtractError.Emr, +vTempHeiExtractError.ErrorType, +vTempHeiExtractError.FacilityId, +vTempHeiExtractError.FacilityName, +vTempHeiExtractError.FinalyAntibody, +vTempHeiExtractError.FinalyAntibodyDate, +vTempHeiExtractError.HEIExitCritearia, +vTempHeiExtractError.HEIExitDate, +vTempHeiExtractError.HEIHIVStatus, +vTempHeiExtractError.PatientID, +vTempHeiExtractError.PatientMnchID, +vTempHeiExtractError.PatientPK, +vTempHeiExtractError.Project, +vTempHeiExtractError.SiteCode + + + FROM vTempHeiExtractError INNER JOIN + ValidationError ON vTempHeiExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103259_CrsInitial.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103259_CrsInitial.Designer.cs new file mode 100644 index 00000000..bf0654a0 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103259_CrsInitial.Designer.cs @@ -0,0 +1,11271 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220511103259_CrsInitial")] + partial class CrsInitial + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103259_CrsInitial.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103259_CrsInitial.cs new file mode 100644 index 00000000..a77173df --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103259_CrsInitial.cs @@ -0,0 +1,147 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class CrsInitial : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "ClientRegistryExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: false), + SiteCode = table.Column(nullable: false), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + Processed = table.Column(nullable: true), + QueueId = table.Column(nullable: true), + Status = table.Column(nullable: true), + StatusDate = table.Column(nullable: true), + DateExtracted = table.Column(nullable: true), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + Date_Created = table.Column(nullable: true), + Date_Last_Modified = table.Column(nullable: true), + CCCNumber = table.Column(nullable: true), + NationalId = table.Column(nullable: true), + Passport = table.Column(nullable: true), + HudumaNumber = table.Column(nullable: true), + BirthCertificateNumber = table.Column(nullable: true), + AlienIdNo = table.Column(nullable: true), + DrivingLicenseNumber = table.Column(nullable: true), + PatientClinicNumber = table.Column(nullable: true), + FirstName = table.Column(nullable: true), + MiddleName = table.Column(nullable: true), + LastName = table.Column(nullable: true), + DateOfBirth = table.Column(nullable: true), + Sex = table.Column(nullable: true), + MaritalStatus = table.Column(nullable: true), + Occupation = table.Column(nullable: true), + HighestLevelOfEducation = table.Column(nullable: true), + PhoneNumber = table.Column(nullable: true), + AlternativePhoneNumber = table.Column(nullable: true), + SpousePhoneNumber = table.Column(nullable: true), + NameOfNextOfKin = table.Column(nullable: true), + NextOfKinRelationship = table.Column(nullable: true), + NextOfKinTelNo = table.Column(nullable: true), + County = table.Column(nullable: true), + SubCounty = table.Column(nullable: true), + Ward = table.Column(nullable: true), + Location = table.Column(nullable: true), + Village = table.Column(nullable: true), + Landmark = table.Column(nullable: true), + FacilityName = table.Column(nullable: true), + MFLCode = table.Column(nullable: true), + DateOfInitiation = table.Column(nullable: true), + TreatmentOutcome = table.Column(nullable: true), + DateOfLastEncounter = table.Column(nullable: true), + DateOfLastViralLoad = table.Column(nullable: true), + NextAppointmentDate = table.Column(nullable: true), + LastRegimen = table.Column(nullable: true), + LastRegimenLine = table.Column(nullable: true), + CurrentOnART = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_ClientRegistryExtracts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "TempClientRegistryExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + PatientPK = table.Column(nullable: true), + PatientID = table.Column(nullable: true), + FacilityId = table.Column(nullable: true), + SiteCode = table.Column(nullable: true), + DateExtracted = table.Column(nullable: false), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + CheckError = table.Column(nullable: false), + ErrorType = table.Column(nullable: false), + CCCNumber = table.Column(nullable: true), + NationalId = table.Column(nullable: true), + Passport = table.Column(nullable: true), + HudumaNumber = table.Column(nullable: true), + BirthCertificateNumber = table.Column(nullable: true), + AlienIdNo = table.Column(nullable: true), + DrivingLicenseNumber = table.Column(nullable: true), + PatientClinicNumber = table.Column(nullable: true), + FirstName = table.Column(nullable: true), + MiddleName = table.Column(nullable: true), + LastName = table.Column(nullable: true), + DateOfBirth = table.Column(nullable: true), + Sex = table.Column(nullable: true), + MaritalStatus = table.Column(nullable: true), + Occupation = table.Column(nullable: true), + HighestLevelOfEducation = table.Column(nullable: true), + PhoneNumber = table.Column(nullable: true), + AlternativePhoneNumber = table.Column(nullable: true), + SpousePhoneNumber = table.Column(nullable: true), + NameOfNextOfKin = table.Column(nullable: true), + NextOfKinRelationship = table.Column(nullable: true), + NextOfKinTelNo = table.Column(nullable: true), + County = table.Column(nullable: true), + SubCounty = table.Column(nullable: true), + Ward = table.Column(nullable: true), + Location = table.Column(nullable: true), + Village = table.Column(nullable: true), + Landmark = table.Column(nullable: true), + FacilityName = table.Column(nullable: true), + MFLCode = table.Column(nullable: true), + DateOfInitiation = table.Column(nullable: true), + TreatmentOutcome = table.Column(nullable: true), + DateOfLastEncounter = table.Column(nullable: true), + DateOfLastViralLoad = table.Column(nullable: true), + NextAppointmentDate = table.Column(nullable: true), + LastRegimen = table.Column(nullable: true), + LastRegimenLine = table.Column(nullable: true), + CurrentOnART = table.Column(nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_TempClientRegistryExtracts", x => x.Id); + }); + if (migrationBuilder.ActiveProvider.ToLower().Contains("MySql".ToLower())) + { + migrationBuilder.Sql(@"SET FOREIGN_KEY_CHECKS = 0;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.ClientRegistryExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql($@"alter table {nameof(ExtractsContext.TempClientRegistryExtracts)} convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql(@"SET FOREIGN_KEY_CHECKS = 1;"); + } + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "ClientRegistryExtracts"); + + migrationBuilder.DropTable( + name: "TempClientRegistryExtracts"); + } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103424_CrsInitialViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103424_CrsInitialViews.Designer.cs new file mode 100644 index 00000000..11ea95b3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103424_CrsInitialViews.Designer.cs @@ -0,0 +1,11271 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220511103424_CrsInitialViews")] + partial class CrsInitialViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103424_CrsInitialViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103424_CrsInitialViews.cs new file mode 100644 index 00000000..98587f97 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103424_CrsInitialViews.cs @@ -0,0 +1,73 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class CrsInitialViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.Sql(@"create view vTempClientRegistryExtractError as SELECT * FROM TempClientRegistryExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@" + CREATE VIEW vTempClientRegistryExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, + + vTempClientRegistryExtractError.AlienIdNo, + vTempClientRegistryExtractError.AlternativePhoneNumber, + vTempClientRegistryExtractError.BirthCertificateNumber, + vTempClientRegistryExtractError.CCCNumber, + vTempClientRegistryExtractError.County, + vTempClientRegistryExtractError.DateOfBirth, + vTempClientRegistryExtractError.DateOfInitiation, + vTempClientRegistryExtractError.DateOfLastEncounter, + vTempClientRegistryExtractError.DateOfLastViralLoad, + vTempClientRegistryExtractError.DrivingLicenseNumber, + vTempClientRegistryExtractError.Emr, + vTempClientRegistryExtractError.FacilityId, + vTempClientRegistryExtractError.FacilityName, + vTempClientRegistryExtractError.FirstName, + vTempClientRegistryExtractError.HighestLevelOfEducation, + vTempClientRegistryExtractError.HudumaNumber, + vTempClientRegistryExtractError.Landmark, + vTempClientRegistryExtractError.LastName, + vTempClientRegistryExtractError.LastRegimen, + vTempClientRegistryExtractError.LastRegimenLine, + vTempClientRegistryExtractError.Location, + vTempClientRegistryExtractError.MaritalStatus, + vTempClientRegistryExtractError.MFLCode, + vTempClientRegistryExtractError.MiddleName, + vTempClientRegistryExtractError.NameOfNextOfKin, + vTempClientRegistryExtractError.NationalId, + vTempClientRegistryExtractError.NextAppointmentDate, + vTempClientRegistryExtractError.NextOfKinRelationship, + vTempClientRegistryExtractError.NextOfKinTelNo, + vTempClientRegistryExtractError.Occupation, + vTempClientRegistryExtractError.Passport, + vTempClientRegistryExtractError.PatientClinicNumber, + vTempClientRegistryExtractError.PatientPK, + vTempClientRegistryExtractError.PhoneNumber, + vTempClientRegistryExtractError.Project, + vTempClientRegistryExtractError.Sex, + vTempClientRegistryExtractError.SiteCode, + vTempClientRegistryExtractError.SpousePhoneNumber, + vTempClientRegistryExtractError.SubCounty, + vTempClientRegistryExtractError.TreatmentOutcome, + vTempClientRegistryExtractError.Village, + vTempClientRegistryExtractError.Ward, + vTempClientRegistryExtractError.CurrentOnART + + + FROM vTempClientRegistryExtractError INNER JOIN + ValidationError ON vTempClientRegistryExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084425_CrsHIVConfirmedVLResult.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084425_CrsHIVConfirmedVLResult.Designer.cs new file mode 100644 index 00000000..89615806 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084425_CrsHIVConfirmedVLResult.Designer.cs @@ -0,0 +1,11279 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220518084425_CrsHIVConfirmedVLResult")] + partial class CrsHIVConfirmedVLResult + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084425_CrsHIVConfirmedVLResult.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084425_CrsHIVConfirmedVLResult.cs new file mode 100644 index 00000000..247dc929 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084425_CrsHIVConfirmedVLResult.cs @@ -0,0 +1,50 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class CrsHIVConfirmedVLResult : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "DateOfHIVdiagnosis", + table: "TempClientRegistryExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "LastViralLoadResult", + table: "TempClientRegistryExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "DateOfHIVdiagnosis", + table: "ClientRegistryExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "LastViralLoadResult", + table: "ClientRegistryExtracts", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "DateOfHIVdiagnosis", + table: "TempClientRegistryExtracts"); + + migrationBuilder.DropColumn( + name: "LastViralLoadResult", + table: "TempClientRegistryExtracts"); + + migrationBuilder.DropColumn( + name: "DateOfHIVdiagnosis", + table: "ClientRegistryExtracts"); + + migrationBuilder.DropColumn( + name: "LastViralLoadResult", + table: "ClientRegistryExtracts"); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084653_CrsHIVConfirmedVLResultViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084653_CrsHIVConfirmedVLResultViews.Designer.cs new file mode 100644 index 00000000..00c55ee1 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084653_CrsHIVConfirmedVLResultViews.Designer.cs @@ -0,0 +1,11279 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220518084653_CrsHIVConfirmedVLResultViews")] + partial class CrsHIVConfirmedVLResultViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("RecordId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempContactListingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084653_CrsHIVConfirmedVLResultViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084653_CrsHIVConfirmedVLResultViews.cs new file mode 100644 index 00000000..089a002e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084653_CrsHIVConfirmedVLResultViews.cs @@ -0,0 +1,76 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class CrsHIVConfirmedVLResultViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.Sql(@"alter view vTempClientRegistryExtractError as SELECT * FROM TempClientRegistryExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@" + ALTER VIEW vTempClientRegistryExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, + + vTempClientRegistryExtractError.AlienIdNo, + vTempClientRegistryExtractError.AlternativePhoneNumber, + vTempClientRegistryExtractError.BirthCertificateNumber, + vTempClientRegistryExtractError.CCCNumber, + vTempClientRegistryExtractError.County, + vTempClientRegistryExtractError.DateOfBirth, + vTempClientRegistryExtractError.DateOfInitiation, + vTempClientRegistryExtractError.DateOfLastEncounter, + vTempClientRegistryExtractError.DateOfLastViralLoad, + vTempClientRegistryExtractError.DrivingLicenseNumber, + vTempClientRegistryExtractError.Emr, + vTempClientRegistryExtractError.FacilityId, + vTempClientRegistryExtractError.FacilityName, + vTempClientRegistryExtractError.FirstName, + vTempClientRegistryExtractError.HighestLevelOfEducation, + vTempClientRegistryExtractError.HudumaNumber, + vTempClientRegistryExtractError.Landmark, + vTempClientRegistryExtractError.LastName, + vTempClientRegistryExtractError.LastRegimen, + vTempClientRegistryExtractError.LastRegimenLine, + vTempClientRegistryExtractError.Location, + vTempClientRegistryExtractError.MaritalStatus, + vTempClientRegistryExtractError.MFLCode, + vTempClientRegistryExtractError.MiddleName, + vTempClientRegistryExtractError.NameOfNextOfKin, + vTempClientRegistryExtractError.NationalId, + vTempClientRegistryExtractError.NextAppointmentDate, + vTempClientRegistryExtractError.NextOfKinRelationship, + vTempClientRegistryExtractError.NextOfKinTelNo, + vTempClientRegistryExtractError.Occupation, + vTempClientRegistryExtractError.Passport, + vTempClientRegistryExtractError.PatientClinicNumber, + vTempClientRegistryExtractError.PatientPK, + vTempClientRegistryExtractError.PhoneNumber, + vTempClientRegistryExtractError.Project, + vTempClientRegistryExtractError.Sex, + vTempClientRegistryExtractError.SiteCode, + vTempClientRegistryExtractError.SpousePhoneNumber, + vTempClientRegistryExtractError.SubCounty, + vTempClientRegistryExtractError.TreatmentOutcome, + vTempClientRegistryExtractError.Village, + vTempClientRegistryExtractError.Ward, + vTempClientRegistryExtractError.CurrentOnART, + vTempClientRegistryExtractError.DateOfHIVdiagnosis, + vTempClientRegistryExtractError.LastViralLoadResult + + + FROM vTempClientRegistryExtractError INNER JOIN + ValidationError ON vTempClientRegistryExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + } + + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130616_CtContactPatientPK.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130616_CtContactPatientPK.Designer.cs new file mode 100644 index 00000000..c05b1310 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130616_CtContactPatientPK.Designer.cs @@ -0,0 +1,11169 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220608130616_CtContactPatientPK")] + partial class CtContactPatientPK + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130616_CtContactPatientPK.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130616_CtContactPatientPK.cs new file mode 100644 index 00000000..73f7f98a --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130616_CtContactPatientPK.cs @@ -0,0 +1,33 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class CtContactPatientPK : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "ContactPatientPK", + table: "TempContactListingExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "ContactPatientPK", + table: "ContactListingExtracts", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "ContactPatientPK", + table: "TempContactListingExtracts"); + + migrationBuilder.DropColumn( + name: "ContactPatientPK", + table: "ContactListingExtracts"); + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130828_CtContactPatientPKViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130828_CtContactPatientPKViews.Designer.cs new file mode 100644 index 00000000..dd738e44 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130828_CtContactPatientPKViews.Designer.cs @@ -0,0 +1,11169 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220608130828_CtContactPatientPKViews")] + partial class CtContactPatientPKViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130828_CtContactPatientPKViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130828_CtContactPatientPKViews.cs new file mode 100644 index 00000000..ef8a5af5 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130828_CtContactPatientPKViews.cs @@ -0,0 +1,54 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class CtContactPatientPKViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.Sql(@"alter view vTempContactListingExtractError as SELECT * FROM TempContactListingExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql(@" + + ALTER VIEW vTempContactListingExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, ValidationError.RecordId, + + vTempContactListingExtractError.PatientPK, + vTempContactListingExtractError.PatientID, + vTempContactListingExtractError.FacilityId, + vTempContactListingExtractError.SiteCode, + vTempContactListingExtractError.DateExtracted, + vTempContactListingExtractError.Emr, + vTempContactListingExtractError.Project, + vTempContactListingExtractError.CheckError, + vTempContactListingExtractError.ErrorType, + vTempContactListingExtractError.FacilityName, + vTempContactListingExtractError.PartnerPersonID, + vTempContactListingExtractError.ContactAge, + vTempContactListingExtractError.ContactSex, + vTempContactListingExtractError.ContactMaritalStatus, + vTempContactListingExtractError.RelationshipWithPatient, + vTempContactListingExtractError.ScreenedForIpv, + vTempContactListingExtractError.IpvScreening, + vTempContactListingExtractError.IPVScreeningOutcome, + vTempContactListingExtractError.CurrentlyLivingWithIndexClient, + vTempContactListingExtractError.KnowledgeOfHivStatus, + vTempContactListingExtractError.PnsApproach, + vTempContactListingExtractError.Date_Created, + vTempContactListingExtractError.Date_Last_Modified, + vTempContactListingExtractError.ContactPatientPK + + FROM vTempContactListingExtractError INNER JOIN + ValidationError ON vTempContactListingExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220629125019_HtsMnchDwhPrep_ExtractsNUPI.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220629125019_HtsMnchDwhPrep_ExtractsNUPI.Designer.cs new file mode 100644 index 00000000..1801354a --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220629125019_HtsMnchDwhPrep_ExtractsNUPI.Designer.cs @@ -0,0 +1,11193 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220629125019_HtsMnchDwhPrep_ExtractsNUPI")] + partial class HtsMnchDwhPrep_ExtractsNUPI + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220629125019_HtsMnchDwhPrep_ExtractsNUPI.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220629125019_HtsMnchDwhPrep_ExtractsNUPI.cs new file mode 100644 index 00000000..8a24cc65 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220629125019_HtsMnchDwhPrep_ExtractsNUPI.cs @@ -0,0 +1,87 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsMnchDwhPrep_ExtractsNUPI : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + + migrationBuilder.AddColumn( + name: "NUPI", + table: "TempPatientPrepExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "NUPI", + table: "TempPatientMnchExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "NUPI", + table: "TempPatientExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "NUPI", + table: "TempHtsClientExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "NUPI", + table: "PatientPrepExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "NUPI", + table: "PatientMnchExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "NUPI", + table: "PatientExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "NUPI", + table: "HtsClientExtracts", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + migrationBuilder.DropColumn( + name: "NUPI", + table: "TempPatientPrepExtracts"); + + migrationBuilder.DropColumn( + name: "NUPI", + table: "TempPatientMnchExtracts"); + + migrationBuilder.DropColumn( + name: "NUPI", + table: "TempPatientExtracts"); + + migrationBuilder.DropColumn( + name: "NUPI", + table: "TempHtsClientExtracts"); + + migrationBuilder.DropColumn( + name: "NUPI", + table: "PatientPrepExtracts"); + + migrationBuilder.DropColumn( + name: "NUPI", + table: "PatientMnchExtracts"); + + migrationBuilder.DropColumn( + name: "NUPI", + table: "PatientExtracts"); + + migrationBuilder.DropColumn( + name: "NUPI", + table: "HtsClientExtracts"); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220629130047_HtsMnchDwhPrep_ExtractsNUPIViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220629130047_HtsMnchDwhPrep_ExtractsNUPIViews.Designer.cs new file mode 100644 index 00000000..49221a97 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220629130047_HtsMnchDwhPrep_ExtractsNUPIViews.Designer.cs @@ -0,0 +1,11193 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220629130047_HtsMnchDwhPrep_ExtractsNUPIViews")] + partial class HtsMnchDwhPrep_ExtractsNUPIViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220629130047_HtsMnchDwhPrep_ExtractsNUPIViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220629130047_HtsMnchDwhPrep_ExtractsNUPIViews.cs new file mode 100644 index 00000000..99b68968 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220629130047_HtsMnchDwhPrep_ExtractsNUPIViews.cs @@ -0,0 +1,156 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsMnchDwhPrep_ExtractsNUPIViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.Sql(@"alter view vTempPatientPrepExtractError as SELECT * FROM TempPatientPrepExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql(@" + ALTER VIEW vTempPatientPrepExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, ValidationError.RecordId, + + vTempPatientPrepExtractError.PatientPK, + vTempPatientPrepExtractError.FacilityId, + vTempPatientPrepExtractError.PatientID, + vTempPatientPrepExtractError.SiteCode, + vTempPatientPrepExtractError.Emr, + vTempPatientPrepExtractError.Project, + + vTempPatientPrepExtractError.PrepNumber, + vTempPatientPrepExtractError.HtsNumber, + vTempPatientPrepExtractError.PrepEnrollmentDate, + vTempPatientPrepExtractError.Sex, + vTempPatientPrepExtractError.DateofBirth, + vTempPatientPrepExtractError.CountyofBirth, + vTempPatientPrepExtractError.County, + vTempPatientPrepExtractError.SubCounty, + vTempPatientPrepExtractError.Location, + vTempPatientPrepExtractError.LandMark, + vTempPatientPrepExtractError.Ward, + vTempPatientPrepExtractError.ClientType, + vTempPatientPrepExtractError.ReferralPoint, + vTempPatientPrepExtractError.MaritalStatus, + vTempPatientPrepExtractError.Inschool, + vTempPatientPrepExtractError.PopulationType, + vTempPatientPrepExtractError.KeyPopulationType, + vTempPatientPrepExtractError.Refferedfrom, + vTempPatientPrepExtractError.TransferIn, + vTempPatientPrepExtractError.TransferInDate, + vTempPatientPrepExtractError.TransferFromFacility, + vTempPatientPrepExtractError.DatefirstinitiatedinPrepCare, + vTempPatientPrepExtractError.DateStartedPrEPattransferringfacility, + vTempPatientPrepExtractError.ClientPreviouslyonPrep, + vTempPatientPrepExtractError.PrevPrepReg, + vTempPatientPrepExtractError.DateLastUsedPrev, + + vTempPatientPrepExtractError.Date_Created, + vTempPatientPrepExtractError.Date_Last_Modified, + vTempPatientPrepExtractError.NUPI + + FROM vTempPatientPrepExtractError INNER JOIN + ValidationError ON vTempPatientPrepExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + migrationBuilder.Sql(@"alter view vTempPatientMnchExtractError as SELECT * FROM TempPatientMnchExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql(@" + ALTER VIEW vTempPatientMnchExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, ValidationError.RecordId, + + vTempPatientMnchExtractError.Date_Created, + vTempPatientMnchExtractError.Date_Last_Modified, + vTempPatientMnchExtractError.DateExtracted, + vTempPatientMnchExtractError.DOB, + vTempPatientMnchExtractError.EducationLevel, + vTempPatientMnchExtractError.Emr, + vTempPatientMnchExtractError.ErrorType, + vTempPatientMnchExtractError.FacilityId, + vTempPatientMnchExtractError.FacilityName, + vTempPatientMnchExtractError.FirstEnrollmentAtMnch, + vTempPatientMnchExtractError.Gender, + + vTempPatientMnchExtractError.InSchool, + vTempPatientMnchExtractError.MaritalStatus, + vTempPatientMnchExtractError.Occupation, + vTempPatientMnchExtractError.PatientHeiID, + vTempPatientMnchExtractError.PatientID, + vTempPatientMnchExtractError.PatientMnchID, + vTempPatientMnchExtractError.PatientPK, + vTempPatientMnchExtractError.PatientResidentCounty, + vTempPatientMnchExtractError.PatientResidentSubCounty, + vTempPatientMnchExtractError.PatientResidentWard, + vTempPatientMnchExtractError.Pkv, + vTempPatientMnchExtractError.Project, + vTempPatientMnchExtractError.SiteCode, + vTempPatientMnchExtractError.NUPI + + FROM vTempPatientMnchExtractError INNER JOIN + ValidationError ON vTempPatientMnchExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + + migrationBuilder.Sql(@"alter view vTempPatientExtractError as SELECT * FROM TempPatientExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql(@" + + ALTER VIEW vTempPatientExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, ValidationError.RecordId, + + vTempPatientExtractError.PatientID, + vTempPatientExtractError.FacilityName, + vTempPatientExtractError.Gender, + vTempPatientExtractError.DOB, + vTempPatientExtractError.RegistrationDate, + vTempPatientExtractError.RegistrationAtCCC, + vTempPatientExtractError.RegistrationATPMTCT, + vTempPatientExtractError.RegistrationAtTBClinic, + vTempPatientExtractError.PatientSource, + vTempPatientExtractError.Region, + vTempPatientExtractError.District, + vTempPatientExtractError.Village, + vTempPatientExtractError.ContactRelation, + vTempPatientExtractError.LastVisit, + vTempPatientExtractError.MaritalStatus, + vTempPatientExtractError.EducationLevel, + vTempPatientExtractError.DateConfirmedHIVPositive, + vTempPatientExtractError.PreviousARTExposure, + vTempPatientExtractError.StatusAtCCC, + vTempPatientExtractError.StatusAtPMTCT, + vTempPatientExtractError.StatusAtTBClinic, + + vTempPatientExtractError.Orphan, + vTempPatientExtractError.Inschool, + vTempPatientExtractError.PatientType, + vTempPatientExtractError.PopulationType, + vTempPatientExtractError.KeyPopulationType, + vTempPatientExtractError.PatientResidentCounty, + vTempPatientExtractError.PatientResidentSubCounty, + vTempPatientExtractError.PatientResidentLocation, + vTempPatientExtractError.PatientResidentSubLocation, + vTempPatientExtractError.PatientResidentWard , + vTempPatientExtractError.PatientResidentVillage, + vTempPatientExtractError.TransferInDate, + vTempPatientExtractError.Date_Created, + vTempPatientExtractError.Date_Last_Modified, + vTempPatientExtractError.Pkv, + vTempPatientExtractError.Occupation, + vTempPatientExtractError.NUPI + + FROM vTempPatientExtractError INNER JOIN + ValidationError ON vTempPatientExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220630063059_HtsClientsNUPI.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220630063059_HtsClientsNUPI.Designer.cs new file mode 100644 index 00000000..d1a231d3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220630063059_HtsClientsNUPI.Designer.cs @@ -0,0 +1,11201 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220630063059_HtsClientsNUPI")] + partial class HtsClientsNUPI + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220630063059_HtsClientsNUPI.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220630063059_HtsClientsNUPI.cs new file mode 100644 index 00000000..d45e5b1c --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220630063059_HtsClientsNUPI.cs @@ -0,0 +1,31 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsClientsNUPI : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "NUPI", + table: "TempHtsClientsExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "NUPI", + table: "HtsClientsExtracts", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "NUPI", + table: "TempHtsClientsExtracts"); + + migrationBuilder.DropColumn( + name: "NUPI", + table: "HtsClientsExtracts"); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220630063159_HtsClientsNUPIViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220630063159_HtsClientsNUPIViews.Designer.cs new file mode 100644 index 00000000..c7e41719 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220630063159_HtsClientsNUPIViews.Designer.cs @@ -0,0 +1,11201 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220630063159_HtsClientsNUPIViews")] + partial class HtsClientsNUPIViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220630063159_HtsClientsNUPIViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220630063159_HtsClientsNUPIViews.cs new file mode 100644 index 00000000..2bec05a9 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220630063159_HtsClientsNUPIViews.cs @@ -0,0 +1,44 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsClientsNUPIViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + + migrationBuilder.Sql(@"alter view vTempHtsClientsExtractError as SELECT * FROM TempHtsClientsExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql(@" + + ALTER VIEW vTempHtsClientsExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, ValidationError.RecordId, + + vTempHtsClientsExtractError.FacilityName, + vTempHtsClientsExtractError.HtsNumber, + vTempHtsClientsExtractError.PatientPK, + vTempHtsClientsExtractError.SiteCode, + vTempHtsClientsExtractError.Dob, + vTempHtsClientsExtractError.Gender, + vTempHtsClientsExtractError.MaritalStatus, + vTempHtsClientsExtractError.PopulationType, + vTempHtsClientsExtractError.KeyPopulationType, + vTempHtsClientsExtractError.PatientDisabled, + vTempHtsClientsExtractError.County, + vTempHtsClientsExtractError.SubCounty, + vTempHtsClientsExtractError.Ward, + vTempHtsClientsExtractError.NUPI + FROM vTempHtsClientsExtractError INNER JOIN + ValidationError ON vTempHtsClientsExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220705090555_HtsClientsPkv.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220705090555_HtsClientsPkv.Designer.cs new file mode 100644 index 00000000..7ae73b36 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220705090555_HtsClientsPkv.Designer.cs @@ -0,0 +1,11217 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220705090555_HtsClientsPkv")] + partial class HtsClientsPkv + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220705090555_HtsClientsPkv.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220705090555_HtsClientsPkv.cs new file mode 100644 index 00000000..25fef440 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220705090555_HtsClientsPkv.cs @@ -0,0 +1,49 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsClientsPkv : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "Pkv", + table: "TempHtsClientsExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "Pkv", + table: "TempHtsClientExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "Pkv", + table: "HtsClientsExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "Pkv", + table: "HtsClientExtracts", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Pkv", + table: "TempHtsClientsExtracts"); + + migrationBuilder.DropColumn( + name: "Pkv", + table: "TempHtsClientExtracts"); + + migrationBuilder.DropColumn( + name: "Pkv", + table: "HtsClientsExtracts"); + + migrationBuilder.DropColumn( + name: "Pkv", + table: "HtsClientExtracts"); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220705091011_HtsClientsPkvViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220705091011_HtsClientsPkvViews.Designer.cs new file mode 100644 index 00000000..e918b136 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220705091011_HtsClientsPkvViews.Designer.cs @@ -0,0 +1,11217 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220705091011_HtsClientsPkvViews")] + partial class HtsClientsPkvViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220705091011_HtsClientsPkvViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220705091011_HtsClientsPkvViews.cs new file mode 100644 index 00000000..b358300e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220705091011_HtsClientsPkvViews.cs @@ -0,0 +1,43 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsClientsPkvViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + + migrationBuilder.Sql(@"alter view vTempHtsClientsExtractError as SELECT * FROM TempHtsClientsExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql(@" + + ALTER VIEW vTempHtsClientsExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, ValidationError.RecordId, + + vTempHtsClientsExtractError.FacilityName, + vTempHtsClientsExtractError.HtsNumber, + vTempHtsClientsExtractError.PatientPK, + vTempHtsClientsExtractError.SiteCode, + vTempHtsClientsExtractError.Dob, + vTempHtsClientsExtractError.Gender, + vTempHtsClientsExtractError.MaritalStatus, + vTempHtsClientsExtractError.PopulationType, + vTempHtsClientsExtractError.KeyPopulationType, + vTempHtsClientsExtractError.PatientDisabled, + vTempHtsClientsExtractError.County, + vTempHtsClientsExtractError.SubCounty, + vTempHtsClientsExtractError.Ward, + vTempHtsClientsExtractError.NUPI, + vTempHtsClientsExtractError.Pkv + FROM vTempHtsClientsExtractError INNER JOIN + ValidationError ON vTempHtsClientsExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220706085536_HtsEligibilityInitial.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220706085536_HtsEligibilityInitial.Designer.cs new file mode 100644 index 00000000..995f5ef1 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220706085536_HtsEligibilityInitial.Designer.cs @@ -0,0 +1,11469 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220706085536_HtsEligibilityInitial")] + partial class HtsEligibilityInitial + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTested"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NumberPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTested"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NumberPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220706085536_HtsEligibilityInitial.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220706085536_HtsEligibilityInitial.cs new file mode 100644 index 00000000..26816225 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220706085536_HtsEligibilityInitial.cs @@ -0,0 +1,158 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsEligibilityInitial : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "HtsEligibilityExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + FacilityName = table.Column(nullable: true), + SiteCode = table.Column(nullable: false), + PatientPk = table.Column(nullable: false), + HtsNumber = table.Column(nullable: true), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + Processed = table.Column(nullable: true), + QueueId = table.Column(nullable: true), + Status = table.Column(nullable: true), + StatusDate = table.Column(nullable: true), + DateExtracted = table.Column(nullable: true), + VisitID = table.Column(nullable: true), + EncounterId = table.Column(nullable: true), + VisitDate = table.Column(nullable: true), + PopulationType = table.Column(nullable: true), + KeyPopulation = table.Column(nullable: true), + PriorityPopulation = table.Column(nullable: true), + Department = table.Column(nullable: true), + PatientType = table.Column(nullable: true), + IsHealthWorker = table.Column(nullable: true), + RelationshipWithContact = table.Column(nullable: true), + TestedHIVBefore = table.Column(nullable: true), + WhoPerformedTest = table.Column(nullable: true), + ResultOfHIV = table.Column(nullable: true), + DateTested = table.Column(nullable: true), + StartedOnART = table.Column(nullable: true), + CCCNumber = table.Column(nullable: true), + EverHadSex = table.Column(nullable: true), + SexuallyActive = table.Column(nullable: true), + NewPartner = table.Column(nullable: true), + PartnerHivStatus = table.Column(nullable: true), + CoupleDiscordant = table.Column(nullable: true), + MultiplePartners = table.Column(nullable: true), + NumberPartners = table.Column(nullable: true), + AlcoholSex = table.Column(nullable: true), + MoneySex = table.Column(nullable: true), + CondomBurst = table.Column(nullable: true), + UnknownStatusPartner = table.Column(nullable: true), + KnownStatusPartner = table.Column(nullable: true), + Pregnant = table.Column(nullable: true), + BreastfeedingMother = table.Column(nullable: true), + ExperiencedGBV = table.Column(nullable: true), + PhysicalViolence = table.Column(nullable: true), + SexualViolence = table.Column(nullable: true), + EverOnPrep = table.Column(nullable: true), + CurrentlyOnPrep = table.Column(nullable: true), + EverOnPep = table.Column(nullable: true), + CurrentlyOnPep = table.Column(nullable: true), + EverHadSTI = table.Column(nullable: true), + CurrentlyHasSTI = table.Column(nullable: true), + EverHadTB = table.Column(nullable: true), + CurrentlyHasTB = table.Column(nullable: true), + SharedNeedle = table.Column(nullable: true), + NeedleStickInjuries = table.Column(nullable: true), + TraditionalProcedures = table.Column(nullable: true), + ChildReasonsForIneligibility = table.Column(nullable: true), + EligibleForTest = table.Column(nullable: true), + ReasonsForIneligibility = table.Column(nullable: true), + SpecificReasonForIneligibility = table.Column(nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_HtsEligibilityExtracts", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "TempHtsEligibilityExtracts", + columns: table => new + { + Id = table.Column(nullable: false), + FacilityName = table.Column(nullable: true), + SiteCode = table.Column(nullable: true), + PatientPk = table.Column(nullable: true), + HtsNumber = table.Column(nullable: true), + Emr = table.Column(nullable: true), + Project = table.Column(nullable: true), + CheckError = table.Column(nullable: false), + ErrorType = table.Column(nullable: false), + DateExtracted = table.Column(nullable: false), + VisitID = table.Column(nullable: true), + EncounterId = table.Column(nullable: true), + VisitDate = table.Column(nullable: true), + PopulationType = table.Column(nullable: true), + KeyPopulation = table.Column(nullable: true), + PriorityPopulation = table.Column(nullable: true), + Department = table.Column(nullable: true), + PatientType = table.Column(nullable: true), + IsHealthWorker = table.Column(nullable: true), + RelationshipWithContact = table.Column(nullable: true), + TestedHIVBefore = table.Column(nullable: true), + WhoPerformedTest = table.Column(nullable: true), + ResultOfHIV = table.Column(nullable: true), + DateTested = table.Column(nullable: true), + StartedOnART = table.Column(nullable: true), + CCCNumber = table.Column(nullable: true), + EverHadSex = table.Column(nullable: true), + SexuallyActive = table.Column(nullable: true), + NewPartner = table.Column(nullable: true), + PartnerHivStatus = table.Column(nullable: true), + CoupleDiscordant = table.Column(nullable: true), + MultiplePartners = table.Column(nullable: true), + NumberPartners = table.Column(nullable: true), + AlcoholSex = table.Column(nullable: true), + MoneySex = table.Column(nullable: true), + CondomBurst = table.Column(nullable: true), + UnknownStatusPartner = table.Column(nullable: true), + KnownStatusPartner = table.Column(nullable: true), + Pregnant = table.Column(nullable: true), + BreastfeedingMother = table.Column(nullable: true), + ExperiencedGBV = table.Column(nullable: true), + PhysicalViolence = table.Column(nullable: true), + SexualViolence = table.Column(nullable: true), + EverOnPrep = table.Column(nullable: true), + CurrentlyOnPrep = table.Column(nullable: true), + EverOnPep = table.Column(nullable: true), + CurrentlyOnPep = table.Column(nullable: true), + EverHadSTI = table.Column(nullable: true), + CurrentlyHasSTI = table.Column(nullable: true), + EverHadTB = table.Column(nullable: true), + CurrentlyHasTB = table.Column(nullable: true), + SharedNeedle = table.Column(nullable: true), + NeedleStickInjuries = table.Column(nullable: true), + TraditionalProcedures = table.Column(nullable: true), + ChildReasonsForIneligibility = table.Column(nullable: true), + EligibleForTest = table.Column(nullable: true), + ReasonsForIneligibility = table.Column(nullable: true), + SpecificReasonForIneligibility = table.Column(nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_TempHtsEligibilityExtracts", x => x.Id); + }); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "HtsEligibilityExtracts"); + + migrationBuilder.DropTable( + name: "TempHtsEligibilityExtracts"); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220706085641_HtsEligibilityInitialViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220706085641_HtsEligibilityInitialViews.Designer.cs new file mode 100644 index 00000000..2d594b17 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220706085641_HtsEligibilityInitialViews.Designer.cs @@ -0,0 +1,11469 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220706085641_HtsEligibilityInitialViews")] + partial class HtsEligibilityInitialViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTested"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NumberPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTested"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NumberPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220706085641_HtsEligibilityInitialViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220706085641_HtsEligibilityInitialViews.cs new file mode 100644 index 00000000..862a49c8 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220706085641_HtsEligibilityInitialViews.cs @@ -0,0 +1,93 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsEligibilityInitialViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + + if (migrationBuilder.ActiveProvider.ToLower().Contains("MySql".ToLower())) + { + migrationBuilder.Sql(@"alter table HtsEligibilityExtracts convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql(@"alter table TempHtsEligibilityExtracts convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql(@"alter table ClientRegistryExtracts convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql(@"alter table TempClientRegistryExtracts convert to character set utf8 collate utf8_unicode_ci;"); + } + + + migrationBuilder.Sql(@"create view vTempHtsEligibilityExtractError as SELECT * FROM TempHtsEligibilityExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@" + CREATE VIEW vTempHtsEligibilityExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, ValidationError.RecordId, + + vTempHtsEligibilityExtractError.PatientPK, + vTempHtsEligibilityExtractError.SiteCode, + vTempHtsEligibilityExtractError.FacilityName, + vTempHtsEligibilityExtractError.Emr, + vTempHtsEligibilityExtractError.Project, + vTempHtsEligibilityExtractError.HtsNumber, + vTempHtsEligibilityExtractError.VisitID, + vTempHtsEligibilityExtractError.EncounterId, + vTempHtsEligibilityExtractError.VisitDate, + vTempHtsEligibilityExtractError.PopulationType, + vTempHtsEligibilityExtractError.KeyPopulation, + vTempHtsEligibilityExtractError.PriorityPopulation, + vTempHtsEligibilityExtractError.Department, + vTempHtsEligibilityExtractError.PatientType, + vTempHtsEligibilityExtractError.IsHealthWorker, + vTempHtsEligibilityExtractError.RelationshipWithContact, + vTempHtsEligibilityExtractError.TestedHIVBefore, + vTempHtsEligibilityExtractError.WhoPerformedTest, + vTempHtsEligibilityExtractError.ResultOfHIV, + vTempHtsEligibilityExtractError.DateTested , + vTempHtsEligibilityExtractError.StartedOnART, + vTempHtsEligibilityExtractError.CCCNumber, + vTempHtsEligibilityExtractError.EverHadSex, + vTempHtsEligibilityExtractError.SexuallyActive, + vTempHtsEligibilityExtractError.NewPartner, + vTempHtsEligibilityExtractError.PartnerHivStatus, + vTempHtsEligibilityExtractError.CoupleDiscordant, + vTempHtsEligibilityExtractError.MultiplePartners, + vTempHtsEligibilityExtractError.NumberPartners, + vTempHtsEligibilityExtractError.AlcoholSex, + vTempHtsEligibilityExtractError.MoneySex, + vTempHtsEligibilityExtractError.CondomBurst, + vTempHtsEligibilityExtractError.UnknownStatusPartner, + vTempHtsEligibilityExtractError.KnownStatusPartner, + vTempHtsEligibilityExtractError.Pregnant, + vTempHtsEligibilityExtractError.BreastfeedingMother, + vTempHtsEligibilityExtractError.ExperiencedGBV, + vTempHtsEligibilityExtractError.PhysicalViolence, + vTempHtsEligibilityExtractError.SexualViolence, + vTempHtsEligibilityExtractError.EverOnPrep, + vTempHtsEligibilityExtractError.CurrentlyOnPrep, + vTempHtsEligibilityExtractError.EverOnPep, + vTempHtsEligibilityExtractError.CurrentlyOnPep, + vTempHtsEligibilityExtractError.EverHadSTI, + vTempHtsEligibilityExtractError.CurrentlyHasSTI, + vTempHtsEligibilityExtractError.EverHadTB, + vTempHtsEligibilityExtractError.CurrentlyHasTB, + vTempHtsEligibilityExtractError.SharedNeedle, + vTempHtsEligibilityExtractError.NeedleStickInjuries, + vTempHtsEligibilityExtractError.TraditionalProcedures, + vTempHtsEligibilityExtractError.ChildReasonsForIneligibility, + vTempHtsEligibilityExtractError.EligibleForTest, + vTempHtsEligibilityExtractError.ReasonsForIneligibility, + vTempHtsEligibilityExtractError.SpecificReasonForIneligibility + + FROM vTempHtsEligibilityExtractError INNER JOIN + ValidationError ON vTempHtsEligibilityExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220708085133_HtsVisitIDTypeChange.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220708085133_HtsVisitIDTypeChange.Designer.cs new file mode 100644 index 00000000..2340f821 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220708085133_HtsVisitIDTypeChange.Designer.cs @@ -0,0 +1,11479 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220708085133_HtsVisitIDTypeChange")] + partial class HtsVisitIDTypeChange + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTested"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NumberPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTested"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NumberPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220708085133_HtsVisitIDTypeChange.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220708085133_HtsVisitIDTypeChange.cs new file mode 100644 index 00000000..ebaadcc3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220708085133_HtsVisitIDTypeChange.cs @@ -0,0 +1,60 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsVisitIDTypeChange : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "VisitID", + table: "TempHtsEligibilityExtracts", + nullable: false, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "VisitID", + table: "HtsEligibilityExtracts", + nullable: false, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.CreateIndex( + name: "IX_HtsEligibilityExtracts_SiteCode_PatientPk", + table: "HtsEligibilityExtracts", + columns: new[] { "SiteCode", "PatientPk" }); + + migrationBuilder.AddForeignKey( + name: "FK_HtsEligibilityExtracts_HtsClientsExtracts_SiteCode_PatientPk", + table: "HtsEligibilityExtracts", + columns: new[] { "SiteCode", "PatientPk" }, + principalTable: "HtsClientsExtracts", + principalColumns: new[] { "SiteCode", "PatientPk" }, + onDelete: ReferentialAction.Cascade); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropForeignKey( + name: "FK_HtsEligibilityExtracts_HtsClientsExtracts_SiteCode_PatientPk", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropIndex( + name: "IX_HtsEligibilityExtracts_SiteCode_PatientPk", + table: "HtsEligibilityExtracts"); + + migrationBuilder.AlterColumn( + name: "VisitID", + table: "TempHtsEligibilityExtracts", + nullable: true, + oldClrType: typeof(int)); + + migrationBuilder.AlterColumn( + name: "VisitID", + table: "HtsEligibilityExtracts", + nullable: true, + oldClrType: typeof(int)); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220708144841_HtsEligibilityNumOfPartners.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220708144841_HtsEligibilityNumOfPartners.Designer.cs new file mode 100644 index 00000000..de288591 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220708144841_HtsEligibilityNumOfPartners.Designer.cs @@ -0,0 +1,11479 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220708144841_HtsEligibilityNumOfPartners")] + partial class HtsEligibilityNumOfPartners + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTested"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTested"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220708144841_HtsEligibilityNumOfPartners.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220708144841_HtsEligibilityNumOfPartners.cs new file mode 100644 index 00000000..0443e643 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220708144841_HtsEligibilityNumOfPartners.cs @@ -0,0 +1,91 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsEligibilityNumOfPartners : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "NumberPartners", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.RenameColumn( + name: "NumberPartners", + table: "HtsEligibilityExtracts", + newName: "NumberOfPartners"); + + migrationBuilder.AlterColumn( + name: "VisitID", + table: "TempHtsEligibilityExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "SpecificReasonForIneligibility", + table: "TempHtsEligibilityExtracts", + nullable: true, + oldClrType: typeof(int)); + + migrationBuilder.AddColumn( + name: "NumberOfPartners", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AlterColumn( + name: "VisitID", + table: "HtsEligibilityExtracts", + nullable: false, + oldClrType: typeof(string), + oldNullable: true); + + + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropForeignKey( + name: "FK_HtsEligibilityExtracts_HtsClientsExtracts_SiteCode_PatientPk", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropIndex( + name: "IX_HtsEligibilityExtracts_SiteCode_PatientPk", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "NumberOfPartners", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.RenameColumn( + name: "NumberOfPartners", + table: "HtsEligibilityExtracts", + newName: "NumberPartners"); + + migrationBuilder.AlterColumn( + name: "VisitID", + table: "TempHtsEligibilityExtracts", + nullable: true, + oldClrType: typeof(int), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "SpecificReasonForIneligibility", + table: "TempHtsEligibilityExtracts", + nullable: false, + oldClrType: typeof(int), + oldNullable: true); + + migrationBuilder.AddColumn( + name: "NumberPartners", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AlterColumn( + name: "VisitID", + table: "HtsEligibilityExtracts", + nullable: true, + oldClrType: typeof(int)); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220712094133_HtsEligibilityUpdateFields.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220712094133_HtsEligibilityUpdateFields.Designer.cs new file mode 100644 index 00000000..adca0bd3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220712094133_HtsEligibilityUpdateFields.Designer.cs @@ -0,0 +1,11479 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220712094133_HtsEligibilityUpdateFields")] + partial class HtsEligibilityUpdateFields + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTested"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTested"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220712094133_HtsEligibilityUpdateFields.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220712094133_HtsEligibilityUpdateFields.cs new file mode 100644 index 00000000..ea6018f7 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220712094133_HtsEligibilityUpdateFields.cs @@ -0,0 +1,53 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsEligibilityUpdateFields : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "VisitID", + table: "HtsEligibilityExtracts", + nullable: true, + oldClrType: typeof(int)); + + migrationBuilder.AlterColumn( + name: "SpecificReasonForIneligibility", + table: "HtsEligibilityExtracts", + nullable: true, + oldClrType: typeof(int)); + + migrationBuilder.AlterColumn( + name: "NumberOfPartners", + table: "HtsEligibilityExtracts", + nullable: true, + oldClrType: typeof(string), + oldNullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "VisitID", + table: "HtsEligibilityExtracts", + nullable: false, + oldClrType: typeof(int), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "SpecificReasonForIneligibility", + table: "HtsEligibilityExtracts", + nullable: false, + oldClrType: typeof(int), + oldNullable: true); + + migrationBuilder.AlterColumn( + name: "NumberOfPartners", + table: "HtsEligibilityExtracts", + nullable: true, + oldClrType: typeof(int), + oldNullable: true); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220712094303_HtsEligibilityUpdateFieldsViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220712094303_HtsEligibilityUpdateFieldsViews.Designer.cs new file mode 100644 index 00000000..6853f1c4 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220712094303_HtsEligibilityUpdateFieldsViews.Designer.cs @@ -0,0 +1,11479 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220712094303_HtsEligibilityUpdateFieldsViews")] + partial class HtsEligibilityUpdateFieldsViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTested"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTested"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220712094303_HtsEligibilityUpdateFieldsViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220712094303_HtsEligibilityUpdateFieldsViews.cs new file mode 100644 index 00000000..b58e518e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220712094303_HtsEligibilityUpdateFieldsViews.cs @@ -0,0 +1,85 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsEligibilityUpdateFieldsViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + + migrationBuilder.Sql(@"alter view vTempHtsEligibilityExtractError as SELECT * FROM TempHtsEligibilityExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@" + ALTER VIEW vTempHtsEligibilityExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, ValidationError.RecordId, + + vTempHtsEligibilityExtractError.PatientPK, + vTempHtsEligibilityExtractError.SiteCode, + vTempHtsEligibilityExtractError.FacilityName, + vTempHtsEligibilityExtractError.Emr, + vTempHtsEligibilityExtractError.Project, + vTempHtsEligibilityExtractError.HtsNumber, + vTempHtsEligibilityExtractError.VisitID, + vTempHtsEligibilityExtractError.EncounterId, + vTempHtsEligibilityExtractError.VisitDate, + vTempHtsEligibilityExtractError.PopulationType, + vTempHtsEligibilityExtractError.KeyPopulation, + vTempHtsEligibilityExtractError.PriorityPopulation, + vTempHtsEligibilityExtractError.Department, + vTempHtsEligibilityExtractError.PatientType, + vTempHtsEligibilityExtractError.IsHealthWorker, + vTempHtsEligibilityExtractError.RelationshipWithContact, + vTempHtsEligibilityExtractError.TestedHIVBefore, + vTempHtsEligibilityExtractError.WhoPerformedTest, + vTempHtsEligibilityExtractError.ResultOfHIV, + vTempHtsEligibilityExtractError.DateTested , + vTempHtsEligibilityExtractError.StartedOnART, + vTempHtsEligibilityExtractError.CCCNumber, + vTempHtsEligibilityExtractError.EverHadSex, + vTempHtsEligibilityExtractError.SexuallyActive, + vTempHtsEligibilityExtractError.NewPartner, + vTempHtsEligibilityExtractError.PartnerHivStatus, + vTempHtsEligibilityExtractError.CoupleDiscordant, + vTempHtsEligibilityExtractError.MultiplePartners, + vTempHtsEligibilityExtractError.NumberOfPartners, + vTempHtsEligibilityExtractError.AlcoholSex, + vTempHtsEligibilityExtractError.MoneySex, + vTempHtsEligibilityExtractError.CondomBurst, + vTempHtsEligibilityExtractError.UnknownStatusPartner, + vTempHtsEligibilityExtractError.KnownStatusPartner, + vTempHtsEligibilityExtractError.Pregnant, + vTempHtsEligibilityExtractError.BreastfeedingMother, + vTempHtsEligibilityExtractError.ExperiencedGBV, + vTempHtsEligibilityExtractError.PhysicalViolence, + vTempHtsEligibilityExtractError.SexualViolence, + vTempHtsEligibilityExtractError.EverOnPrep, + vTempHtsEligibilityExtractError.CurrentlyOnPrep, + vTempHtsEligibilityExtractError.EverOnPep, + vTempHtsEligibilityExtractError.CurrentlyOnPep, + vTempHtsEligibilityExtractError.EverHadSTI, + vTempHtsEligibilityExtractError.CurrentlyHasSTI, + vTempHtsEligibilityExtractError.EverHadTB, + vTempHtsEligibilityExtractError.CurrentlyHasTB, + vTempHtsEligibilityExtractError.SharedNeedle, + vTempHtsEligibilityExtractError.NeedleStickInjuries, + vTempHtsEligibilityExtractError.TraditionalProcedures, + vTempHtsEligibilityExtractError.ChildReasonsForIneligibility, + vTempHtsEligibilityExtractError.EligibleForTest, + vTempHtsEligibilityExtractError.ReasonsForIneligibility, + vTempHtsEligibilityExtractError.SpecificReasonForIneligibility + + FROM vTempHtsEligibilityExtractError INNER JOIN + ValidationError ON vTempHtsEligibilityExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220714174516_HtsEligibilityAddedColumns.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220714174516_HtsEligibilityAddedColumns.Designer.cs new file mode 100644 index 00000000..2ff1ffdb --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220714174516_HtsEligibilityAddedColumns.Designer.cs @@ -0,0 +1,11523 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220714174516_HtsEligibilityAddedColumns")] + partial class HtsEligibilityAddedColumns + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("EmotionalViolence"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("EmotionalViolence"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220714174516_HtsEligibilityAddedColumns.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220714174516_HtsEligibilityAddedColumns.cs new file mode 100644 index 00000000..1c946980 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220714174516_HtsEligibilityAddedColumns.cs @@ -0,0 +1,232 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsEligibilityAddedColumns : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.RenameColumn( + name: "DateTested", + table: "TempHtsEligibilityExtracts", + newName: "DateTestedSelf"); + + migrationBuilder.RenameColumn( + name: "DateTested", + table: "HtsEligibilityExtracts", + newName: "DateTestedSelf"); + + migrationBuilder.AddColumn( + name: "Cough", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "DateTestedProvider", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "EmotionalViolence", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "Fever", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "MothersStatus", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "NightSweats", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "ReferredForTesting", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "ResultOfHIVSelf", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "ScreenedTB", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "TBStatus", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "WeightLoss", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "Cough", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "DateTestedProvider", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "EmotionalViolence", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "Fever", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "MothersStatus", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "NightSweats", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "ReferredForTesting", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "ResultOfHIVSelf", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "ScreenedTB", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "TBStatus", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "WeightLoss", + table: "HtsEligibilityExtracts", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Cough", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "DateTestedProvider", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "EmotionalViolence", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "Fever", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "MothersStatus", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "NightSweats", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "ReferredForTesting", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "ResultOfHIVSelf", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "ScreenedTB", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "TBStatus", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "WeightLoss", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "Cough", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "DateTestedProvider", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "EmotionalViolence", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "Fever", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "MothersStatus", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "NightSweats", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "ReferredForTesting", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "ResultOfHIVSelf", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "ScreenedTB", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "TBStatus", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "WeightLoss", + table: "HtsEligibilityExtracts"); + + migrationBuilder.RenameColumn( + name: "DateTestedSelf", + table: "TempHtsEligibilityExtracts", + newName: "DateTested"); + + migrationBuilder.RenameColumn( + name: "DateTestedSelf", + table: "HtsEligibilityExtracts", + newName: "DateTested"); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220714174914_HtsEligibilityAddedColumnsViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220714174914_HtsEligibilityAddedColumnsViews.Designer.cs new file mode 100644 index 00000000..3e7b7bfd --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220714174914_HtsEligibilityAddedColumnsViews.Designer.cs @@ -0,0 +1,11523 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220714174914_HtsEligibilityAddedColumnsViews")] + partial class HtsEligibilityAddedColumnsViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("EmotionalViolence"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("EmotionalViolence"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220714174914_HtsEligibilityAddedColumnsViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220714174914_HtsEligibilityAddedColumnsViews.cs new file mode 100644 index 00000000..963d84a8 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220714174914_HtsEligibilityAddedColumnsViews.cs @@ -0,0 +1,95 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsEligibilityAddedColumnsViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.Sql(@"alter view vTempHtsEligibilityExtractError as SELECT * FROM TempHtsEligibilityExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@" + ALTER VIEW vTempHtsEligibilityExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, ValidationError.RecordId, + + vTempHtsEligibilityExtractError.PatientPK, + vTempHtsEligibilityExtractError.SiteCode, + vTempHtsEligibilityExtractError.FacilityName, + vTempHtsEligibilityExtractError.Emr, + vTempHtsEligibilityExtractError.Project, + vTempHtsEligibilityExtractError.HtsNumber, + vTempHtsEligibilityExtractError.VisitID, + vTempHtsEligibilityExtractError.EncounterId, + vTempHtsEligibilityExtractError.VisitDate, + vTempHtsEligibilityExtractError.PopulationType, + vTempHtsEligibilityExtractError.KeyPopulation, + vTempHtsEligibilityExtractError.PriorityPopulation, + vTempHtsEligibilityExtractError.Department, + vTempHtsEligibilityExtractError.PatientType, + vTempHtsEligibilityExtractError.IsHealthWorker, + vTempHtsEligibilityExtractError.RelationshipWithContact, + vTempHtsEligibilityExtractError.TestedHIVBefore, + vTempHtsEligibilityExtractError.WhoPerformedTest, + vTempHtsEligibilityExtractError.ResultOfHIV, + vTempHtsEligibilityExtractError.StartedOnART, + vTempHtsEligibilityExtractError.CCCNumber, + vTempHtsEligibilityExtractError.EverHadSex, + vTempHtsEligibilityExtractError.SexuallyActive, + vTempHtsEligibilityExtractError.NewPartner, + vTempHtsEligibilityExtractError.PartnerHivStatus, + vTempHtsEligibilityExtractError.CoupleDiscordant, + vTempHtsEligibilityExtractError.MultiplePartners, + vTempHtsEligibilityExtractError.NumberOfPartners, + vTempHtsEligibilityExtractError.AlcoholSex, + vTempHtsEligibilityExtractError.MoneySex, + vTempHtsEligibilityExtractError.CondomBurst, + vTempHtsEligibilityExtractError.UnknownStatusPartner, + vTempHtsEligibilityExtractError.KnownStatusPartner, + vTempHtsEligibilityExtractError.Pregnant, + vTempHtsEligibilityExtractError.BreastfeedingMother, + vTempHtsEligibilityExtractError.ExperiencedGBV, + vTempHtsEligibilityExtractError.PhysicalViolence, + vTempHtsEligibilityExtractError.SexualViolence, + vTempHtsEligibilityExtractError.EverOnPrep, + vTempHtsEligibilityExtractError.CurrentlyOnPrep, + vTempHtsEligibilityExtractError.EverOnPep, + vTempHtsEligibilityExtractError.CurrentlyOnPep, + vTempHtsEligibilityExtractError.EverHadSTI, + vTempHtsEligibilityExtractError.CurrentlyHasSTI, + vTempHtsEligibilityExtractError.EverHadTB, + vTempHtsEligibilityExtractError.CurrentlyHasTB, + vTempHtsEligibilityExtractError.SharedNeedle, + vTempHtsEligibilityExtractError.NeedleStickInjuries, + vTempHtsEligibilityExtractError.TraditionalProcedures, + vTempHtsEligibilityExtractError.ChildReasonsForIneligibility, + vTempHtsEligibilityExtractError.EligibleForTest, + vTempHtsEligibilityExtractError.ReasonsForIneligibility, + vTempHtsEligibilityExtractError.SpecificReasonForIneligibility, + vTempHtsEligibilityExtractError.MothersStatus, + vTempHtsEligibilityExtractError.DateTestedSelf, + vTempHtsEligibilityExtractError.ResultOfHIVSelf, + vTempHtsEligibilityExtractError.DateTestedProvider, + vTempHtsEligibilityExtractError.EmotionalViolence, + vTempHtsEligibilityExtractError.ScreenedTB, + vTempHtsEligibilityExtractError.Cough, + vTempHtsEligibilityExtractError.Fever, + vTempHtsEligibilityExtractError.WeightLoss, + vTempHtsEligibilityExtractError.NightSweats, + vTempHtsEligibilityExtractError.TBStatus, + vTempHtsEligibilityExtractError.ReferredForTesting + + + FROM vTempHtsEligibilityExtractError INNER JOIN + ValidationError ON vTempHtsEligibilityExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220715095828_HtsEligibilityAddedAssessmentOutcome.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220715095828_HtsEligibilityAddedAssessmentOutcome.Designer.cs new file mode 100644 index 00000000..9a98292b --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220715095828_HtsEligibilityAddedAssessmentOutcome.Designer.cs @@ -0,0 +1,11539 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220715095828_HtsEligibilityAddedAssessmentOutcome")] + partial class HtsEligibilityAddedAssessmentOutcome + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("EmotionalViolence"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("EmotionalViolence"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220715095828_HtsEligibilityAddedAssessmentOutcome.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220715095828_HtsEligibilityAddedAssessmentOutcome.cs new file mode 100644 index 00000000..3ab9b1c6 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220715095828_HtsEligibilityAddedAssessmentOutcome.cs @@ -0,0 +1,85 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsEligibilityAddedAssessmentOutcome : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "AssessmentOutcome", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "ForcedSex", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "ReceivedServices", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "TypeGBV", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "AssessmentOutcome", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "ForcedSex", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "ReceivedServices", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "TypeGBV", + table: "HtsEligibilityExtracts", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "AssessmentOutcome", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "ForcedSex", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "ReceivedServices", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "TypeGBV", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "AssessmentOutcome", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "ForcedSex", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "ReceivedServices", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "TypeGBV", + table: "HtsEligibilityExtracts"); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220715113205_HtsEligibilityAddedAssessmentOutcomeViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220715113205_HtsEligibilityAddedAssessmentOutcomeViews.Designer.cs new file mode 100644 index 00000000..55c1594f --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220715113205_HtsEligibilityAddedAssessmentOutcomeViews.Designer.cs @@ -0,0 +1,11539 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220715113205_HtsEligibilityAddedAssessmentOutcomeViews")] + partial class HtsEligibilityAddedAssessmentOutcomeViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("EmotionalViolence"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyHasTB"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateExtracted"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("EmotionalViolence"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHivStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PhysicalViolence"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexualViolence"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220715113205_HtsEligibilityAddedAssessmentOutcomeViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220715113205_HtsEligibilityAddedAssessmentOutcomeViews.cs new file mode 100644 index 00000000..13a876a1 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220715113205_HtsEligibilityAddedAssessmentOutcomeViews.cs @@ -0,0 +1,99 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsEligibilityAddedAssessmentOutcomeViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.Sql(@"alter view vTempHtsEligibilityExtractError as SELECT * FROM TempHtsEligibilityExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@" + ALTER VIEW vTempHtsEligibilityExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, ValidationError.RecordId, + + vTempHtsEligibilityExtractError.PatientPK, + vTempHtsEligibilityExtractError.SiteCode, + vTempHtsEligibilityExtractError.FacilityName, + vTempHtsEligibilityExtractError.Emr, + vTempHtsEligibilityExtractError.Project, + vTempHtsEligibilityExtractError.HtsNumber, + vTempHtsEligibilityExtractError.VisitID, + vTempHtsEligibilityExtractError.EncounterId, + vTempHtsEligibilityExtractError.VisitDate, + vTempHtsEligibilityExtractError.PopulationType, + vTempHtsEligibilityExtractError.KeyPopulation, + vTempHtsEligibilityExtractError.PriorityPopulation, + vTempHtsEligibilityExtractError.Department, + vTempHtsEligibilityExtractError.PatientType, + vTempHtsEligibilityExtractError.IsHealthWorker, + vTempHtsEligibilityExtractError.RelationshipWithContact, + vTempHtsEligibilityExtractError.TestedHIVBefore, + vTempHtsEligibilityExtractError.WhoPerformedTest, + vTempHtsEligibilityExtractError.ResultOfHIV, + vTempHtsEligibilityExtractError.StartedOnART, + vTempHtsEligibilityExtractError.CCCNumber, + vTempHtsEligibilityExtractError.EverHadSex, + vTempHtsEligibilityExtractError.SexuallyActive, + vTempHtsEligibilityExtractError.NewPartner, + vTempHtsEligibilityExtractError.PartnerHivStatus, + vTempHtsEligibilityExtractError.CoupleDiscordant, + vTempHtsEligibilityExtractError.MultiplePartners, + vTempHtsEligibilityExtractError.NumberOfPartners, + vTempHtsEligibilityExtractError.AlcoholSex, + vTempHtsEligibilityExtractError.MoneySex, + vTempHtsEligibilityExtractError.CondomBurst, + vTempHtsEligibilityExtractError.UnknownStatusPartner, + vTempHtsEligibilityExtractError.KnownStatusPartner, + vTempHtsEligibilityExtractError.Pregnant, + vTempHtsEligibilityExtractError.BreastfeedingMother, + vTempHtsEligibilityExtractError.ExperiencedGBV, + vTempHtsEligibilityExtractError.PhysicalViolence, + vTempHtsEligibilityExtractError.SexualViolence, + vTempHtsEligibilityExtractError.EverOnPrep, + vTempHtsEligibilityExtractError.CurrentlyOnPrep, + vTempHtsEligibilityExtractError.EverOnPep, + vTempHtsEligibilityExtractError.CurrentlyOnPep, + vTempHtsEligibilityExtractError.EverHadSTI, + vTempHtsEligibilityExtractError.CurrentlyHasSTI, + vTempHtsEligibilityExtractError.EverHadTB, + vTempHtsEligibilityExtractError.CurrentlyHasTB, + vTempHtsEligibilityExtractError.SharedNeedle, + vTempHtsEligibilityExtractError.NeedleStickInjuries, + vTempHtsEligibilityExtractError.TraditionalProcedures, + vTempHtsEligibilityExtractError.ChildReasonsForIneligibility, + vTempHtsEligibilityExtractError.EligibleForTest, + vTempHtsEligibilityExtractError.ReasonsForIneligibility, + vTempHtsEligibilityExtractError.SpecificReasonForIneligibility, + vTempHtsEligibilityExtractError.MothersStatus, + vTempHtsEligibilityExtractError.DateTestedSelf, + vTempHtsEligibilityExtractError.ResultOfHIVSelf, + vTempHtsEligibilityExtractError.DateTestedProvider, + vTempHtsEligibilityExtractError.EmotionalViolence, + vTempHtsEligibilityExtractError.ScreenedTB, + vTempHtsEligibilityExtractError.Cough, + vTempHtsEligibilityExtractError.Fever, + vTempHtsEligibilityExtractError.WeightLoss, + vTempHtsEligibilityExtractError.NightSweats, + vTempHtsEligibilityExtractError.TBStatus, + vTempHtsEligibilityExtractError.ReferredForTesting, + vTempHtsEligibilityExtractError.AssessmentOutcome, + vTempHtsEligibilityExtractError.TypeGBV, + vTempHtsEligibilityExtractError.ForcedSex, + vTempHtsEligibilityExtractError.ReceivedServices + + + FROM vTempHtsEligibilityExtractError INNER JOIN + ValidationError ON vTempHtsEligibilityExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220726071319_HtsEligibilityAddedDateCreated.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220726071319_HtsEligibilityAddedDateCreated.Designer.cs new file mode 100644 index 00000000..442dcb89 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220726071319_HtsEligibilityAddedDateCreated.Designer.cs @@ -0,0 +1,11539 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220726071319_HtsEligibilityAddedDateCreated")] + partial class HtsEligibilityAddedDateCreated + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("ContactWithTBCase"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("DateLastModified"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("Lethargy"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHIVStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("ContactWithTBCase"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("DateLastModified"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("Lethargy"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHIVStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220726071319_HtsEligibilityAddedDateCreated.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220726071319_HtsEligibilityAddedDateCreated.cs new file mode 100644 index 00000000..96473a2c --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220726071319_HtsEligibilityAddedDateCreated.cs @@ -0,0 +1,146 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsEligibilityAddedDateCreated : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "CurrentlyHasTB", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "EmotionalViolence", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "CurrentlyHasTB", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "EmotionalViolence", + table: "HtsEligibilityExtracts"); + + migrationBuilder.RenameColumn( + name: "PartnerHivStatus", + table: "TempHtsEligibilityExtracts", + newName: "PartnerHIVStatus"); + + migrationBuilder.RenameColumn( + name: "SexualViolence", + table: "TempHtsEligibilityExtracts", + newName: "Lethargy"); + + migrationBuilder.RenameColumn( + name: "PhysicalViolence", + table: "TempHtsEligibilityExtracts", + newName: "ContactWithTBCase"); + + migrationBuilder.RenameColumn( + name: "PartnerHivStatus", + table: "HtsEligibilityExtracts", + newName: "PartnerHIVStatus"); + + migrationBuilder.RenameColumn( + name: "SexualViolence", + table: "HtsEligibilityExtracts", + newName: "Lethargy"); + + migrationBuilder.RenameColumn( + name: "PhysicalViolence", + table: "HtsEligibilityExtracts", + newName: "ContactWithTBCase"); + + migrationBuilder.AddColumn( + name: "DateCreated", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "DateLastModified", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "DateCreated", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "DateLastModified", + table: "HtsEligibilityExtracts", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "DateCreated", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "DateLastModified", + table: "TempHtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "DateCreated", + table: "HtsEligibilityExtracts"); + + migrationBuilder.DropColumn( + name: "DateLastModified", + table: "HtsEligibilityExtracts"); + + migrationBuilder.RenameColumn( + name: "PartnerHIVStatus", + table: "TempHtsEligibilityExtracts", + newName: "PartnerHivStatus"); + + migrationBuilder.RenameColumn( + name: "Lethargy", + table: "TempHtsEligibilityExtracts", + newName: "SexualViolence"); + + migrationBuilder.RenameColumn( + name: "ContactWithTBCase", + table: "TempHtsEligibilityExtracts", + newName: "PhysicalViolence"); + + migrationBuilder.RenameColumn( + name: "PartnerHIVStatus", + table: "HtsEligibilityExtracts", + newName: "PartnerHivStatus"); + + migrationBuilder.RenameColumn( + name: "Lethargy", + table: "HtsEligibilityExtracts", + newName: "SexualViolence"); + + migrationBuilder.RenameColumn( + name: "ContactWithTBCase", + table: "HtsEligibilityExtracts", + newName: "PhysicalViolence"); + + migrationBuilder.AddColumn( + name: "CurrentlyHasTB", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "EmotionalViolence", + table: "TempHtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "CurrentlyHasTB", + table: "HtsEligibilityExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "EmotionalViolence", + table: "HtsEligibilityExtracts", + nullable: true); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220726072043_HtsEligibilityAddedDateCreatedViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220726072043_HtsEligibilityAddedDateCreatedViews.Designer.cs new file mode 100644 index 00000000..8566f900 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220726072043_HtsEligibilityAddedDateCreatedViews.Designer.cs @@ -0,0 +1,11539 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220726072043_HtsEligibilityAddedDateCreatedViews")] + partial class HtsEligibilityAddedDateCreatedViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("ContactWithTBCase"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("DateLastModified"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("Lethargy"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHIVStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("ContactWithTBCase"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("DateLastModified"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("Lethargy"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHIVStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220726072043_HtsEligibilityAddedDateCreatedViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220726072043_HtsEligibilityAddedDateCreatedViews.cs new file mode 100644 index 00000000..b41863a3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220726072043_HtsEligibilityAddedDateCreatedViews.cs @@ -0,0 +1,101 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class HtsEligibilityAddedDateCreatedViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + + migrationBuilder.Sql(@"alter view vTempHtsEligibilityExtractError as SELECT * FROM TempHtsEligibilityExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@" + ALTER VIEW vTempHtsEligibilityExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, ValidationError.RecordId, + + vTempHtsEligibilityExtractError.PatientPK, + vTempHtsEligibilityExtractError.SiteCode, + vTempHtsEligibilityExtractError.FacilityName, + vTempHtsEligibilityExtractError.Emr, + vTempHtsEligibilityExtractError.Project, + vTempHtsEligibilityExtractError.HtsNumber, + vTempHtsEligibilityExtractError.VisitID, + vTempHtsEligibilityExtractError.EncounterId, + vTempHtsEligibilityExtractError.VisitDate, + vTempHtsEligibilityExtractError.PopulationType, + vTempHtsEligibilityExtractError.KeyPopulation, + vTempHtsEligibilityExtractError.PriorityPopulation, + vTempHtsEligibilityExtractError.Department, + vTempHtsEligibilityExtractError.PatientType, + vTempHtsEligibilityExtractError.IsHealthWorker, + vTempHtsEligibilityExtractError.RelationshipWithContact, + vTempHtsEligibilityExtractError.TestedHIVBefore, + vTempHtsEligibilityExtractError.WhoPerformedTest, + vTempHtsEligibilityExtractError.ResultOfHIV, + vTempHtsEligibilityExtractError.StartedOnART, + vTempHtsEligibilityExtractError.CCCNumber, + vTempHtsEligibilityExtractError.EverHadSex, + vTempHtsEligibilityExtractError.SexuallyActive, + vTempHtsEligibilityExtractError.NewPartner, + vTempHtsEligibilityExtractError.PartnerHivStatus, + vTempHtsEligibilityExtractError.CoupleDiscordant, + vTempHtsEligibilityExtractError.MultiplePartners, + vTempHtsEligibilityExtractError.NumberOfPartners, + vTempHtsEligibilityExtractError.AlcoholSex, + vTempHtsEligibilityExtractError.MoneySex, + vTempHtsEligibilityExtractError.CondomBurst, + vTempHtsEligibilityExtractError.UnknownStatusPartner, + vTempHtsEligibilityExtractError.KnownStatusPartner, + vTempHtsEligibilityExtractError.Pregnant, + vTempHtsEligibilityExtractError.BreastfeedingMother, + vTempHtsEligibilityExtractError.ExperiencedGBV, + vTempHtsEligibilityExtractError.EverOnPrep, + vTempHtsEligibilityExtractError.CurrentlyOnPrep, + vTempHtsEligibilityExtractError.EverOnPep, + vTempHtsEligibilityExtractError.CurrentlyOnPep, + vTempHtsEligibilityExtractError.EverHadSTI, + vTempHtsEligibilityExtractError.CurrentlyHasSTI, + vTempHtsEligibilityExtractError.EverHadTB, + vTempHtsEligibilityExtractError.SharedNeedle, + vTempHtsEligibilityExtractError.NeedleStickInjuries, + vTempHtsEligibilityExtractError.TraditionalProcedures, + vTempHtsEligibilityExtractError.ChildReasonsForIneligibility, + vTempHtsEligibilityExtractError.EligibleForTest, + vTempHtsEligibilityExtractError.ReasonsForIneligibility, + vTempHtsEligibilityExtractError.SpecificReasonForIneligibility, + vTempHtsEligibilityExtractError.MothersStatus, + vTempHtsEligibilityExtractError.DateTestedSelf, + vTempHtsEligibilityExtractError.ResultOfHIVSelf, + vTempHtsEligibilityExtractError.DateTestedProvider, + vTempHtsEligibilityExtractError.ScreenedTB, + vTempHtsEligibilityExtractError.Cough, + vTempHtsEligibilityExtractError.Fever, + vTempHtsEligibilityExtractError.WeightLoss, + vTempHtsEligibilityExtractError.NightSweats, + vTempHtsEligibilityExtractError.Lethargy, + vTempHtsEligibilityExtractError.TBStatus, + vTempHtsEligibilityExtractError.ReferredForTesting, + vTempHtsEligibilityExtractError.AssessmentOutcome, + vTempHtsEligibilityExtractError.TypeGBV, + vTempHtsEligibilityExtractError.ForcedSex, + vTempHtsEligibilityExtractError.ReceivedServices, + vTempHtsEligibilityExtractError.DateCreated, + vTempHtsEligibilityExtractError.DateLastModified, + vTempHtsEligibilityExtractError.ContactWithTBCase + + FROM vTempHtsEligibilityExtractError INNER JOIN + ValidationError ON vTempHtsEligibilityExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + + + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220803123859_UpdatedTablesCollation.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220803123859_UpdatedTablesCollation.Designer.cs new file mode 100644 index 00000000..71158b36 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220803123859_UpdatedTablesCollation.Designer.cs @@ -0,0 +1,11537 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220803123859_UpdatedTablesCollation")] + partial class UpdatedTablesCollation + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("ContactWithTBCase"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("DateLastModified"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("Lethargy"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHIVStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("ContactWithTBCase"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("DateLastModified"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("Lethargy"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHIVStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220803123859_UpdatedTablesCollation.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220803123859_UpdatedTablesCollation.cs new file mode 100644 index 00000000..5b9a029d --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220803123859_UpdatedTablesCollation.cs @@ -0,0 +1,164 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class UpdatedTablesCollation : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + if (migrationBuilder.ActiveProvider.ToLower().Contains("MySql".ToLower())) + { + migrationBuilder.Sql(@"alter table HtsEligibilityExtracts convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql(@"alter table TempHtsEligibilityExtracts convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql(@"alter table ClientRegistryExtracts convert to character set utf8 collate utf8_unicode_ci;"); + migrationBuilder.Sql(@"alter table TempClientRegistryExtracts convert to character set utf8 collate utf8_unicode_ci;"); + } + + migrationBuilder.Sql(@"alter view vTempHtsEligibilityExtractError as SELECT * FROM TempHtsEligibilityExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@" + ALTER VIEW vTempHtsEligibilityExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, ValidationError.RecordId, + + vTempHtsEligibilityExtractError.PatientPK, + vTempHtsEligibilityExtractError.SiteCode, + vTempHtsEligibilityExtractError.FacilityName, + vTempHtsEligibilityExtractError.Emr, + vTempHtsEligibilityExtractError.Project, + vTempHtsEligibilityExtractError.HtsNumber, + vTempHtsEligibilityExtractError.VisitID, + vTempHtsEligibilityExtractError.EncounterId, + vTempHtsEligibilityExtractError.VisitDate, + vTempHtsEligibilityExtractError.PopulationType, + vTempHtsEligibilityExtractError.KeyPopulation, + vTempHtsEligibilityExtractError.PriorityPopulation, + vTempHtsEligibilityExtractError.Department, + vTempHtsEligibilityExtractError.PatientType, + vTempHtsEligibilityExtractError.IsHealthWorker, + vTempHtsEligibilityExtractError.RelationshipWithContact, + vTempHtsEligibilityExtractError.TestedHIVBefore, + vTempHtsEligibilityExtractError.WhoPerformedTest, + vTempHtsEligibilityExtractError.ResultOfHIV, + vTempHtsEligibilityExtractError.StartedOnART, + vTempHtsEligibilityExtractError.CCCNumber, + vTempHtsEligibilityExtractError.EverHadSex, + vTempHtsEligibilityExtractError.SexuallyActive, + vTempHtsEligibilityExtractError.NewPartner, + vTempHtsEligibilityExtractError.PartnerHivStatus, + vTempHtsEligibilityExtractError.CoupleDiscordant, + vTempHtsEligibilityExtractError.MultiplePartners, + vTempHtsEligibilityExtractError.NumberOfPartners, + vTempHtsEligibilityExtractError.AlcoholSex, + vTempHtsEligibilityExtractError.MoneySex, + vTempHtsEligibilityExtractError.CondomBurst, + vTempHtsEligibilityExtractError.UnknownStatusPartner, + vTempHtsEligibilityExtractError.KnownStatusPartner, + vTempHtsEligibilityExtractError.Pregnant, + vTempHtsEligibilityExtractError.BreastfeedingMother, + vTempHtsEligibilityExtractError.ExperiencedGBV, + vTempHtsEligibilityExtractError.EverOnPrep, + vTempHtsEligibilityExtractError.CurrentlyOnPrep, + vTempHtsEligibilityExtractError.EverOnPep, + vTempHtsEligibilityExtractError.CurrentlyOnPep, + vTempHtsEligibilityExtractError.EverHadSTI, + vTempHtsEligibilityExtractError.CurrentlyHasSTI, + vTempHtsEligibilityExtractError.EverHadTB, + vTempHtsEligibilityExtractError.SharedNeedle, + vTempHtsEligibilityExtractError.NeedleStickInjuries, + vTempHtsEligibilityExtractError.TraditionalProcedures, + vTempHtsEligibilityExtractError.ChildReasonsForIneligibility, + vTempHtsEligibilityExtractError.EligibleForTest, + vTempHtsEligibilityExtractError.ReasonsForIneligibility, + vTempHtsEligibilityExtractError.SpecificReasonForIneligibility, + vTempHtsEligibilityExtractError.MothersStatus, + vTempHtsEligibilityExtractError.DateTestedSelf, + vTempHtsEligibilityExtractError.ResultOfHIVSelf, + vTempHtsEligibilityExtractError.DateTestedProvider, + vTempHtsEligibilityExtractError.ScreenedTB, + vTempHtsEligibilityExtractError.Cough, + vTempHtsEligibilityExtractError.Fever, + vTempHtsEligibilityExtractError.WeightLoss, + vTempHtsEligibilityExtractError.NightSweats, + vTempHtsEligibilityExtractError.Lethargy, + vTempHtsEligibilityExtractError.TBStatus, + vTempHtsEligibilityExtractError.ReferredForTesting, + vTempHtsEligibilityExtractError.AssessmentOutcome, + vTempHtsEligibilityExtractError.TypeGBV, + vTempHtsEligibilityExtractError.ForcedSex, + vTempHtsEligibilityExtractError.ReceivedServices, + vTempHtsEligibilityExtractError.DateCreated, + vTempHtsEligibilityExtractError.DateLastModified, + vTempHtsEligibilityExtractError.ContactWithTBCase + + FROM vTempHtsEligibilityExtractError INNER JOIN + ValidationError ON vTempHtsEligibilityExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + migrationBuilder.Sql(@"alter view vTempClientRegistryExtractError as SELECT * FROM TempClientRegistryExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@" + ALTER VIEW vTempClientRegistryExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated,ValidationError.RecordId, + + vTempClientRegistryExtractError.AlienIdNo, + vTempClientRegistryExtractError.AlternativePhoneNumber, + vTempClientRegistryExtractError.BirthCertificateNumber, + vTempClientRegistryExtractError.CCCNumber, + vTempClientRegistryExtractError.County, + vTempClientRegistryExtractError.DateOfBirth, + vTempClientRegistryExtractError.DateOfInitiation, + vTempClientRegistryExtractError.DateOfLastEncounter, + vTempClientRegistryExtractError.DateOfLastViralLoad, + vTempClientRegistryExtractError.DrivingLicenseNumber, + vTempClientRegistryExtractError.Emr, + vTempClientRegistryExtractError.FacilityId, + vTempClientRegistryExtractError.FacilityName, + vTempClientRegistryExtractError.FirstName, + vTempClientRegistryExtractError.HighestLevelOfEducation, + vTempClientRegistryExtractError.HudumaNumber, + vTempClientRegistryExtractError.Landmark, + vTempClientRegistryExtractError.LastName, + vTempClientRegistryExtractError.LastRegimen, + vTempClientRegistryExtractError.LastRegimenLine, + vTempClientRegistryExtractError.Location, + vTempClientRegistryExtractError.MaritalStatus, + vTempClientRegistryExtractError.MFLCode, + vTempClientRegistryExtractError.MiddleName, + vTempClientRegistryExtractError.NameOfNextOfKin, + vTempClientRegistryExtractError.NationalId, + vTempClientRegistryExtractError.NextAppointmentDate, + vTempClientRegistryExtractError.NextOfKinRelationship, + vTempClientRegistryExtractError.NextOfKinTelNo, + vTempClientRegistryExtractError.Occupation, + vTempClientRegistryExtractError.Passport, + vTempClientRegistryExtractError.PatientClinicNumber, + vTempClientRegistryExtractError.PatientPK, + vTempClientRegistryExtractError.PhoneNumber, + vTempClientRegistryExtractError.Project, + vTempClientRegistryExtractError.Sex, + vTempClientRegistryExtractError.SiteCode, + vTempClientRegistryExtractError.SpousePhoneNumber, + vTempClientRegistryExtractError.SubCounty, + vTempClientRegistryExtractError.TreatmentOutcome, + vTempClientRegistryExtractError.Village, + vTempClientRegistryExtractError.Ward, + vTempClientRegistryExtractError.CurrentOnART, + vTempClientRegistryExtractError.DateOfHIVdiagnosis, + vTempClientRegistryExtractError.LastViralLoadResult + + + FROM vTempClientRegistryExtractError INNER JOIN + ValidationError ON vTempClientRegistryExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + "); + + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220818063807_PatientExtractsAddedRefillDate.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220818063807_PatientExtractsAddedRefillDate.Designer.cs new file mode 100644 index 00000000..d59b70bc --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220818063807_PatientExtractsAddedRefillDate.Designer.cs @@ -0,0 +1,11545 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220818063807_PatientExtractsAddedRefillDate")] + partial class PatientExtractsAddedRefillDate + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RefillDate"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("ContactWithTBCase"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("DateLastModified"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("Lethargy"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHIVStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RefillDate"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("RefillDate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("RefillDate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("ContactWithTBCase"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("DateLastModified"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("Lethargy"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHIVStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220818063807_PatientExtractsAddedRefillDate.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220818063807_PatientExtractsAddedRefillDate.cs new file mode 100644 index 00000000..9c7accf8 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220818063807_PatientExtractsAddedRefillDate.cs @@ -0,0 +1,33 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class PatientExtractsAddedRefillDate : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + + migrationBuilder.AddColumn( + name: "RefillDate", + table: "TempPatientVisitExtracts", + nullable: true); + + migrationBuilder.AddColumn( + name: "RefillDate", + table: "PatientVisitExtracts", + nullable: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "RefillDate", + table: "TempPatientVisitExtracts"); + + migrationBuilder.DropColumn( + name: "RefillDate", + table: "PatientVisitExtracts"); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220818064032_PatientExtractsAddedRefillDateViews.Designer.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220818064032_PatientExtractsAddedRefillDateViews.Designer.cs new file mode 100644 index 00000000..07f69d08 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220818064032_PatientExtractsAddedRefillDateViews.Designer.cs @@ -0,0 +1,11545 @@ +// +using System; +using Dwapi.ExtractsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(ExtractsContext))] + [Migration("20220818064032_PatientExtractsAddedRefillDateViews")] + partial class PatientExtractsAddedRefillDateViews + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Processed"); + + b.Property("QueueId"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("MasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("ContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("EnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("GbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("IptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("OvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("DatePreviousARTStart"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("StatusDate"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("QueueId"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("QueueId"); + + b.Property("RefillDate"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.EmrMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("EmrName"); + + b.Property("EmrVersion"); + + b.Property("LastLoginDate"); + + b.Property("LastMoH731RunDate"); + + b.HasKey("Id"); + + b.ToTable("EmrMetrics"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("HtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("HtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.HTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("HtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients", b => + { + b.Property("SiteCode"); + + b.Property("PatientPk"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("DoB"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPk"); + + b.HasAlternateKey("Id"); + + b.ToTable("HtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("ContactWithTBCase"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("DateLastModified"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("Lethargy"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHIVStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mgs.MetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("MetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("AncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("HeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusBabyDischarge"); + + b.Property("StatusDate"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Status"); + + b.Property("StatusAtCCC"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusAtMnch"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("MotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("Id"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("QueueId"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mts.IndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.ToTable("IndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => + { + b.Property("SiteCode"); + + b.Property("PatientPK"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Id"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("SiteCode", "PatientPK"); + + b.HasAlternateKey("Id"); + + b.ToTable("PatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("LastCreated"); + + b.Property("LastModified"); + + b.Property("LastSent"); + + b.Property("MaxCreated"); + + b.Property("MaxModified"); + + b.HasKey("Id"); + + b.ToTable("DiffLogs"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ExtractId"); + + b.Property("Stats"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("StatusInfo"); + + b.HasKey("Id"); + + b.ToTable("ExtractHistory"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); + + b.Property("DateExtracted"); + + b.Property("DateSent"); + + b.Property("DateStaged"); + + b.Property("Date_Created"); + + b.Property("Emr"); + + b.Property("Id"); + + b.Property("RequestId"); + + b.Property("Shr"); + + b.Property("Status") + .HasMaxLength(100); + + b.Property("Status_Date"); + + b.Property("Uuid"); + + b.HasKey("EId"); + + b.ToTable("PsmartStage"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Birth_Certificate"); + + b.Property("CCC_Number"); + + b.Property("CheckError"); + + b.Property("ContactAddress"); + + b.Property("ContactName"); + + b.Property("ContactPhoneNumber"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("FirstName_Normalized"); + + b.Property("Gender"); + + b.Property("JaroWinklerScore"); + + b.Property("LastName"); + + b.Property("LastName_Normalized"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("MiddleName_Normalized"); + + b.Property("NHIF_Number"); + + b.Property("National_ID"); + + b.Property("PatientAlternatePhoneNumber"); + + b.Property("PatientCounty"); + + b.Property("PatientID"); + + b.Property("PatientPhoneNumber"); + + b.Property("PatientPk"); + + b.Property("PatientSource"); + + b.Property("PatientSubCounty"); + + b.Property("PatientVillage"); + + b.Property("Serial"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartARTRegimenCode"); + + b.Property("StartARTRegimenDesc"); + + b.Property("TB_Number"); + + b.Property("dmFirstName"); + + b.Property("dmLastName"); + + b.Property("dmMiddleName"); + + b.Property("dmPKValue"); + + b.Property("dmPKValueDoB"); + + b.Property("sxFirstName"); + + b.Property("sxLastName"); + + b.Property("sxMiddleName"); + + b.Property("sxPKValue"); + + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); + + b.HasKey("Id"); + + b.ToTable("TempMasterPatientIndices"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempClientRegistryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("AllergicReaction"); + + b.Property("AllergyCausativeAgent"); + + b.Property("AllergyOnsetDate"); + + b.Property("AllergySeverity"); + + b.Property("CNS"); + + b.Property("CVS"); + + b.Property("Chest"); + + b.Property("ChronicIllness"); + + b.Property("ChronicOnsetDate"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("ENT"); + + b.Property("Extract"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Genitourinary"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("knownAllergies"); + + b.HasKey("Id"); + + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactAge"); + + b.Property("ContactMaritalStatus"); + + b.Property("ContactPatientPK"); + + b.Property("ContactSex"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPVScreeningOutcome"); + + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("Project"); + + b.Property("RelationshipWithPatient"); + + b.Property("ScreenedForIpv"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempContactListingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Project"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("CheckError"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDefaulterTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDepressionScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DepressionAssesmentScore"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PHQ9_1"); + + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempDrugAlcoholScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrinkingAlcohol"); + + b.Property("DrugUse"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Smoking"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("Project"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DateOfFirstSession"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EACAdherencePlan"); + + b.Property("EACBehaviouralBarrier_1"); + + b.Property("EACBehaviouralBarrier_2"); + + b.Property("EACBehaviouralBarrier_3"); + + b.Property("EACBehaviouralBarrier_4"); + + b.Property("EACBehaviouralBarrier_5"); + + b.Property("EACCognitiveBarrier"); + + b.Property("EACEconBarrier_1"); + + b.Property("EACEconBarrier_2"); + + b.Property("EACEconBarrier_3"); + + b.Property("EACEconBarrier_4"); + + b.Property("EACEconBarrier_5"); + + b.Property("EACEconBarrier_6"); + + b.Property("EACEconBarrier_7"); + + b.Property("EACEconBarrier_8"); + + b.Property("EACEmotionalBarriers_1"); + + b.Property("EACEmotionalBarriers_2"); + + b.Property("EACFollowupDate"); + + b.Property("EACHomevisit"); + + b.Property("EACRecievedVL"); + + b.Property("EACReferral"); + + b.Property("EACReferralApp"); + + b.Property("EACReferralExperience"); + + b.Property("EACReviewImprovement"); + + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("MMAS4_1"); + + b.Property("MMAS4_2"); + + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PillCountAdherence"); + + b.Property("RecordId"); + + b.Property("SessionNumber"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempGbvScreeningExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("Project"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EmotionalIPV"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhysicalIPV"); + + b.Property("RecordId"); + + b.Property("SexualIPV"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempGbvScreeningExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempIptExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ContactsInvited"); + + b.Property("Cough"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("Field"); + + b.Property("ICFActionTaken"); + + b.Property("IPTClientWorkUp"); + + b.Property("IndicationForIPT"); + + b.Property("Lethargy"); + + b.Property("NightSweats"); + + b.Property("NoticeableWeightLoss"); + + b.Property("OnIPT"); + + b.Property("OnTBDrugs"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StartAntiTBs"); + + b.Property("StartIPT"); + + b.Property("Summary"); + + b.Property("TBClinicalDiagnosis"); + + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempIptExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOtzExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Remarks"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOtzExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempOvcExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CPIMSUniqueIdentifier"); + + b.Property("DateGenerated"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EnrolledinCPIMS"); + + b.Property("ExitDate"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OVCEnrollmentDate"); + + b.Property("OVCExitReason"); + + b.Property("PartnerOfferingOVCServices"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempOvcExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsed"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTPurpose"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("TempPatientArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AgeLastVisit"); + + b.Property("DOB"); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); + + b.Property("RecordId"); + + b.Property("RegistrationDate"); + + b.Property("SiteCode"); + + b.Property("StartARTAtThisFacility"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientArtExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("TempPatientBaselinesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("bCD4"); + + b.Property("bCD4Date"); + + b.Property("bWAB"); + + b.Property("bWABDate"); + + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtPMTCT"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("TempPatientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + + b.Property("DateExtracted"); + + b.Property("District"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LastVisit"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientSource"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("PreviousARTExposure"); + + b.Property("PreviousARTStartDate"); + + b.Property("Project"); + + b.Property("Region"); + + b.Property("RegistrationATPMTCT"); + + b.Property("RegistrationAtCCC"); + + b.Property("RegistrationAtTBClinic"); + + b.Property("RegistrationDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("StatusAtCCC"); + + b.Property("StatusAtPMTCT"); + + b.Property("StatusAtTBClinic"); + + b.Property("TransferInDate"); + + b.Property("Village"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("NUPI"); + + b.Property("Orphan"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentLocation"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentSubLocation"); + + b.Property("PatientResidentVillage"); + + b.Property("PatientResidentWard"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TransferInDate"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateSampleTaken"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SampleType"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("TempPatientLaboratoryExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrollmentTest"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Reason"); + + b.Property("RecordId"); + + b.Property("ReportedByDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RefillDate"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("RefillDate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("RefillDate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlcoholSex"); + + b.Property("AssessmentOutcome"); + + b.Property("BreastfeedingMother"); + + b.Property("CCCNumber"); + + b.Property("CheckError"); + + b.Property("ChildReasonsForIneligibility"); + + b.Property("CondomBurst"); + + b.Property("ContactWithTBCase"); + + b.Property("Cough"); + + b.Property("CoupleDiscordant"); + + b.Property("CurrentlyHasSTI"); + + b.Property("CurrentlyOnPep"); + + b.Property("CurrentlyOnPrep"); + + b.Property("DateCreated"); + + b.Property("DateExtracted"); + + b.Property("DateLastModified"); + + b.Property("DateTestedProvider"); + + b.Property("DateTestedSelf"); + + b.Property("Department"); + + b.Property("EligibleForTest"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("EverHadSTI"); + + b.Property("EverHadSex"); + + b.Property("EverHadTB"); + + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("Lethargy"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHIVStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Project"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.ToTable("TempHtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsPartnerTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BookingDate"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TraceDate"); + + b.Property("TraceOutcome"); + + b.Property("TraceType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("TempHtsTestKitsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestKitExpiry1"); + + b.Property("TestKitExpiry2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("DisabilityType"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityName"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("EncounterId"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalResultHTS"); + + b.Property("FinalResultsGiven"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPop"); + + b.Property("MaritalStatus"); + + b.Property("MonthsLastTested"); + + b.Property("NUPI"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("StrategyHTS"); + + b.Property("Summary"); + + b.Property("TBScreeningHTS"); + + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("TracingOutcome"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CccNumber"); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TracingOutcome"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientPartnerExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CheckError"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Project"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + + b.Property("PatientPK"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("RecordId"); + + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Trace1Date"); + + b.Property("Trace1Outcome"); + + b.Property("Trace1Type"); + + b.Property("Trace2Date"); + + b.Property("Trace2Outcome"); + + b.Property("Trace2Type"); + + b.Property("Trace3Date"); + + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("TempMetricMigrationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CreateDate"); + + b.Property("Dataset"); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Metric"); + + b.Property("MetricId"); + + b.Property("MetricValue"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCClinicNumber"); + + b.Property("ANCVisitNo"); + + b.Property("AZTBabyDispense"); + + b.Property("AntenatalExercises"); + + b.Property("BP"); + + b.Property("BreastExam"); + + b.Property("CACxScreen"); + + b.Property("CACxScreenMethod"); + + b.Property("CheckError"); + + b.Property("ChronicIllness"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Deworming"); + + b.Property("DiabetesTest"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FGM"); + + b.Property("FGMComplications"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationWeeks"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestType"); + + b.Property("HIVTestingDone"); + + b.Property("Haemoglobin"); + + b.Property("Height"); + + b.Property("IronSupplementsGiven"); + + b.Property("MUAC"); + + b.Property("MalariaProphylaxis"); + + b.Property("MotherGivenHAART"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NVPBabyDispense"); + + b.Property("NextAppointmentANC"); + + b.Property("OxygenSaturation"); + + b.Property("PartnerHIVStatusANC"); + + b.Property("PartnerHIVTestingANC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PostParturmFP"); + + b.Property("PreventiveServices"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("SyphilisTestDone"); + + b.Property("SyphilisTestResults"); + + b.Property("SyphilisTestType"); + + b.Property("SyphilisTreated"); + + b.Property("SyphilisTreatment"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("TetanusDose"); + + b.Property("UrinalysisVariables"); + + b.Property("VLDate"); + + b.Property("VLResult"); + + b.Property("VLSampleTaken"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WHOStaging"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempAncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ARTMother"); + + b.Property("ARTRegimenMother"); + + b.Property("ARTStartDateMother"); + + b.Property("BirthLength"); + + b.Property("BirthOrder"); + + b.Property("BirthType"); + + b.Property("BirthWeight"); + + b.Property("BreastFeeding"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Gestation"); + + b.Property("HEI"); + + b.Property("HEIDate"); + + b.Property("HEIID"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherAlive"); + + b.Property("MothersCCCNo"); + + b.Property("MothersPkv"); + + b.Property("NVP"); + + b.Property("PatientID"); + + b.Property("PatientIDCWC"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PlaceOfDelivery"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); + + b.Property("SiteCode"); + + b.Property("SpecialCare"); + + b.Property("SpecialNeeds"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempCwcEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DangerSigns"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FollowUP"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("MNPsSupplementation"); + + b.Property("MUAC"); + + b.Property("MedicationGiven"); + + b.Property("Milestones"); + + b.Property("NextAppointment"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("Stunted"); + + b.Property("TBAssessment"); + + b.Property("Temp"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminA"); + + b.Property("Weight"); + + b.Property("WeightCategory"); + + b.HasKey("Id"); + + b.ToTable("TempCwcVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BasellineVL"); + + b.Property("BasellineVLDate"); + + b.Property("CheckError"); + + b.Property("ConfirmatoryPCR"); + + b.Property("ConfirmatoryPCRDate"); + + b.Property("DNAPCR1"); + + b.Property("DNAPCR1Date"); + + b.Property("DNAPCR2"); + + b.Property("DNAPCR2Date"); + + b.Property("DNAPCR3"); + + b.Property("DNAPCR3Date"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FinalyAntibody"); + + b.Property("FinalyAntibodyDate"); + + b.Property("HEIExitCritearia"); + + b.Property("HEIExitDate"); + + b.Property("HEIHIVStatus"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHeiExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ANCVisits"); + + b.Property("AdmissionNumber"); + + b.Property("ApgarScore1"); + + b.Property("ApgarScore10"); + + b.Property("ApgarScore5"); + + b.Property("BabyBirthNumber"); + + b.Property("BabyGivenProphylaxis"); + + b.Property("BirthOutcome"); + + b.Property("BirthWeight"); + + b.Property("BirthWithDeformity"); + + b.Property("BloodLoss"); + + b.Property("BloodLossVisual"); + + b.Property("CheckError"); + + b.Property("ChlorhexidineApplied"); + + b.Property("ClinicalNotes"); + + b.Property("ConditonAfterDelivery"); + + b.Property("CounselledOn"); + + b.Property("DateExtracted"); + + b.Property("DateOfDelivery"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryComplications"); + + b.Property("DurationOfDelivery"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("GestationAtBirth"); + + b.Property("HIV1Results"); + + b.Property("HIV2Results"); + + b.Property("HIVStatusLastANC"); + + b.Property("HIVTest1"); + + b.Property("HIVTest2"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("InitiatedBF"); + + b.Property("KangarooCare"); + + b.Property("MaternalDeath"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherDischargeDate"); + + b.Property("MotherGivenCTX"); + + b.Property("NoBabiesDelivered"); + + b.Property("OnARTANC"); + + b.Property("PartnerHIVStatusMAT"); + + b.Property("PartnerHIVTestingMAT"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlacentaComplete"); + + b.Property("Project"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("SexBaby"); + + b.Property("SiteCode"); + + b.Property("StatusBabyDischarge"); + + b.Property("SyphilisTestResults"); + + b.Property("TetracyclineGiven"); + + b.Property("UterotonicGiven"); + + b.Property("VaginalExamination"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("VitaminKGiven"); + + b.HasKey("Id"); + + b.ToTable("TempMatVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); + + b.Property("SiteCode"); + + b.Property("StartARTDate"); + + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); + + b.HasKey("Id"); + + b.ToTable("TempMnchArtExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BloodGroup"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDDFromLMP"); + + b.Property("Emr"); + + b.Property("EnrollmentDateAtMnch"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstVisitAnc"); + + b.Property("Gravidae"); + + b.Property("HIVStatusBeforeANC"); + + b.Property("HIVTestDate"); + + b.Property("LMP"); + + b.Property("MnchNumber"); + + b.Property("Parity"); + + b.Property("PartnerHIVStatus"); + + b.Property("PartnerHIVTestDate"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ServiceType"); + + b.Property("SiteCode"); + + b.Property("StatusAtMnch"); + + b.HasKey("Id"); + + b.ToTable("TempMnchEnrolmentExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("LabReason"); + + b.Property("OrderedbyDate"); + + b.Property("PatientID"); + + b.Property("PatientMNCH_ID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReportedbyDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempMnchLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BabyPatientMncHeiID"); + + b.Property("BabyPatientPK"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("MotherPatientMncHeiID"); + + b.Property("MotherPatientPK"); + + b.Property("PatientID"); + + b.Property("PatientIDCCC"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempMotherBabyPairExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DOB"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EducationLevel"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEnrollmentAtMnch"); + + b.Property("Gender"); + + b.Property("InSchool"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("Occupation"); + + b.Property("PatientHeiID"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PatientResidentCounty"); + + b.Property("PatientResidentSubCounty"); + + b.Property("PatientResidentWard"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPatientMnchExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("BP"); + + b.Property("BabyConditon"); + + b.Property("BabyFeeding"); + + b.Property("Breast"); + + b.Property("BreastExam"); + + b.Property("CACxScreenMethod"); + + b.Property("CACxScreenResults"); + + b.Property("CSScar"); + + b.Property("CheckError"); + + b.Property("ClientScreenedCACx"); + + b.Property("ClinicalNotes"); + + b.Property("CounselledOnFP"); + + b.Property("CoupleCounselled"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeliveryDate"); + + b.Property("DeliveryOutcome"); + + b.Property("Emr"); + + b.Property("Episiotomy"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("Fistula"); + + b.Property("GeneralCondition"); + + b.Property("HIVTest1"); + + b.Property("HIVTest1Result"); + + b.Property("HIVTest2"); + + b.Property("HIVTest2Result"); + + b.Property("HIVTestFinalResult"); + + b.Property("HIVTestingDone"); + + b.Property("HaematinicsGiven"); + + b.Property("HasPallor"); + + b.Property("Height"); + + b.Property("Immunization"); + + b.Property("InfantFeeding"); + + b.Property("InfantProphylaxisGiven"); + + b.Property("Lochia"); + + b.Property("MUAC"); + + b.Property("MaternalComplications"); + + b.Property("ModeOfDelivery"); + + b.Property("MotherProphylaxisGiven"); + + b.Property("NextAppointmentPNC"); + + b.Property("OxygenSaturation"); + + b.Property("PNCRegisterNumber"); + + b.Property("PNCVisitNo"); + + b.Property("PPH"); + + b.Property("Pallor"); + + b.Property("PartnerHIVResultPNC"); + + b.Property("PartnerHIVTestingPNC"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("PlaceOfDelivery"); + + b.Property("PreventiveServices"); + + b.Property("PriorHIVStatus"); + + b.Property("Project"); + + b.Property("PulseRate"); + + b.Property("ReceivedFP"); + + b.Property("ReferredFrom"); + + b.Property("ReferredTo"); + + b.Property("RespiratoryRate"); + + b.Property("SiteCode"); + + b.Property("TBScreening"); + + b.Property("Temp"); + + b.Property("UmbilicalCord"); + + b.Property("UterusInvolution"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPncVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateCreated"); + + b.Property("Indicator"); + + b.Property("IndicatorDate"); + + b.Property("IndicatorValue"); + + b.HasKey("Id"); + + b.ToTable("TempIndicatorExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientPreviouslyonPrep"); + + b.Property("ClientType"); + + b.Property("County"); + + b.Property("CountyofBirth"); + + b.Property("DateExtracted"); + + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DatefirstinitiatedinPrepCare"); + + b.Property("DateofBirth"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("Inschool"); + + b.Property("KeyPopulationType"); + + b.Property("LandMark"); + + b.Property("Location"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("PrepEnrollmentDate"); + + b.Property("PrepNumber"); + + b.Property("PrevPrepReg"); + + b.Property("Project"); + + b.Property("ReferralPoint"); + + b.Property("Refferedfrom"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("TransferFromFacility"); + + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPrepExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdverseEvent"); + + b.Property("AdverseEventActionTaken"); + + b.Property("AdverseEventCause"); + + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Severity"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.HasKey("Id"); + + b.ToTable("TempPrepAdverseEventExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); + + b.Property("ClientWillingToTakePrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstEstablishPartnerStatus"); + + b.Property("HIVPartnerARTStartDate"); + + b.Property("HIVPartnerCCCnumber"); + + b.Property("HtsNumber"); + + b.Property("IsHIVPositivePartnerCurrentonART"); + + b.Property("IsPartnerHighrisk"); + + b.Property("MonthsknownHIVSerodiscordant"); + + b.Property("NumberofchildrenWithPartner"); + + b.Property("PartnerARTRisk"); + + b.Property("PartnerEnrolledtoCCC"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepBehaviourRiskExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfLastPrepDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempPrepCareTerminationExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("SampleDate"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepLabExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PrepNumber"); + + b.Property("Project"); + + b.Property("RegimenPrescribed"); + + b.Property("SiteCode"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPrepPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdherenceDone"); + + b.Property("AdherenceOutcome"); + + b.Property("AdherenceReasons"); + + b.Property("BMI"); + + b.Property("BirthDefects"); + + b.Property("BloodPressure"); + + b.Property("Breastfeeding"); + + b.Property("CheckError"); + + b.Property("Circumcised"); + + b.Property("ClinicalNotes"); + + b.Property("CondomsIssued"); + + b.Property("ContraindicationsPrep"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FPMethods"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningStatus"); + + b.Property("Height"); + + b.Property("HepatitisBPositiveResult"); + + b.Property("HepatitisCPositiveResult"); + + b.Property("HtsNumber"); + + b.Property("LMP"); + + b.Property("MenopausalStatus"); + + b.Property("MonthsPrescribed"); + + b.Property("NextAppointment"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PlanningToGetPregnant"); + + b.Property("PregnancyEndDate"); + + b.Property("PregnancyEnded"); + + b.Property("PregnancyOutcome"); + + b.Property("PregnancyPlanned"); + + b.Property("PregnantAtThisVisit"); + + b.Property("PrepNumber"); + + b.Property("PrepPrescribed"); + + b.Property("PrepTreatmentPlan"); + + b.Property("Project"); + + b.Property("Reasonfornotgivingnextappointment"); + + b.Property("RegimenPrescribed"); + + b.Property("STIScreening"); + + b.Property("STISymptoms"); + + b.Property("STITreated"); + + b.Property("SiteCode"); + + b.Property("SymptomsAcuteHIV"); + + b.Property("Temperature"); + + b.Property("Tobegivennextappointment"); + + b.Property("TreatedForHepB"); + + b.Property("TreatedForHepC"); + + b.Property("VMMCReferral"); + + b.Property("VaccinationForHepBStarted"); + + b.Property("VaccinationForHepCStarted"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPrepVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("RecordId"); + + b.Property("ValidatorId"); + + b.HasKey("Id"); + + b.HasIndex("ValidatorId"); + + b.ToTable("ValidationError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Validator", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Extract"); + + b.Property("Field"); + + b.Property("Logic"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("Validator"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("AllergiesChronicIllnessExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.ContactListingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("ContactListingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DepressionScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DrugAlcoholScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DrugAlcoholScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.EnhancedAdherenceCounsellingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("EnhancedAdherenceCounsellingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.GbvScreeningExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("GbvScreeningExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.IptExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("IptExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OtzExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OtzExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.OvcExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("OvcExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientBaselinesExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientBaselinesExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientLaboratoryExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientLaboratoryExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientStatusExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientStatusExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("PatientVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientLinkage", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientLinkages") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTests", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTestss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClientTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsClientTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerNotificationServicess") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerTracing", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsPartnerTracings") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsTestKits", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsTestKitss") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.AncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("AncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.CwcVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("CwcVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.HeiExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("HeiExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MatVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MatVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchArtExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchArtExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchEnrolmentExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchEnrolmentExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MnchLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MnchLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.MotherBabyPairExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("MotherBabyPairExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PncVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Mnch.PatientMnchExtract") + .WithMany("PncVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") + .WithMany("ValidationErrors") + .HasForeignKey("ValidatorId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220818064032_PatientExtractsAddedRefillDateViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220818064032_PatientExtractsAddedRefillDateViews.cs new file mode 100644 index 00000000..10cdcdf4 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220818064032_PatientExtractsAddedRefillDateViews.cs @@ -0,0 +1,75 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.ExtractsManagement.Infrastructure.Migrations +{ + public partial class PatientExtractsAddedRefillDateViews : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.Sql(@"ALTER view vTempPatientVisitExtractError as SELECT * FROM TempPatientVisitExtracts WHERE (CheckError = 1)"); + + migrationBuilder.Sql(@" + ALTER VIEW vTempPatientVisitExtractErrorSummary + AS + SELECT ValidationError.Id, Validator.Extract, Validator.Field, Validator.Type, Validator.Summary, ValidationError.DateGenerated, ValidationError.RecordId, + vTempPatientVisitExtractError.PatientPK, + vTempPatientVisitExtractError.FacilityId, + vTempPatientVisitExtractError.PatientID, + vTempPatientVisitExtractError.SiteCode, + vTempPatientVisitExtractError.FacilityName, + vTempPatientVisitExtractError.VisitDate, + vTempPatientVisitExtractError.Service, + vTempPatientVisitExtractError.VisitType, + vTempPatientVisitExtractError.WHOStage, + vTempPatientVisitExtractError.WABStage, + vTempPatientVisitExtractError.Pregnant, + vTempPatientVisitExtractError.LMP, + vTempPatientVisitExtractError.EDD, + vTempPatientVisitExtractError.Height, + vTempPatientVisitExtractError.Weight, + vTempPatientVisitExtractError.BP, + vTempPatientVisitExtractError.OI, + vTempPatientVisitExtractError.OIDate, + vTempPatientVisitExtractError.Adherence, + vTempPatientVisitExtractError.AdherenceCategory, + vTempPatientVisitExtractError.SubstitutionFirstlineRegimenDate, + vTempPatientVisitExtractError.SubstitutionFirstlineRegimenReason, + vTempPatientVisitExtractError.SubstitutionSecondlineRegimenDate, + vTempPatientVisitExtractError.SubstitutionSecondlineRegimenReason, + vTempPatientVisitExtractError.SecondlineRegimenChangeDate, + vTempPatientVisitExtractError.SecondlineRegimenChangeReason, + vTempPatientVisitExtractError.FamilyPlanningMethod, + vTempPatientVisitExtractError.PwP, + vTempPatientVisitExtractError.GestationAge, + vTempPatientVisitExtractError.NextAppointmentDate, + vTempPatientVisitExtractError.VisitId, + + vTempPatientVisitExtractError.GeneralExamination, + vTempPatientVisitExtractError.SystemExamination, + vTempPatientVisitExtractError.Skin, + vTempPatientVisitExtractError.Eyes, + vTempPatientVisitExtractError.ENT, + vTempPatientVisitExtractError.Chest, + vTempPatientVisitExtractError.CVS, + vTempPatientVisitExtractError.Abdomen, + vTempPatientVisitExtractError.CNS, + vTempPatientVisitExtractError.Genitourinary, + + vTempPatientVisitExtractError.Date_Created, + vTempPatientVisitExtractError.Date_Last_Modified, + vTempPatientVisitExtractError.RefillDate + + + FROM vTempPatientVisitExtractError INNER JOIN + ValidationError ON vTempPatientVisitExtractError.Id = ValidationError.RecordId INNER JOIN + Validator ON ValidationError.ValidatorId = Validator.Id + + "); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/ExtractsContextModelSnapshot.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/ExtractsContextModelSnapshot.cs index a14d665e..c349cbb3 100644 --- a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/ExtractsContextModelSnapshot.cs +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/ExtractsContextModelSnapshot.cs @@ -3,7 +3,6 @@ using Dwapi.ExtractsManagement.Infrastructure; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Dwapi.ExtractsManagement.Infrastructure.Migrations @@ -16,8 +15,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Cbs.MasterPatientIndex", b => { @@ -131,6 +129,122 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("MasterPatientIndices"); }); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Crs.ClientRegistryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + + b.Property("County"); + + b.Property("CurrentOnART"); + + b.Property("DateExtracted"); + + b.Property("DateOfBirth"); + + b.Property("DateOfHIVdiagnosis"); + + b.Property("DateOfInitiation"); + + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DrivingLicenseNumber"); + + b.Property("Emr"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstName"); + + b.Property("HighestLevelOfEducation"); + + b.Property("HudumaNumber"); + + b.Property("Landmark"); + + b.Property("LastName"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastViralLoadResult"); + + b.Property("Location"); + + b.Property("MFLCode"); + + b.Property("MaritalStatus"); + + b.Property("MiddleName"); + + b.Property("NameOfNextOfKin"); + + b.Property("NationalId"); + + b.Property("NextAppointmentDate"); + + b.Property("NextOfKinRelationship"); + + b.Property("NextOfKinTelNo"); + + b.Property("Occupation"); + + b.Property("Passport"); + + b.Property("PatientClinicNumber"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PhoneNumber"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("Sex"); + + b.Property("SiteCode"); + + b.Property("SpousePhoneNumber"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SubCounty"); + + b.Property("TreatmentOutcome"); + + b.Property("Village"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("ClientRegistryExtracts"); + }); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.AllergiesChronicIllnessExtract", b => { b.Property("Id") @@ -214,6 +328,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ContactMaritalStatus"); + b.Property("ContactPatientPK"); + b.Property("ContactSex"); b.Property("CurrentlyLivingWithIndexClient"); @@ -267,6 +383,170 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("ContactListingExtracts"); }); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdmissionEndDate"); + + b.Property("AdmissionStartDate"); + + b.Property("AdmissionStatus"); + + b.Property("AdmissionStatusSinceLastVisit"); + + b.Property("AdmissionUnit"); + + b.Property("AdmissionUnitSinceLastVisit"); + + b.Property("BoosterDose"); + + b.Property("BoosterDoseDate"); + + b.Property("BoosterGiven"); + + b.Property("COVID19PositiveSinceLasVisit"); + + b.Property("COVID19TestDate"); + + b.Property("COVID19TestDateSinceLastVisit"); + + b.Property("COVID19TestResult"); + + b.Property("CauseOfDeath"); + + b.Property("Covid19AssessmentDate"); + + b.Property("DateExtracted"); + + b.Property("DateGivenFirstDose"); + + b.Property("DateGivenSecondDose"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EverCOVID19Positive"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FirstDoseVaccineAdministered"); + + b.Property("MissedAppointmentDueToCOVID19"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PatientStatus"); + + b.Property("PatientStatusSinceLastVisit"); + + b.Property("PatientVentilated"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReceivedCOVID19Vaccine"); + + b.Property("SecondDoseVaccineAdministered"); + + b.Property("Sequence"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("SupplementalOxygenReceived"); + + b.Property("TracingFinalOutcome"); + + b.Property("VaccinationStatus"); + + b.Property("VaccineVerification"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("CovidExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AttemptNumber"); + + b.Property("BookingDate"); + + b.Property("CauseOfDeath"); + + b.Property("Comments"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("SiteCode"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.Property("TrueStatus"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("DefaulterTracingExtracts"); + }); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => { b.Property("Id") @@ -1037,6 +1317,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MaritalStatus"); + b.Property("NUPI"); + b.Property("Occupation"); b.Property("Orphan"); @@ -1239,6 +1521,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Date_Last_Modified"); + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + b.Property("Emr"); b.Property("ExitDate"); @@ -1263,8 +1549,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ReEnrollmentDate"); + b.Property("ReasonForDeath"); + b.Property("SiteCode"); + b.Property("SpecificDeathReason"); + b.Property("Status"); b.Property("StatusDate"); @@ -1381,6 +1671,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("QueueId"); + b.Property("RefillDate"); + b.Property("RespiratoryRate"); b.Property("SecondlineRegimenChangeDate"); @@ -1493,12 +1785,16 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MonthsLastTested"); + b.Property("NUPI"); + b.Property("PatientConsented"); b.Property("PatientDisabled"); b.Property("PatientPk"); + b.Property("Pkv"); + b.Property("PopulationType"); b.Property("Processed"); @@ -1746,8 +2042,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MaritalStatus"); + b.Property("NUPI"); + b.Property("PatientDisabled"); + b.Property("Pkv"); + b.Property("PopulationType"); b.Property("Processed"); @@ -1877,60 +2177,220 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("HtsClientTracingExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("Age"); + b.Property("AlcoholSex"); - b.Property("CccNumber"); + b.Property("AssessmentOutcome"); - b.Property("CurrentlyLivingWithIndexClient"); + b.Property("BreastfeedingMother"); - b.Property("DateElicited"); + b.Property("CCCNumber"); - b.Property("DateExtracted"); + b.Property("ChildReasonsForIneligibility"); - b.Property("Dob"); + b.Property("CondomBurst"); - b.Property("Emr"); + b.Property("ContactWithTBCase"); - b.Property("FacilityLinkedTo"); + b.Property("Cough"); - b.Property("FacilityName"); + b.Property("CoupleDiscordant"); - b.Property("HtsNumber"); + b.Property("CurrentlyHasSTI"); - b.Property("IpvScreeningOutcome"); + b.Property("CurrentlyOnPep"); - b.Property("KnowledgeOfHivStatus"); + b.Property("CurrentlyOnPrep"); - b.Property("LinkDateLinkedToCare"); + b.Property("DateCreated"); - b.Property("LinkedToCare"); + b.Property("DateExtracted"); - b.Property("MaritalStatus"); + b.Property("DateLastModified"); - b.Property("PartnerPatientPk"); + b.Property("DateTestedProvider"); - b.Property("PartnerPersonID"); + b.Property("DateTestedSelf"); - b.Property("PatientPk"); + b.Property("Department"); - b.Property("PnsApproach"); + b.Property("EligibleForTest"); - b.Property("PnsConsent"); + b.Property("Emr"); - b.Property("Processed"); + b.Property("EncounterId"); - b.Property("Project"); + b.Property("EverHadSTI"); - b.Property("QueueId"); + b.Property("EverHadSex"); - b.Property("RelationsipToIndexClient"); + b.Property("EverHadTB"); - b.Property("ScreenedForIpv"); + b.Property("EverOnPep"); + + b.Property("EverOnPrep"); + + b.Property("ExperiencedGBV"); + + b.Property("FacilityName"); + + b.Property("Fever"); + + b.Property("ForcedSex"); + + b.Property("HtsNumber"); + + b.Property("IsHealthWorker"); + + b.Property("KeyPopulation"); + + b.Property("KnownStatusPartner"); + + b.Property("Lethargy"); + + b.Property("MoneySex"); + + b.Property("MothersStatus"); + + b.Property("MultiplePartners"); + + b.Property("NeedleStickInjuries"); + + b.Property("NewPartner"); + + b.Property("NightSweats"); + + b.Property("NumberOfPartners"); + + b.Property("PartnerHIVStatus"); + + b.Property("PatientPk"); + + b.Property("PatientType"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PriorityPopulation"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("ReasonsForIneligibility"); + + b.Property("ReceivedServices"); + + b.Property("ReferredForTesting"); + + b.Property("RelationshipWithContact"); + + b.Property("ResultOfHIV"); + + b.Property("ResultOfHIVSelf"); + + b.Property("ScreenedTB"); + + b.Property("SexuallyActive"); + + b.Property("SharedNeedle"); + + b.Property("SiteCode"); + + b.Property("SpecificReasonForIneligibility"); + + b.Property("StartedOnART"); + + b.Property("Status"); + + b.Property("StatusDate"); + + b.Property("TBStatus"); + + b.Property("TestedHIVBefore"); + + b.Property("TraditionalProcedures"); + + b.Property("TypeGBV"); + + b.Property("UnknownStatusPartner"); + + b.Property("VisitDate"); + + b.Property("VisitID"); + + b.Property("WeightLoss"); + + b.Property("WhoPerformedTest"); + + b.HasKey("Id"); + + b.HasIndex("SiteCode", "PatientPk"); + + b.ToTable("HtsEligibilityExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); + + b.Property("MaritalStatus"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); + + b.Property("PatientPk"); + + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + + b.Property("Processed"); + + b.Property("Project"); + + b.Property("QueueId"); + + b.Property("RelationsipToIndexClient"); + + b.Property("ScreenedForIpv"); b.Property("Sex"); @@ -2444,23 +2904,23 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("BasellineVL"); + b.Property("BasellineVL"); b.Property("BasellineVLDate"); - b.Property("ConfirmatoryPCR"); + b.Property("ConfirmatoryPCR"); b.Property("ConfirmatoryPCRDate"); - b.Property("DNAPCR1"); + b.Property("DNAPCR1"); b.Property("DNAPCR1Date"); - b.Property("DNAPCR2"); + b.Property("DNAPCR2"); b.Property("DNAPCR2Date"); - b.Property("DNAPCR3"); + b.Property("DNAPCR3"); b.Property("DNAPCR3Date"); @@ -2476,7 +2936,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityName"); - b.Property("FinalyAntibody"); + b.Property("FinalyAntibody"); b.Property("FinalyAntibodyDate"); @@ -2919,6 +3379,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MaritalStatus"); + b.Property("NUPI"); + b.Property("Occupation"); b.Property("PatientHeiID"); @@ -3130,807 +3592,752 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("IndicatorExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract", b => { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("SiteCode"); - b.Property("Docket"); + b.Property("PatientPK"); - b.Property("Extract"); + b.Property("ClientPreviouslyonPrep"); - b.Property("LastCreated"); + b.Property("ClientType"); - b.Property("LastModified"); + b.Property("County"); - b.Property("LastSent"); + b.Property("CountyofBirth"); - b.Property("MaxCreated"); + b.Property("DateExtracted"); - b.Property("MaxModified"); + b.Property("DateLastUsedPrev"); - b.HasKey("Id"); + b.Property("DateStartedPrEPattransferringfacility"); - b.ToTable("DiffLogs"); - }); + b.Property("Date_Created"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("Date_Last_Modified"); - b.Property("ExtractId"); + b.Property("DatefirstinitiatedinPrepCare"); - b.Property("Stats"); + b.Property("DateofBirth"); - b.Property("Status"); + b.Property("Emr"); - b.Property("StatusDate"); + b.Property("FacilityId"); - b.Property("StatusInfo"); + b.Property("FacilityName"); - b.HasKey("Id"); + b.Property("HtsNumber"); - b.ToTable("ExtractHistory"); - }); + b.Property("Id"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => - { - b.Property("EId") - .ValueGeneratedOnAdd(); + b.Property("Inschool"); - b.Property("DateExtracted"); + b.Property("KeyPopulationType"); - b.Property("DateSent"); + b.Property("LandMark"); - b.Property("DateStaged"); + b.Property("Location"); - b.Property("Date_Created"); + b.Property("MaritalStatus"); - b.Property("Emr"); + b.Property("NUPI"); - b.Property("Id"); + b.Property("PatientID"); - b.Property("RequestId"); + b.Property("PopulationType"); - b.Property("Shr"); + b.Property("PrepEnrollmentDate"); - b.Property("Status") - .HasMaxLength(100); + b.Property("PrepNumber"); - b.Property("Status_Date"); + b.Property("PrevPrepReg"); - b.Property("Uuid"); + b.Property("Processed"); - b.HasKey("EId"); + b.Property("Project"); - b.ToTable("PsmartStage"); - }); + b.Property("QueueId"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("ReferralPoint"); - b.Property("Birth_Certificate"); + b.Property("Refferedfrom"); - b.Property("CCC_Number"); + b.Property("Sex"); - b.Property("CheckError"); + b.Property("Status"); - b.Property("ContactAddress"); + b.Property("StatusDate"); - b.Property("ContactName"); + b.Property("SubCounty"); - b.Property("ContactPhoneNumber"); + b.Property("TransferFromFacility"); - b.Property("ContactRelation"); + b.Property("TransferIn"); - b.Property("DOB"); + b.Property("TransferInDate"); - b.Property("DateConfirmedHIVPositive"); + b.Property("Ward"); - b.Property("DateExtracted"); + b.HasKey("SiteCode", "PatientPK"); - b.Property("FacilityName"); + b.HasAlternateKey("Id"); - b.Property("FirstName"); + b.ToTable("PatientPrepExtracts"); + }); - b.Property("FirstName_Normalized"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("Gender"); + b.Property("AdverseEvent"); - b.Property("JaroWinklerScore"); + b.Property("AdverseEventActionTaken"); - b.Property("LastName"); + b.Property("AdverseEventCause"); - b.Property("LastName_Normalized"); + b.Property("AdverseEventClinicalOutcome"); - b.Property("MaritalStatus"); + b.Property("AdverseEventEndDate"); - b.Property("MiddleName"); + b.Property("AdverseEventIsPregnant"); - b.Property("MiddleName_Normalized"); + b.Property("AdverseEventRegimen"); - b.Property("NHIF_Number"); + b.Property("AdverseEventStartDate"); - b.Property("National_ID"); + b.Property("DateExtracted"); - b.Property("PatientAlternatePhoneNumber"); + b.Property("Date_Created"); - b.Property("PatientCounty"); + b.Property("Date_Last_Modified"); - b.Property("PatientID"); + b.Property("Emr"); - b.Property("PatientPhoneNumber"); + b.Property("FacilityId"); - b.Property("PatientPk"); + b.Property("FacilityName"); - b.Property("PatientSource"); + b.Property("PatientID"); - b.Property("PatientSubCounty"); + b.Property("PatientPK"); - b.Property("PatientVillage"); + b.Property("PrepNumber"); - b.Property("Serial"); + b.Property("Processed"); - b.Property("SiteCode"); - - b.Property("StartARTDate"); - - b.Property("StartARTRegimenCode"); + b.Property("Project"); - b.Property("StartARTRegimenDesc"); + b.Property("QueueId"); - b.Property("TB_Number"); + b.Property("Severity"); - b.Property("dmFirstName"); + b.Property("SiteCode"); - b.Property("dmLastName"); + b.Property("Status"); - b.Property("dmMiddleName"); + b.Property("StatusDate"); - b.Property("dmPKValue"); + b.Property("VisitDate"); - b.Property("dmPKValueDoB"); + b.HasKey("Id"); - b.Property("sxFirstName"); + b.HasIndex("SiteCode", "PatientPK"); - b.Property("sxLastName"); + b.ToTable("PrepAdverseEventExtracts"); + }); - b.Property("sxMiddleName"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("sxPKValue"); + b.Property("ClientAssessments"); - b.Property("sxPKValueDoB"); + b.Property("ClientRisk"); - b.Property("sxdmPKValue"); + b.Property("ClientWillingToTakePrep"); - b.Property("sxdmPKValueDoB"); + b.Property("DateExtracted"); - b.HasKey("Id"); + b.Property("Date_Created"); - b.ToTable("TempMasterPatientIndices"); - }); + b.Property("Date_Last_Modified"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("Emr"); - b.Property("Abdomen"); + b.Property("FacilityId"); - b.Property("AllergicReaction"); + b.Property("FacilityName"); - b.Property("AllergyCausativeAgent"); + b.Property("FirstEstablishPartnerStatus"); - b.Property("AllergyOnsetDate"); + b.Property("HIVPartnerARTStartDate"); - b.Property("AllergySeverity"); + b.Property("HIVPartnerCCCnumber"); - b.Property("CNS"); + b.Property("HtsNumber"); - b.Property("CVS"); + b.Property("IsHIVPositivePartnerCurrentonART"); - b.Property("CheckError"); + b.Property("IsPartnerHighrisk"); - b.Property("Chest"); + b.Property("MonthsknownHIVSerodiscordant"); - b.Property("ChronicIllness"); + b.Property("NumberofchildrenWithPartner"); - b.Property("ChronicOnsetDate"); + b.Property("PartnerARTRisk"); - b.Property("DateExtracted"); + b.Property("PartnerEnrolledtoCCC"); - b.Property("Date_Created"); + b.Property("PatientID"); - b.Property("Date_Last_Modified"); + b.Property("PatientPK"); - b.Property("ENT"); + b.Property("PrEPDeclineReason"); - b.Property("Emr"); + b.Property("PrepNumber"); - b.Property("ErrorType"); + b.Property("Processed"); - b.Property("Eyes"); + b.Property("Project"); - b.Property("FacilityId"); + b.Property("QueueId"); - b.Property("FacilityName"); + b.Property("ReferralToOtherPrevServices"); - b.Property("Genitourinary"); + b.Property("RiskReductionEducationOffered"); - b.Property("PatientID"); + b.Property("SexPartnerHIVStatus"); - b.Property("PatientPK"); + b.Property("SexWithoutCondom"); - b.Property("Project"); + b.Property("SiteCode"); - b.Property("SiteCode"); + b.Property("Status"); - b.Property("Skin"); + b.Property("StatusDate"); b.Property("VisitDate"); b.Property("VisitID"); - b.Property("knownAllergies"); - b.HasKey("Id"); - b.ToTable("TempAllergiesChronicIllnessExtracts"); + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepBehaviourRiskExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("Abdomen"); - - b.Property("AllergicReaction"); - - b.Property("AllergyCausativeAgent"); - - b.Property("AllergyOnsetDate"); - - b.Property("AllergySeverity"); - - b.Property("CNS"); - - b.Property("CVS"); - - b.Property("CheckError"); - - b.Property("Chest"); - - b.Property("ChronicIllness"); - - b.Property("ChronicOnsetDate"); + b.Property("DateExtracted"); - b.Property("DateExtracted"); + b.Property("DateOfLastPrepDose"); b.Property("Date_Created"); b.Property("Date_Last_Modified"); - b.Property("ENT"); - b.Property("Emr"); - b.Property("ErrorType"); + b.Property("ExitDate"); - b.Property("Eyes"); + b.Property("ExitReason"); b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("Genitourinary"); + b.Property("HtsNumber"); b.Property("PatientID"); - b.Property("PatientPK"); + b.Property("PatientPK"); - b.Property("Project"); + b.Property("PrepNumber"); - b.Property("SiteCode"); + b.Property("Processed"); - b.Property("Skin"); + b.Property("Project"); - b.Property("VisitDate"); + b.Property("QueueId"); - b.Property("VisitID"); + b.Property("SiteCode"); - b.Property("knownAllergies"); + b.Property("Status"); + + b.Property("StatusDate"); b.HasKey("Id"); - b.ToTable("vTempAllergiesChronicIllnessExtractError"); + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepCareTerminationExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("Abdomen"); - - b.Property("AllergicReaction"); - - b.Property("AllergyCausativeAgent"); - - b.Property("AllergyOnsetDate"); - - b.Property("AllergySeverity"); - - b.Property("CNS"); - - b.Property("CVS"); - - b.Property("Chest"); + b.Property("DateExtracted"); - b.Property("ChronicIllness"); + b.Property("Date_Created"); - b.Property("ChronicOnsetDate"); + b.Property("Date_Last_Modified"); - b.Property("DateGenerated"); + b.Property("Emr"); - b.Property("Date_Created"); + b.Property("FacilityId"); - b.Property("Date_Last_Modified"); + b.Property("FacilityName"); - b.Property("ENT"); + b.Property("HtsNumber"); - b.Property("Extract"); + b.Property("PatientID"); - b.Property("Eyes"); + b.Property("PatientPK"); - b.Property("FacilityId"); + b.Property("PrepNumber"); - b.Property("FacilityName"); + b.Property("Processed"); - b.Property("Field"); + b.Property("Project"); - b.Property("Genitourinary"); + b.Property("QueueId"); - b.Property("PatientID"); + b.Property("Reason"); - b.Property("PatientPK"); + b.Property("SampleDate"); - b.Property("RecordId"); + b.Property("SiteCode"); - b.Property("SiteCode"); + b.Property("Status"); - b.Property("Skin"); + b.Property("StatusDate"); - b.Property("Summary"); + b.Property("TestName"); - b.Property("Type"); + b.Property("TestResult"); - b.Property("VisitDate"); + b.Property("TestResultDate"); b.Property("VisitID"); - b.Property("knownAllergies"); - b.HasKey("Id"); - b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepLabExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CheckError"); - - b.Property("ContactAge"); - - b.Property("ContactMaritalStatus"); - - b.Property("ContactSex"); - - b.Property("CurrentlyLivingWithIndexClient"); - - b.Property("DateExtracted"); + b.Property("DateExtracted"); b.Property("Date_Created"); b.Property("Date_Last_Modified"); - b.Property("Emr"); + b.Property("DispenseDate"); - b.Property("ErrorType"); + b.Property("Duration"); + + b.Property("Emr"); b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("IPVScreeningOutcome"); + b.Property("HtsNumber"); - b.Property("IpvScreening"); + b.Property("PatientID"); - b.Property("KnowledgeOfHivStatus"); + b.Property("PatientPK"); - b.Property("PartnerPersonID"); + b.Property("PrepNumber"); - b.Property("PatientID"); + b.Property("Processed"); - b.Property("PatientPK"); + b.Property("Project"); - b.Property("PnsApproach"); + b.Property("QueueId"); - b.Property("Project"); + b.Property("RegimenPrescribed"); - b.Property("RelationshipWithPatient"); + b.Property("SiteCode"); - b.Property("ScreenedForIpv"); + b.Property("Status"); - b.Property("SiteCode"); + b.Property("StatusDate"); + + b.Property("VisitID"); b.HasKey("Id"); - b.ToTable("TempContactListingExtracts"); + b.HasIndex("SiteCode", "PatientPK"); + + b.ToTable("PrepPharmacyExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CheckError"); + b.Property("AdherenceDone"); - b.Property("ContactAge"); + b.Property("AdherenceOutcome"); - b.Property("ContactMaritalStatus"); + b.Property("AdherenceReasons"); - b.Property("ContactSex"); + b.Property("BMI"); - b.Property("CurrentlyLivingWithIndexClient"); + b.Property("BirthDefects"); - b.Property("DateExtracted"); + b.Property("BloodPressure"); - b.Property("Date_Created"); + b.Property("Breastfeeding"); - b.Property("Date_Last_Modified"); + b.Property("Circumcised"); - b.Property("Emr"); + b.Property("ClinicalNotes"); - b.Property("ErrorType"); + b.Property("CondomsIssued"); - b.Property("FacilityId"); + b.Property("ContraindicationsPrep"); - b.Property("FacilityName"); + b.Property("DateExtracted"); - b.Property("IPVScreeningOutcome"); + b.Property("Date_Created"); - b.Property("IpvScreening"); - - b.Property("KnowledgeOfHivStatus"); - - b.Property("PartnerPersonID"); - - b.Property("PatientID"); - - b.Property("PatientPK"); - - b.Property("PnsApproach"); + b.Property("Date_Last_Modified"); - b.Property("Project"); + b.Property("EDD"); - b.Property("RelationshipWithPatient"); + b.Property("Emr"); - b.Property("ScreenedForIpv"); + b.Property("EncounterId"); - b.Property("SiteCode"); + b.Property("FPMethods"); - b.HasKey("Id"); + b.Property("FacilityId"); - b.ToTable("vTempContactListingExtractError"); - }); + b.Property("FacilityName"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtractErrorSummary", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("FamilyPlanningStatus"); - b.Property("ContactAge"); + b.Property("Height"); - b.Property("ContactMaritalStatus"); + b.Property("HepatitisBPositiveResult"); - b.Property("ContactSex"); + b.Property("HepatitisCPositiveResult"); - b.Property("CurrentlyLivingWithIndexClient"); + b.Property("HtsNumber"); - b.Property("DateGenerated"); + b.Property("LMP"); - b.Property("Date_Created"); + b.Property("MenopausalStatus"); - b.Property("Date_Last_Modified"); + b.Property("MonthsPrescribed"); - b.Property("Extract"); + b.Property("NextAppointment"); - b.Property("FacilityId"); + b.Property("PatientID"); - b.Property("FacilityName"); + b.Property("PatientPK"); - b.Property("Field"); + b.Property("PlanningToGetPregnant"); - b.Property("IPVScreeningOutcome"); + b.Property("PregnancyEndDate"); - b.Property("IpvScreening"); + b.Property("PregnancyEnded"); - b.Property("KnowledgeOfHivStatus"); + b.Property("PregnancyOutcome"); - b.Property("PartnerPersonID"); + b.Property("PregnancyPlanned"); - b.Property("PatientID"); + b.Property("PregnantAtThisVisit"); - b.Property("PatientPK"); + b.Property("PrepNumber"); - b.Property("PnsApproach"); + b.Property("PrepPrescribed"); - b.Property("RecordId"); + b.Property("PrepTreatmentPlan"); - b.Property("RelationshipWithPatient"); + b.Property("Processed"); - b.Property("ScreenedForIpv"); + b.Property("Project"); - b.Property("SiteCode"); + b.Property("QueueId"); - b.Property("Summary"); + b.Property("Reasonfornotgivingnextappointment"); - b.Property("Type"); + b.Property("RegimenPrescribed"); - b.HasKey("Id"); + b.Property("STIScreening"); - b.ToTable("vTempContactListingExtractErrorSummary"); - }); + b.Property("STISymptoms"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("STITreated"); - b.Property("CheckError"); + b.Property("SiteCode"); - b.Property("DateExtracted"); + b.Property("Status"); - b.Property("Date_Created"); + b.Property("StatusDate"); - b.Property("Date_Last_Modified"); + b.Property("SymptomsAcuteHIV"); - b.Property("DepressionAssesmentScore"); + b.Property("Temperature"); - b.Property("Emr"); + b.Property("Tobegivennextappointment"); - b.Property("ErrorType"); + b.Property("TreatedForHepB"); - b.Property("FacilityId"); + b.Property("TreatedForHepC"); - b.Property("FacilityName"); + b.Property("VMMCReferral"); - b.Property("PHQ9_1"); + b.Property("VaccinationForHepBStarted"); - b.Property("PHQ9_2"); + b.Property("VaccinationForHepCStarted"); - b.Property("PHQ9_3"); + b.Property("VisitDate"); - b.Property("PHQ9_4"); + b.Property("VisitID"); - b.Property("PHQ9_5"); + b.Property("Weight"); - b.Property("PHQ9_6"); + b.HasKey("Id"); - b.Property("PHQ9_7"); + b.HasIndex("SiteCode", "PatientPK"); - b.Property("PHQ9_8"); + b.ToTable("PrepVisitExtracts"); + }); - b.Property("PHQ9_9"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Diff.DiffLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("PHQ_9_rating"); + b.Property("Docket"); - b.Property("PatientID"); + b.Property("Extract"); - b.Property("PatientPK"); + b.Property("LastCreated"); - b.Property("Project"); + b.Property("LastModified"); - b.Property("SiteCode"); + b.Property("LastSent"); - b.Property("VisitDate"); + b.Property("MaxCreated"); - b.Property("VisitID"); + b.Property("MaxModified"); b.HasKey("Id"); - b.ToTable("TempDepressionScreeningExtracts"); + b.ToTable("DiffLogs"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ExtractHistory", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CheckError"); - - b.Property("DateExtracted"); - - b.Property("Date_Created"); - - b.Property("Date_Last_Modified"); - - b.Property("DepressionAssesmentScore"); - - b.Property("Emr"); - - b.Property("ErrorType"); + b.Property("ExtractId"); - b.Property("FacilityId"); + b.Property("Stats"); - b.Property("FacilityName"); + b.Property("Status"); - b.Property("PHQ9_1"); + b.Property("StatusDate"); - b.Property("PHQ9_2"); + b.Property("StatusInfo"); - b.Property("PHQ9_3"); + b.HasKey("Id"); - b.Property("PHQ9_4"); + b.ToTable("ExtractHistory"); + }); - b.Property("PHQ9_5"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.PsmartStage", b => + { + b.Property("EId") + .ValueGeneratedOnAdd(); - b.Property("PHQ9_6"); + b.Property("DateExtracted"); - b.Property("PHQ9_7"); + b.Property("DateSent"); - b.Property("PHQ9_8"); + b.Property("DateStaged"); - b.Property("PHQ9_9"); + b.Property("Date_Created"); - b.Property("PHQ_9_rating"); + b.Property("Emr"); - b.Property("PatientID"); + b.Property("Id"); - b.Property("PatientPK"); + b.Property("RequestId"); - b.Property("Project"); + b.Property("Shr"); - b.Property("SiteCode"); + b.Property("Status") + .HasMaxLength(100); - b.Property("VisitDate"); + b.Property("Status_Date"); - b.Property("VisitID"); + b.Property("Uuid"); - b.HasKey("Id"); + b.HasKey("EId"); - b.ToTable("vTempDepressionScreeningExtractError"); + b.ToTable("PsmartStage"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Cbs.TempMasterPatientIndex", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("DateGenerated"); + b.Property("Birth_Certificate"); - b.Property("Date_Created"); + b.Property("CCC_Number"); - b.Property("Date_Last_Modified"); + b.Property("CheckError"); - b.Property("DepressionAssesmentScore"); + b.Property("ContactAddress"); - b.Property("Extract"); + b.Property("ContactName"); - b.Property("FacilityId"); + b.Property("ContactPhoneNumber"); - b.Property("FacilityName"); + b.Property("ContactRelation"); - b.Property("Field"); + b.Property("DOB"); - b.Property("PHQ9_1"); + b.Property("DateConfirmedHIVPositive"); - b.Property("PHQ9_2"); + b.Property("DateExtracted"); - b.Property("PHQ9_3"); + b.Property("FacilityName"); - b.Property("PHQ9_4"); + b.Property("FirstName"); - b.Property("PHQ9_5"); + b.Property("FirstName_Normalized"); - b.Property("PHQ9_6"); + b.Property("Gender"); - b.Property("PHQ9_7"); + b.Property("JaroWinklerScore"); - b.Property("PHQ9_8"); + b.Property("LastName"); - b.Property("PHQ9_9"); + b.Property("LastName_Normalized"); - b.Property("PHQ_9_rating"); + b.Property("MaritalStatus"); - b.Property("PatientID"); + b.Property("MiddleName"); - b.Property("PatientPK"); + b.Property("MiddleName_Normalized"); - b.Property("RecordId"); + b.Property("NHIF_Number"); - b.Property("SiteCode"); + b.Property("National_ID"); - b.Property("Summary"); + b.Property("PatientAlternatePhoneNumber"); - b.Property("Type"); + b.Property("PatientCounty"); - b.Property("VisitDate"); + b.Property("PatientID"); - b.Property("VisitID"); + b.Property("PatientPhoneNumber"); - b.HasKey("Id"); + b.Property("PatientPk"); - b.ToTable("vTempDepressionScreeningExtractErrorSummary"); - }); + b.Property("PatientSource"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("PatientSubCounty"); - b.Property("CheckError"); + b.Property("PatientVillage"); - b.Property("DateExtracted"); + b.Property("Serial"); - b.Property("Date_Created"); + b.Property("SiteCode"); - b.Property("Date_Last_Modified"); + b.Property("StartARTDate"); - b.Property("DrinkingAlcohol"); + b.Property("StartARTRegimenCode"); - b.Property("DrugUse"); + b.Property("StartARTRegimenDesc"); - b.Property("Emr"); + b.Property("TB_Number"); - b.Property("ErrorType"); + b.Property("dmFirstName"); - b.Property("FacilityId"); + b.Property("dmLastName"); - b.Property("FacilityName"); + b.Property("dmMiddleName"); - b.Property("PatientID"); + b.Property("dmPKValue"); - b.Property("PatientPK"); + b.Property("dmPKValueDoB"); - b.Property("Project"); + b.Property("sxFirstName"); - b.Property("SiteCode"); + b.Property("sxLastName"); - b.Property("Smoking"); + b.Property("sxMiddleName"); - b.Property("VisitDate"); + b.Property("sxPKValue"); - b.Property("VisitID"); + b.Property("sxPKValueDoB"); + + b.Property("sxdmPKValue"); + + b.Property("sxdmPKValueDoB"); b.HasKey("Id"); - b.ToTable("TempDrugAlcoholScreeningExtracts"); + b.ToTable("TempMasterPatientIndices"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Crs.TempClientRegistryExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); + b.Property("AlienIdNo"); + + b.Property("AlternativePhoneNumber"); + + b.Property("BirthCertificateNumber"); + + b.Property("CCCNumber"); + b.Property("CheckError"); + b.Property("County"); + + b.Property("CurrentOnART"); + b.Property("DateExtracted"); - b.Property("Date_Created"); + b.Property("DateOfBirth"); - b.Property("Date_Last_Modified"); + b.Property("DateOfHIVdiagnosis"); - b.Property("DrinkingAlcohol"); + b.Property("DateOfInitiation"); - b.Property("DrugUse"); + b.Property("DateOfLastEncounter"); + + b.Property("DateOfLastViralLoad"); + + b.Property("DrivingLicenseNumber"); b.Property("Emr"); @@ -3940,429 +4347,479 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityName"); - b.Property("PatientID"); + b.Property("FirstName"); - b.Property("PatientPK"); + b.Property("HighestLevelOfEducation"); - b.Property("Project"); + b.Property("HudumaNumber"); - b.Property("SiteCode"); + b.Property("Landmark"); - b.Property("Smoking"); + b.Property("LastName"); - b.Property("VisitDate"); + b.Property("LastRegimen"); - b.Property("VisitID"); + b.Property("LastRegimenLine"); - b.HasKey("Id"); + b.Property("LastViralLoadResult"); - b.ToTable("vTempDrugAlcoholScreeningExtractError"); - }); + b.Property("Location"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("MFLCode"); - b.Property("DateGenerated"); + b.Property("MaritalStatus"); - b.Property("Date_Created"); + b.Property("MiddleName"); - b.Property("Date_Last_Modified"); + b.Property("NameOfNextOfKin"); - b.Property("DrinkingAlcohol"); + b.Property("NationalId"); - b.Property("DrugUse"); + b.Property("NextAppointmentDate"); - b.Property("Extract"); + b.Property("NextOfKinRelationship"); - b.Property("FacilityId"); + b.Property("NextOfKinTelNo"); - b.Property("FacilityName"); + b.Property("Occupation"); - b.Property("Field"); + b.Property("Passport"); + + b.Property("PatientClinicNumber"); b.Property("PatientID"); b.Property("PatientPK"); - b.Property("RecordId"); + b.Property("PhoneNumber"); + + b.Property("Project"); + + b.Property("Sex"); b.Property("SiteCode"); - b.Property("Smoking"); + b.Property("SpousePhoneNumber"); - b.Property("Summary"); + b.Property("SubCounty"); - b.Property("Type"); + b.Property("TreatmentOutcome"); - b.Property("VisitDate"); + b.Property("Village"); - b.Property("VisitID"); + b.Property("Ward"); b.HasKey("Id"); - b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); + b.ToTable("TempClientRegistryExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CheckError"); + b.Property("Abdomen"); - b.Property("DateExtracted"); + b.Property("AllergicReaction"); - b.Property("DateOfFirstSession"); + b.Property("AllergyCausativeAgent"); - b.Property("Date_Created"); + b.Property("AllergyOnsetDate"); - b.Property("Date_Last_Modified"); + b.Property("AllergySeverity"); - b.Property("EACAdherencePlan"); + b.Property("CNS"); - b.Property("EACBehaviouralBarrier_1"); + b.Property("CVS"); - b.Property("EACBehaviouralBarrier_2"); + b.Property("CheckError"); - b.Property("EACBehaviouralBarrier_3"); + b.Property("Chest"); - b.Property("EACBehaviouralBarrier_4"); + b.Property("ChronicIllness"); - b.Property("EACBehaviouralBarrier_5"); + b.Property("ChronicOnsetDate"); - b.Property("EACCognitiveBarrier"); + b.Property("DateExtracted"); - b.Property("EACEconBarrier_1"); + b.Property("Date_Created"); - b.Property("EACEconBarrier_2"); + b.Property("Date_Last_Modified"); - b.Property("EACEconBarrier_3"); + b.Property("ENT"); - b.Property("EACEconBarrier_4"); + b.Property("Emr"); - b.Property("EACEconBarrier_5"); + b.Property("ErrorType"); - b.Property("EACEconBarrier_6"); + b.Property("Eyes"); - b.Property("EACEconBarrier_7"); + b.Property("FacilityId"); - b.Property("EACEconBarrier_8"); + b.Property("FacilityName"); - b.Property("EACEmotionalBarriers_1"); + b.Property("Genitourinary"); - b.Property("EACEmotionalBarriers_2"); + b.Property("PatientID"); - b.Property("EACFollowupDate"); + b.Property("PatientPK"); - b.Property("EACHomevisit"); + b.Property("Project"); - b.Property("EACRecievedVL"); + b.Property("SiteCode"); - b.Property("EACReferral"); + b.Property("Skin"); - b.Property("EACReferralApp"); + b.Property("VisitDate"); - b.Property("EACReferralExperience"); + b.Property("VisitID"); - b.Property("EACReviewImprovement"); + b.Property("knownAllergies"); - b.Property("EACReviewMissedDoses"); + b.HasKey("Id"); - b.Property("EACReviewStrategy"); + b.ToTable("TempAllergiesChronicIllnessExtracts"); + }); - b.Property("EACVL"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("EACVLConcerns"); + b.Property("Abdomen"); - b.Property("EACVLThoughts"); + b.Property("AllergicReaction"); - b.Property("EACWayForward"); + b.Property("AllergyCausativeAgent"); - b.Property("Emr"); + b.Property("AllergyOnsetDate"); - b.Property("ErrorType"); + b.Property("AllergySeverity"); - b.Property("FacilityId"); + b.Property("CNS"); - b.Property("FacilityName"); + b.Property("CVS"); - b.Property("MMAS4_1"); + b.Property("CheckError"); - b.Property("MMAS4_2"); + b.Property("Chest"); - b.Property("MMAS4_3"); + b.Property("ChronicIllness"); - b.Property("MMAS4_4"); + b.Property("ChronicOnsetDate"); - b.Property("MMSA8_1"); + b.Property("DateExtracted"); - b.Property("MMSA8_2"); + b.Property("Date_Created"); - b.Property("MMSA8_3"); + b.Property("Date_Last_Modified"); - b.Property("MMSA8_4"); + b.Property("ENT"); - b.Property("MMSAScore"); + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Genitourinary"); b.Property("PatientID"); b.Property("PatientPK"); - b.Property("PillCountAdherence"); - b.Property("Project"); - b.Property("SessionNumber"); - b.Property("SiteCode"); + b.Property("Skin"); + b.Property("VisitDate"); b.Property("VisitID"); + b.Property("knownAllergies"); + b.HasKey("Id"); - b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); + b.ToTable("vTempAllergiesChronicIllnessExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempAllergiesChronicIllnessExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CheckError"); + b.Property("Abdomen"); - b.Property("DateExtracted"); + b.Property("AllergicReaction"); - b.Property("DateOfFirstSession"); + b.Property("AllergyCausativeAgent"); - b.Property("Date_Created"); + b.Property("AllergyOnsetDate"); - b.Property("Date_Last_Modified"); + b.Property("AllergySeverity"); - b.Property("EACAdherencePlan"); + b.Property("CNS"); - b.Property("EACBehaviouralBarrier_1"); + b.Property("CVS"); - b.Property("EACBehaviouralBarrier_2"); + b.Property("Chest"); - b.Property("EACBehaviouralBarrier_3"); + b.Property("ChronicIllness"); - b.Property("EACBehaviouralBarrier_4"); + b.Property("ChronicOnsetDate"); - b.Property("EACBehaviouralBarrier_5"); + b.Property("DateGenerated"); - b.Property("EACCognitiveBarrier"); + b.Property("Date_Created"); - b.Property("EACEconBarrier_1"); + b.Property("Date_Last_Modified"); - b.Property("EACEconBarrier_2"); + b.Property("ENT"); - b.Property("EACEconBarrier_3"); + b.Property("Extract"); - b.Property("EACEconBarrier_4"); + b.Property("Eyes"); - b.Property("EACEconBarrier_5"); + b.Property("FacilityId"); - b.Property("EACEconBarrier_6"); + b.Property("FacilityName"); - b.Property("EACEconBarrier_7"); + b.Property("Field"); - b.Property("EACEconBarrier_8"); + b.Property("Genitourinary"); - b.Property("EACEmotionalBarriers_1"); + b.Property("PatientID"); - b.Property("EACEmotionalBarriers_2"); + b.Property("PatientPK"); - b.Property("EACFollowupDate"); + b.Property("RecordId"); - b.Property("EACHomevisit"); + b.Property("SiteCode"); - b.Property("EACRecievedVL"); + b.Property("Skin"); - b.Property("EACReferral"); + b.Property("Summary"); - b.Property("EACReferralApp"); + b.Property("Type"); - b.Property("EACReferralExperience"); + b.Property("VisitDate"); - b.Property("EACReviewImprovement"); + b.Property("VisitID"); - b.Property("EACReviewMissedDoses"); + b.Property("knownAllergies"); - b.Property("EACReviewStrategy"); + b.HasKey("Id"); - b.Property("EACVL"); + b.ToTable("vTempAllergiesChronicIllnessExtractErrorSummary"); + }); - b.Property("EACVLConcerns"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempContactListingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("EACVLThoughts"); + b.Property("CheckError"); - b.Property("EACWayForward"); + b.Property("ContactAge"); - b.Property("Emr"); + b.Property("ContactMaritalStatus"); - b.Property("ErrorType"); + b.Property("ContactPatientPK"); - b.Property("FacilityId"); + b.Property("ContactSex"); - b.Property("FacilityName"); + b.Property("CurrentlyLivingWithIndexClient"); - b.Property("MMAS4_1"); + b.Property("DateExtracted"); - b.Property("MMAS4_2"); + b.Property("Date_Created"); - b.Property("MMAS4_3"); + b.Property("Date_Last_Modified"); - b.Property("MMAS4_4"); + b.Property("Emr"); - b.Property("MMSA8_1"); + b.Property("ErrorType"); - b.Property("MMSA8_2"); + b.Property("FacilityId"); - b.Property("MMSA8_3"); + b.Property("FacilityName"); - b.Property("MMSA8_4"); + b.Property("IPVScreeningOutcome"); - b.Property("MMSAScore"); + b.Property("IpvScreening"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("PartnerPersonID"); b.Property("PatientID"); b.Property("PatientPK"); - b.Property("PillCountAdherence"); + b.Property("PnsApproach"); b.Property("Project"); - b.Property("SessionNumber"); - - b.Property("SiteCode"); + b.Property("RelationshipWithPatient"); - b.Property("VisitDate"); + b.Property("ScreenedForIpv"); - b.Property("VisitID"); + b.Property("SiteCode"); b.HasKey("Id"); - b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); + b.ToTable("TempContactListingExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempCovidExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("DateGenerated"); + b.Property("AdmissionEndDate"); - b.Property("DateOfFirstSession"); + b.Property("AdmissionStartDate"); - b.Property("Date_Created"); + b.Property("AdmissionStatus"); - b.Property("Date_Last_Modified"); + b.Property("AdmissionStatusSinceLastVisit"); - b.Property("EACAdherencePlan"); + b.Property("AdmissionUnit"); - b.Property("EACBehaviouralBarrier_1"); + b.Property("AdmissionUnitSinceLastVisit"); - b.Property("EACBehaviouralBarrier_2"); + b.Property("BoosterDose"); - b.Property("EACBehaviouralBarrier_3"); + b.Property("BoosterDoseDate"); - b.Property("EACBehaviouralBarrier_4"); + b.Property("BoosterGiven"); - b.Property("EACBehaviouralBarrier_5"); + b.Property("COVID19PositiveSinceLasVisit"); - b.Property("EACCognitiveBarrier"); + b.Property("COVID19TestDate"); - b.Property("EACEconBarrier_1"); + b.Property("COVID19TestDateSinceLastVisit"); - b.Property("EACEconBarrier_2"); + b.Property("COVID19TestResult"); - b.Property("EACEconBarrier_3"); + b.Property("CauseOfDeath"); - b.Property("EACEconBarrier_4"); + b.Property("CheckError"); - b.Property("EACEconBarrier_5"); + b.Property("Covid19AssessmentDate"); - b.Property("EACEconBarrier_6"); + b.Property("DateExtracted"); - b.Property("EACEconBarrier_7"); + b.Property("DateGivenFirstDose"); - b.Property("EACEconBarrier_8"); + b.Property("DateGivenSecondDose"); - b.Property("EACEmotionalBarriers_1"); + b.Property("Date_Created"); - b.Property("EACEmotionalBarriers_2"); + b.Property("Date_Last_Modified"); - b.Property("EACFollowupDate"); + b.Property("Emr"); - b.Property("EACHomevisit"); + b.Property("ErrorType"); - b.Property("EACRecievedVL"); + b.Property("EverCOVID19Positive"); - b.Property("EACReferral"); + b.Property("FacilityId"); - b.Property("EACReferralApp"); + b.Property("FacilityName"); - b.Property("EACReferralExperience"); + b.Property("FirstDoseVaccineAdministered"); - b.Property("EACReviewImprovement"); + b.Property("MissedAppointmentDueToCOVID19"); - b.Property("EACReviewMissedDoses"); + b.Property("PatientID"); - b.Property("EACReviewStrategy"); + b.Property("PatientPK"); - b.Property("EACVL"); + b.Property("PatientStatus"); - b.Property("EACVLConcerns"); + b.Property("PatientStatusSinceLastVisit"); - b.Property("EACVLThoughts"); + b.Property("PatientVentilated"); - b.Property("EACWayForward"); + b.Property("Project"); - b.Property("Extract"); + b.Property("ReceivedCOVID19Vaccine"); - b.Property("FacilityId"); + b.Property("SecondDoseVaccineAdministered"); - b.Property("FacilityName"); + b.Property("Sequence"); - b.Property("Field"); + b.Property("SiteCode"); - b.Property("MMAS4_1"); + b.Property("SupplementalOxygenReceived"); - b.Property("MMAS4_2"); + b.Property("TracingFinalOutcome"); - b.Property("MMAS4_3"); + b.Property("VaccinationStatus"); - b.Property("MMAS4_4"); + b.Property("VaccineVerification"); - b.Property("MMSA8_1"); + b.Property("VisitID"); - b.Property("MMSA8_2"); + b.HasKey("Id"); - b.Property("MMSA8_3"); + b.ToTable("TempCovidExtracts"); + }); - b.Property("MMSA8_4"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDefaulterTracingExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("MMSAScore"); + b.Property("AttemptNumber"); - b.Property("PatientID"); + b.Property("BookingDate"); - b.Property("PatientPK"); + b.Property("CauseOfDeath"); - b.Property("PillCountAdherence"); + b.Property("CheckError"); - b.Property("RecordId"); + b.Property("Comments"); - b.Property("SessionNumber"); + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("IsFinalTrace"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); b.Property("SiteCode"); - b.Property("Summary"); + b.Property("TracingOutcome"); - b.Property("Type"); + b.Property("TracingType"); + + b.Property("TrueStatus"); b.Property("VisitDate"); @@ -4370,10 +4827,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasKey("Id"); - b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); + b.ToTable("TempDefaulterTracingExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); @@ -4386,7 +4843,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Date_Last_Modified"); - b.Property("EmotionalIPV"); + b.Property("DepressionAssesmentScore"); b.Property("Emr"); @@ -4396,20 +4853,32 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityName"); - b.Property("IPV"); + b.Property("PHQ9_1"); - b.Property("IPVRelationship"); + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); b.Property("PatientID"); b.Property("PatientPK"); - b.Property("PhysicalIPV"); - b.Property("Project"); - b.Property("SexualIPV"); - b.Property("SiteCode"); b.Property("VisitDate"); @@ -4418,10 +4887,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasKey("Id"); - b.ToTable("TempGbvScreeningExtracts"); + b.ToTable("TempDepressionScreeningExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractError", b => { b.Property("Id") .ValueGeneratedOnAdd(); @@ -4434,7 +4903,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Date_Last_Modified"); - b.Property("EmotionalIPV"); + b.Property("DepressionAssesmentScore"); b.Property("Emr"); @@ -4444,20 +4913,32 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityName"); - b.Property("IPV"); + b.Property("PHQ9_1"); - b.Property("IPVRelationship"); + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); b.Property("PatientID"); b.Property("PatientPK"); - b.Property("PhysicalIPV"); - b.Property("Project"); - b.Property("SexualIPV"); - b.Property("SiteCode"); b.Property("VisitDate"); @@ -4466,10 +4947,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasKey("Id"); - b.ToTable("vTempGbvScreeningExtractError"); + b.ToTable("vTempDepressionScreeningExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDepressionScreeningExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); @@ -4480,7 +4961,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Date_Last_Modified"); - b.Property("EmotionalIPV"); + b.Property("DepressionAssesmentScore"); b.Property("Extract"); @@ -4490,20 +4971,32 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Field"); - b.Property("IPV"); + b.Property("PHQ9_1"); - b.Property("IPVRelationship"); + b.Property("PHQ9_2"); + + b.Property("PHQ9_3"); + + b.Property("PHQ9_4"); + + b.Property("PHQ9_5"); + + b.Property("PHQ9_6"); + + b.Property("PHQ9_7"); + + b.Property("PHQ9_8"); + + b.Property("PHQ9_9"); + + b.Property("PHQ_9_rating"); b.Property("PatientID"); b.Property("PatientPK"); - b.Property("PhysicalIPV"); - b.Property("RecordId"); - b.Property("SexualIPV"); - b.Property("SiteCode"); b.Property("Summary"); @@ -4516,56 +5009,34 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasKey("Id"); - b.ToTable("vTempGbvScreeningExtractErrorSummary"); + b.ToTable("vTempDepressionScreeningExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("CheckError"); - b.Property("ContactsInvited"); - - b.Property("Cough"); - - b.Property("DateExtracted"); + b.Property("DateExtracted"); b.Property("Date_Created"); b.Property("Date_Last_Modified"); - b.Property("Emr"); + b.Property("DrinkingAlcohol"); - b.Property("ErrorType"); + b.Property("DrugUse"); - b.Property("EvaluatedForIPT"); + b.Property("Emr"); - b.Property("EverOnIPT"); + b.Property("ErrorType"); b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("Fever"); - - b.Property("ICFActionTaken"); - - b.Property("IPTClientWorkUp"); - - b.Property("IndicationForIPT"); - - b.Property("Lethargy"); - - b.Property("NightSweats"); - - b.Property("NoticeableWeightLoss"); - - b.Property("OnIPT"); - - b.Property("OnTBDrugs"); - b.Property("PatientID"); b.Property("PatientPK"); @@ -4574,17 +5045,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("SiteCode"); - b.Property("StartAntiTBs"); - - b.Property("StartIPT"); - - b.Property("TBClinicalDiagnosis"); - - b.Property("TBRxStartDate"); - - b.Property("TBScreening"); - - b.Property("TestResult"); + b.Property("Smoking"); b.Property("VisitDate"); @@ -4592,56 +5053,34 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasKey("Id"); - b.ToTable("TempIptExtracts"); + b.ToTable("TempDrugAlcoholScreeningExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractError", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("CheckError"); - b.Property("ContactsInvited"); - - b.Property("Cough"); - b.Property("DateExtracted"); b.Property("Date_Created"); b.Property("Date_Last_Modified"); - b.Property("Emr"); + b.Property("DrinkingAlcohol"); - b.Property("ErrorType"); + b.Property("DrugUse"); - b.Property("EvaluatedForIPT"); + b.Property("Emr"); - b.Property("EverOnIPT"); + b.Property("ErrorType"); b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("Fever"); - - b.Property("ICFActionTaken"); - - b.Property("IPTClientWorkUp"); - - b.Property("IndicationForIPT"); - - b.Property("Lethargy"); - - b.Property("NightSweats"); - - b.Property("NoticeableWeightLoss"); - - b.Property("OnIPT"); - - b.Property("OnTBDrugs"); - b.Property("PatientID"); b.Property("PatientPK"); @@ -4650,17 +5089,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("SiteCode"); - b.Property("StartAntiTBs"); - - b.Property("StartIPT"); - - b.Property("TBClinicalDiagnosis"); - - b.Property("TBRxStartDate"); - - b.Property("TBScreening"); - - b.Property("TestResult"); + b.Property("Smoking"); b.Property("VisitDate"); @@ -4668,27 +5097,23 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasKey("Id"); - b.ToTable("vTempIptExtractError"); + b.ToTable("vTempDrugAlcoholScreeningExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempDrugAlcoholScreeningExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("ContactsInvited"); - - b.Property("Cough"); - b.Property("DateGenerated"); b.Property("Date_Created"); b.Property("Date_Last_Modified"); - b.Property("EvaluatedForIPT"); + b.Property("DrinkingAlcohol"); - b.Property("EverOnIPT"); + b.Property("DrugUse"); b.Property("Extract"); @@ -4696,26 +5121,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityName"); - b.Property("Fever"); - b.Property("Field"); - b.Property("ICFActionTaken"); - - b.Property("IPTClientWorkUp"); - - b.Property("IndicationForIPT"); - - b.Property("Lethargy"); - - b.Property("NightSweats"); - - b.Property("NoticeableWeightLoss"); - - b.Property("OnIPT"); - - b.Property("OnTBDrugs"); - b.Property("PatientID"); b.Property("PatientPK"); @@ -4724,20 +5131,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("SiteCode"); - b.Property("StartAntiTBs"); - - b.Property("StartIPT"); + b.Property("Smoking"); b.Property("Summary"); - b.Property("TBClinicalDiagnosis"); - - b.Property("TBRxStartDate"); - - b.Property("TBScreening"); - - b.Property("TestResult"); - b.Property("Type"); b.Property("VisitDate"); @@ -4746,10 +5143,10 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasKey("Id"); - b.ToTable("vTempIptExtractErrorSummary"); + b.ToTable("vTempDrugAlcoholScreeningExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); @@ -4758,63 +5155,71 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("DateExtracted"); + b.Property("DateOfFirstSession"); + b.Property("Date_Created"); b.Property("Date_Last_Modified"); - b.Property("Emr"); + b.Property("EACAdherencePlan"); - b.Property("ErrorType"); + b.Property("EACBehaviouralBarrier_1"); - b.Property("FacilityId"); + b.Property("EACBehaviouralBarrier_2"); - b.Property("FacilityName"); + b.Property("EACBehaviouralBarrier_3"); - b.Property("ModulesCompletedToday"); + b.Property("EACBehaviouralBarrier_4"); - b.Property("ModulesPreviouslyCovered"); + b.Property("EACBehaviouralBarrier_5"); - b.Property("OTZEnrollmentDate"); + b.Property("EACCognitiveBarrier"); - b.Property("OutcomeDate"); + b.Property("EACEconBarrier_1"); - b.Property("PatientID"); + b.Property("EACEconBarrier_2"); - b.Property("PatientPK"); + b.Property("EACEconBarrier_3"); - b.Property("Project"); + b.Property("EACEconBarrier_4"); - b.Property("Remarks"); + b.Property("EACEconBarrier_5"); - b.Property("SiteCode"); + b.Property("EACEconBarrier_6"); - b.Property("SupportGroupInvolvement"); + b.Property("EACEconBarrier_7"); - b.Property("TransferInStatus"); + b.Property("EACEconBarrier_8"); - b.Property("TransitionAttritionReason"); + b.Property("EACEmotionalBarriers_1"); - b.Property("VisitDate"); + b.Property("EACEmotionalBarriers_2"); - b.Property("VisitID"); + b.Property("EACFollowupDate"); - b.HasKey("Id"); + b.Property("EACHomevisit"); - b.ToTable("TempOtzExtracts"); - }); + b.Property("EACRecievedVL"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("EACReferral"); - b.Property("CheckError"); + b.Property("EACReferralApp"); - b.Property("DateExtracted"); + b.Property("EACReferralExperience"); - b.Property("Date_Created"); + b.Property("EACReviewImprovement"); - b.Property("Date_Last_Modified"); + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); b.Property("Emr"); @@ -4824,135 +5229,155 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityName"); - b.Property("ModulesCompletedToday"); + b.Property("MMAS4_1"); - b.Property("ModulesPreviouslyCovered"); + b.Property("MMAS4_2"); - b.Property("OTZEnrollmentDate"); + b.Property("MMAS4_3"); - b.Property("OutcomeDate"); + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); b.Property("PatientID"); b.Property("PatientPK"); + b.Property("PillCountAdherence"); + b.Property("Project"); - b.Property("Remarks"); + b.Property("SessionNumber"); b.Property("SiteCode"); - b.Property("SupportGroupInvolvement"); - - b.Property("TransferInStatus"); - - b.Property("TransitionAttritionReason"); - b.Property("VisitDate"); b.Property("VisitID"); b.HasKey("Id"); - b.ToTable("vTempOtzExtractError"); + b.ToTable("TempEnhancedAdherenceCounsellingExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractError", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("DateGenerated"); + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DateOfFirstSession"); b.Property("Date_Created"); b.Property("Date_Last_Modified"); - b.Property("Extract"); + b.Property("EACAdherencePlan"); - b.Property("FacilityId"); + b.Property("EACBehaviouralBarrier_1"); - b.Property("FacilityName"); + b.Property("EACBehaviouralBarrier_2"); - b.Property("Field"); + b.Property("EACBehaviouralBarrier_3"); - b.Property("ModulesCompletedToday"); + b.Property("EACBehaviouralBarrier_4"); - b.Property("ModulesPreviouslyCovered"); + b.Property("EACBehaviouralBarrier_5"); - b.Property("OTZEnrollmentDate"); + b.Property("EACCognitiveBarrier"); - b.Property("OutcomeDate"); + b.Property("EACEconBarrier_1"); - b.Property("PatientID"); + b.Property("EACEconBarrier_2"); - b.Property("PatientPK"); + b.Property("EACEconBarrier_3"); - b.Property("RecordId"); + b.Property("EACEconBarrier_4"); - b.Property("Remarks"); + b.Property("EACEconBarrier_5"); - b.Property("SiteCode"); + b.Property("EACEconBarrier_6"); - b.Property("Summary"); + b.Property("EACEconBarrier_7"); - b.Property("SupportGroupInvolvement"); + b.Property("EACEconBarrier_8"); - b.Property("TransferInStatus"); + b.Property("EACEmotionalBarriers_1"); - b.Property("TransitionAttritionReason"); + b.Property("EACEmotionalBarriers_2"); - b.Property("Type"); + b.Property("EACFollowupDate"); - b.Property("VisitDate"); + b.Property("EACHomevisit"); - b.Property("VisitID"); + b.Property("EACRecievedVL"); - b.HasKey("Id"); + b.Property("EACReferral"); - b.ToTable("vTempOtzExtractErrorSummary"); - }); + b.Property("EACReferralApp"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("EACReferralExperience"); - b.Property("CPIMSUniqueIdentifier"); + b.Property("EACReviewImprovement"); - b.Property("CheckError"); + b.Property("EACReviewMissedDoses"); - b.Property("DateExtracted"); + b.Property("EACReviewStrategy"); - b.Property("Date_Created"); + b.Property("EACVL"); - b.Property("Date_Last_Modified"); + b.Property("EACVLConcerns"); - b.Property("Emr"); + b.Property("EACVLThoughts"); - b.Property("EnrolledinCPIMS"); + b.Property("EACWayForward"); - b.Property("ErrorType"); + b.Property("Emr"); - b.Property("ExitDate"); + b.Property("ErrorType"); b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("OVCEnrollmentDate"); + b.Property("MMAS4_1"); - b.Property("OVCExitReason"); + b.Property("MMAS4_2"); - b.Property("PartnerOfferingOVCServices"); + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); b.Property("PatientID"); b.Property("PatientPK"); + b.Property("PillCountAdherence"); + b.Property("Project"); - b.Property("RelationshipToClient"); + b.Property("SessionNumber"); b.Property("SiteCode"); @@ -4962,77 +5387,81 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasKey("Id"); - b.ToTable("TempOvcExtracts"); + b.ToTable("vTempEnhancedAdherenceCounsellingExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempEnhancedAdherenceCounsellingExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CPIMSUniqueIdentifier"); - - b.Property("CheckError"); + b.Property("DateGenerated"); - b.Property("DateExtracted"); + b.Property("DateOfFirstSession"); b.Property("Date_Created"); b.Property("Date_Last_Modified"); - b.Property("Emr"); + b.Property("EACAdherencePlan"); - b.Property("EnrolledinCPIMS"); + b.Property("EACBehaviouralBarrier_1"); - b.Property("ErrorType"); + b.Property("EACBehaviouralBarrier_2"); - b.Property("ExitDate"); + b.Property("EACBehaviouralBarrier_3"); - b.Property("FacilityId"); + b.Property("EACBehaviouralBarrier_4"); - b.Property("FacilityName"); + b.Property("EACBehaviouralBarrier_5"); - b.Property("OVCEnrollmentDate"); + b.Property("EACCognitiveBarrier"); - b.Property("OVCExitReason"); + b.Property("EACEconBarrier_1"); - b.Property("PartnerOfferingOVCServices"); + b.Property("EACEconBarrier_2"); - b.Property("PatientID"); + b.Property("EACEconBarrier_3"); - b.Property("PatientPK"); + b.Property("EACEconBarrier_4"); - b.Property("Project"); + b.Property("EACEconBarrier_5"); - b.Property("RelationshipToClient"); + b.Property("EACEconBarrier_6"); - b.Property("SiteCode"); + b.Property("EACEconBarrier_7"); - b.Property("VisitDate"); + b.Property("EACEconBarrier_8"); - b.Property("VisitID"); + b.Property("EACEmotionalBarriers_1"); - b.HasKey("Id"); + b.Property("EACEmotionalBarriers_2"); - b.ToTable("vTempOvcExtractError"); - }); + b.Property("EACFollowupDate"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("EACHomevisit"); - b.Property("CPIMSUniqueIdentifier"); + b.Property("EACRecievedVL"); - b.Property("DateGenerated"); + b.Property("EACReferral"); - b.Property("Date_Created"); + b.Property("EACReferralApp"); - b.Property("Date_Last_Modified"); + b.Property("EACReferralExperience"); - b.Property("EnrolledinCPIMS"); + b.Property("EACReviewImprovement"); - b.Property("ExitDate"); + b.Property("EACReviewMissedDoses"); + + b.Property("EACReviewStrategy"); + + b.Property("EACVL"); + + b.Property("EACVLConcerns"); + + b.Property("EACVLThoughts"); + + b.Property("EACWayForward"); b.Property("Extract"); @@ -5042,19 +5471,33 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Field"); - b.Property("OVCEnrollmentDate"); + b.Property("MMAS4_1"); - b.Property("OVCExitReason"); + b.Property("MMAS4_2"); - b.Property("PartnerOfferingOVCServices"); + b.Property("MMAS4_3"); + + b.Property("MMAS4_4"); + + b.Property("MMSA8_1"); + + b.Property("MMSA8_2"); + + b.Property("MMSA8_3"); + + b.Property("MMSA8_4"); + + b.Property("MMSAScore"); b.Property("PatientID"); b.Property("PatientPK"); + b.Property("PillCountAdherence"); + b.Property("RecordId"); - b.Property("RelationshipToClient"); + b.Property("SessionNumber"); b.Property("SiteCode"); @@ -5068,30 +5511,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.HasKey("Id"); - b.ToTable("vTempOvcExtractErrorSummary"); + b.ToTable("vTempEnhancedAdherenceCounsellingExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("AdverseEvent"); - - b.Property("AdverseEventActionTaken"); - - b.Property("AdverseEventCause"); - - b.Property("AdverseEventClinicalOutcome"); - - b.Property("AdverseEventEndDate"); - - b.Property("AdverseEventIsPregnant"); - - b.Property("AdverseEventRegimen"); - - b.Property("AdverseEventStartDate"); - b.Property("CheckError"); b.Property("DateExtracted"); @@ -5100,43 +5527,55 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Date_Last_Modified"); + b.Property("EmotionalIPV"); + b.Property("Emr"); b.Property("ErrorType"); b.Property("FacilityId"); + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + b.Property("PatientID"); b.Property("PatientPK"); + b.Property("PhysicalIPV"); + b.Property("Project"); - b.Property("Severity"); + b.Property("SexualIPV"); b.Property("SiteCode"); b.Property("VisitDate"); + b.Property("VisitID"); + b.HasKey("Id"); - b.ToTable("TempPatientAdverseEventExtracts"); + b.ToTable("TempGbvScreeningExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractError", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("AdverseEvent"); + b.Property("CheckError"); - b.Property("AdverseEventEndDate"); + b.Property("DateExtracted"); - b.Property("AdverseEventStartDate"); + b.Property("Date_Created"); - b.Property("CheckError"); + b.Property("Date_Last_Modified"); - b.Property("DateExtracted"); + b.Property("EmotionalIPV"); b.Property("Emr"); @@ -5144,35 +5583,45 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityId"); + b.Property("FacilityName"); + + b.Property("IPV"); + + b.Property("IPVRelationship"); + b.Property("PatientID"); b.Property("PatientPK"); + b.Property("PhysicalIPV"); + b.Property("Project"); - b.Property("Severity"); + b.Property("SexualIPV"); b.Property("SiteCode"); - b.Property("VisitDate"); + b.Property("VisitDate"); + + b.Property("VisitID"); b.HasKey("Id"); - b.ToTable("vTempPatientAdverseEventExtractError"); + b.ToTable("vTempGbvScreeningExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempGbvScreeningExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("AdverseEvent"); + b.Property("DateGenerated"); - b.Property("AdverseEventEndDate"); + b.Property("Date_Created"); - b.Property("AdverseEventStartDate"); + b.Property("Date_Last_Modified"); - b.Property("DateGenerated"); + b.Property("EmotionalIPV"); b.Property("Extract"); @@ -5182,13 +5631,19 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Field"); + b.Property("IPV"); + + b.Property("IPVRelationship"); + b.Property("PatientID"); b.Property("PatientPK"); + b.Property("PhysicalIPV"); + b.Property("RecordId"); - b.Property("Severity"); + b.Property("SexualIPV"); b.Property("SiteCode"); @@ -5196,185 +5651,185 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Type"); - b.Property("VisitDate"); + b.Property("VisitDate"); + + b.Property("VisitID"); b.HasKey("Id"); - b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); + b.ToTable("vTempGbvScreeningExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("AgeARTStart"); - - b.Property("AgeEnrollment"); - - b.Property("AgeLastVisit"); - b.Property("CheckError"); - b.Property("DOB"); + b.Property("ContactsInvited"); - b.Property("DateExtracted"); + b.Property("Cough"); - b.Property("DateLastUsed"); + b.Property("DateExtracted"); b.Property("Date_Created"); b.Property("Date_Last_Modified"); - b.Property("Duration"); - b.Property("Emr"); b.Property("ErrorType"); - b.Property("ExitDate"); - - b.Property("ExitReason"); + b.Property("EvaluatedForIPT"); - b.Property("ExpectedReturn"); + b.Property("EverOnIPT"); b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("Gender"); - - b.Property("LastARTDate"); + b.Property("Fever"); - b.Property("LastRegimen"); + b.Property("ICFActionTaken"); - b.Property("LastRegimenLine"); + b.Property("IPTClientWorkUp"); - b.Property("LastVisit"); + b.Property("IndicationForIPT"); - b.Property("PatientID"); + b.Property("Lethargy"); - b.Property("PatientPK"); + b.Property("NightSweats"); - b.Property("PatientSource"); + b.Property("NoticeableWeightLoss"); - b.Property("PreviousARTPurpose"); + b.Property("OnIPT"); - b.Property("PreviousARTRegimen"); + b.Property("OnTBDrugs"); - b.Property("PreviousARTStartDate"); + b.Property("PatientID"); - b.Property("PreviousARTUse"); + b.Property("PatientPK"); b.Property("Project"); - b.Property("Provider"); + b.Property("SiteCode"); - b.Property("RegistrationDate"); + b.Property("StartAntiTBs"); - b.Property("SiteCode"); + b.Property("StartIPT"); - b.Property("StartARTAtThisFacility"); + b.Property("TBClinicalDiagnosis"); - b.Property("StartARTDate"); + b.Property("TBRxStartDate"); - b.Property("StartRegimen"); + b.Property("TBScreening"); - b.Property("StartRegimenLine"); + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); b.HasKey("Id"); - b.ToTable("TempPatientArtExtracts"); + b.ToTable("TempIptExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractError", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("AgeARTStart"); - - b.Property("AgeEnrollment"); - - b.Property("AgeLastVisit"); - b.Property("CheckError"); - b.Property("DOB"); + b.Property("ContactsInvited"); + + b.Property("Cough"); b.Property("DateExtracted"); - b.Property("Duration"); + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); b.Property("Emr"); b.Property("ErrorType"); - b.Property("ExitDate"); - - b.Property("ExitReason"); + b.Property("EvaluatedForIPT"); - b.Property("ExpectedReturn"); + b.Property("EverOnIPT"); b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("Gender"); + b.Property("Fever"); - b.Property("LastARTDate"); + b.Property("ICFActionTaken"); - b.Property("LastRegimen"); + b.Property("IPTClientWorkUp"); - b.Property("LastRegimenLine"); + b.Property("IndicationForIPT"); - b.Property("LastVisit"); + b.Property("Lethargy"); - b.Property("PatientID"); + b.Property("NightSweats"); - b.Property("PatientPK"); + b.Property("NoticeableWeightLoss"); - b.Property("PatientSource"); + b.Property("OnIPT"); - b.Property("PreviousARTRegimen"); + b.Property("OnTBDrugs"); - b.Property("PreviousARTStartDate"); + b.Property("PatientID"); + + b.Property("PatientPK"); b.Property("Project"); - b.Property("Provider"); + b.Property("SiteCode"); - b.Property("RegistrationDate"); + b.Property("StartAntiTBs"); - b.Property("SiteCode"); + b.Property("StartIPT"); - b.Property("StartARTAtThisFacility"); + b.Property("TBClinicalDiagnosis"); - b.Property("StartARTDate"); + b.Property("TBRxStartDate"); - b.Property("StartRegimen"); + b.Property("TBScreening"); - b.Property("StartRegimenLine"); + b.Property("TestResult"); + + b.Property("VisitDate"); + + b.Property("VisitID"); b.HasKey("Id"); - b.ToTable("vTempPatientArtExtractError"); + b.ToTable("vTempIptExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempIptExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("AgeLastVisit"); + b.Property("ContactsInvited"); - b.Property("DOB"); + b.Property("Cough"); b.Property("DateGenerated"); - b.Property("ExitDate"); + b.Property("Date_Created"); - b.Property("ExitReason"); + b.Property("Date_Last_Modified"); + + b.Property("EvaluatedForIPT"); + + b.Property("EverOnIPT"); b.Property("Extract"); @@ -5382,52 +5837,60 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityName"); + b.Property("Fever"); + b.Property("Field"); - b.Property("Gender"); + b.Property("ICFActionTaken"); - b.Property("LastARTDate"); + b.Property("IPTClientWorkUp"); - b.Property("LastRegimen"); + b.Property("IndicationForIPT"); - b.Property("LastRegimenLine"); + b.Property("Lethargy"); - b.Property("LastVisit"); + b.Property("NightSweats"); - b.Property("PatientID"); + b.Property("NoticeableWeightLoss"); - b.Property("PatientPK"); + b.Property("OnIPT"); - b.Property("PatientSource"); + b.Property("OnTBDrugs"); - b.Property("PreviousARTRegimen"); + b.Property("PatientID"); - b.Property("PreviousARTStartDate"); + b.Property("PatientPK"); b.Property("RecordId"); - b.Property("RegistrationDate"); - b.Property("SiteCode"); - b.Property("StartARTAtThisFacility"); + b.Property("StartAntiTBs"); - b.Property("StartARTDate"); + b.Property("StartIPT"); - b.Property("StartRegimen"); + b.Property("Summary"); - b.Property("StartRegimenLine"); + b.Property("TBClinicalDiagnosis"); - b.Property("Summary"); + b.Property("TBRxStartDate"); + + b.Property("TBScreening"); + + b.Property("TestResult"); b.Property("Type"); + b.Property("VisitDate"); + + b.Property("VisitID"); + b.HasKey("Id"); - b.ToTable("vTempPatientArtExtractErrorSummary"); + b.ToTable("vTempIptExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); @@ -5446,64 +5909,42 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityId"); - b.Property("PatientID"); - - b.Property("PatientPK"); - - b.Property("Project"); - - b.Property("SiteCode"); - - b.Property("bCD4"); - - b.Property("bCD4Date"); - - b.Property("bWAB"); - - b.Property("bWABDate"); - - b.Property("bWHO"); - - b.Property("bWHODate"); - - b.Property("eCD4"); - - b.Property("eCD4Date"); + b.Property("FacilityName"); - b.Property("eWAB"); + b.Property("ModulesCompletedToday"); - b.Property("eWABDate"); + b.Property("ModulesPreviouslyCovered"); - b.Property("eWHO"); + b.Property("OTZEnrollmentDate"); - b.Property("eWHODate"); + b.Property("OutcomeDate"); - b.Property("lastCD4"); + b.Property("PatientID"); - b.Property("lastCD4Date"); + b.Property("PatientPK"); - b.Property("lastWAB"); + b.Property("Project"); - b.Property("lastWABDate"); + b.Property("Remarks"); - b.Property("lastWHO"); + b.Property("SiteCode"); - b.Property("lastWHODate"); + b.Property("SupportGroupInvolvement"); - b.Property("m12CD4"); + b.Property("TransferInStatus"); - b.Property("m12CD4Date"); + b.Property("TransitionAttritionReason"); - b.Property("m6CD4"); + b.Property("VisitDate"); - b.Property("m6CD4Date"); + b.Property("VisitID"); b.HasKey("Id"); - b.ToTable("TempPatientBaselinesExtracts"); + b.ToTable("TempOtzExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractError", b => { b.Property("Id") .ValueGeneratedOnAdd(); @@ -5512,155 +5953,167 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("DateExtracted"); + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + b.Property("Emr"); b.Property("ErrorType"); b.Property("FacilityId"); - b.Property("PatientID"); + b.Property("FacilityName"); - b.Property("PatientPK"); + b.Property("ModulesCompletedToday"); - b.Property("Project"); + b.Property("ModulesPreviouslyCovered"); - b.Property("SiteCode"); - - b.Property("bCD4"); - - b.Property("bCD4Date"); - - b.Property("bWAB"); - - b.Property("bWABDate"); - - b.Property("bWHO"); - - b.Property("bWHODate"); - - b.Property("eCD4"); - - b.Property("eCD4Date"); - - b.Property("eWAB"); - - b.Property("eWABDate"); - - b.Property("eWHO"); + b.Property("OTZEnrollmentDate"); - b.Property("eWHODate"); + b.Property("OutcomeDate"); - b.Property("lastCD4"); + b.Property("PatientID"); - b.Property("lastCD4Date"); + b.Property("PatientPK"); - b.Property("lastWAB"); + b.Property("Project"); - b.Property("lastWABDate"); + b.Property("Remarks"); - b.Property("lastWHO"); + b.Property("SiteCode"); - b.Property("lastWHODate"); + b.Property("SupportGroupInvolvement"); - b.Property("m12CD4"); + b.Property("TransferInStatus"); - b.Property("m12CD4Date"); + b.Property("TransitionAttritionReason"); - b.Property("m6CD4"); + b.Property("VisitDate"); - b.Property("m6CD4Date"); + b.Property("VisitID"); b.HasKey("Id"); - b.ToTable("vTempPatientBaselinesExtractError"); + b.ToTable("vTempOtzExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOtzExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("DateGenerated"); + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + b.Property("Extract"); b.Property("FacilityId"); + b.Property("FacilityName"); + b.Property("Field"); + b.Property("ModulesCompletedToday"); + + b.Property("ModulesPreviouslyCovered"); + + b.Property("OTZEnrollmentDate"); + + b.Property("OutcomeDate"); + b.Property("PatientID"); b.Property("PatientPK"); b.Property("RecordId"); + b.Property("Remarks"); + b.Property("SiteCode"); b.Property("Summary"); + b.Property("SupportGroupInvolvement"); + + b.Property("TransferInStatus"); + + b.Property("TransitionAttritionReason"); + b.Property("Type"); - b.Property("bCD4"); + b.Property("VisitDate"); - b.Property("bCD4Date"); + b.Property("VisitID"); - b.Property("bWAB"); + b.HasKey("Id"); - b.Property("bWABDate"); + b.ToTable("vTempOtzExtractErrorSummary"); + }); - b.Property("bWHO"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("bWHODate"); + b.Property("CPIMSUniqueIdentifier"); - b.Property("eCD4"); + b.Property("CheckError"); - b.Property("eCD4Date"); + b.Property("DateExtracted"); - b.Property("eWAB"); + b.Property("Date_Created"); - b.Property("eWABDate"); + b.Property("Date_Last_Modified"); - b.Property("eWHO"); + b.Property("Emr"); - b.Property("eWHODate"); + b.Property("EnrolledinCPIMS"); - b.Property("lastCD4"); + b.Property("ErrorType"); - b.Property("lastCD4Date"); + b.Property("ExitDate"); - b.Property("lastWAB"); + b.Property("FacilityId"); - b.Property("lastWABDate"); + b.Property("FacilityName"); - b.Property("lastWHO"); + b.Property("OVCEnrollmentDate"); - b.Property("lastWHODate"); + b.Property("OVCExitReason"); - b.Property("m12CD4"); + b.Property("PartnerOfferingOVCServices"); - b.Property("m12CD4Date"); + b.Property("PatientID"); - b.Property("m6CD4"); + b.Property("PatientPK"); - b.Property("m6CD4Date"); + b.Property("Project"); + + b.Property("RelationshipToClient"); + + b.Property("SiteCode"); + + b.Property("VisitDate"); + + b.Property("VisitID"); b.HasKey("Id"); - b.ToTable("vTempPatientBaselinesExtractErrorSummary"); + b.ToTable("TempOvcExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractError", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CheckError"); - - b.Property("ContactRelation"); - - b.Property("DOB"); + b.Property("CPIMSUniqueIdentifier"); - b.Property("DateConfirmedHIVPositive"); + b.Property("CheckError"); b.Property("DateExtracted"); @@ -5668,109 +6121,125 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Date_Last_Modified"); - b.Property("District"); - - b.Property("EducationLevel"); - b.Property("Emr"); + b.Property("EnrolledinCPIMS"); + b.Property("ErrorType"); + b.Property("ExitDate"); + b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("Gender"); + b.Property("OVCEnrollmentDate"); - b.Property("Inschool"); + b.Property("OVCExitReason"); - b.Property("KeyPopulationType"); + b.Property("PartnerOfferingOVCServices"); - b.Property("LastVisit"); + b.Property("PatientID"); - b.Property("MaritalStatus"); + b.Property("PatientPK"); - b.Property("Occupation"); + b.Property("Project"); - b.Property("Orphan"); + b.Property("RelationshipToClient"); - b.Property("PatientID"); + b.Property("SiteCode"); - b.Property("PatientPK"); + b.Property("VisitDate"); - b.Property("PatientResidentCounty"); + b.Property("VisitID"); - b.Property("PatientResidentLocation"); + b.HasKey("Id"); - b.Property("PatientResidentSubCounty"); + b.ToTable("vTempOvcExtractError"); + }); - b.Property("PatientResidentSubLocation"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempOvcExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("PatientResidentVillage"); + b.Property("CPIMSUniqueIdentifier"); - b.Property("PatientResidentWard"); + b.Property("DateGenerated"); - b.Property("PatientSource"); + b.Property("Date_Created"); - b.Property("PatientType"); + b.Property("Date_Last_Modified"); - b.Property("Pkv"); + b.Property("EnrolledinCPIMS"); - b.Property("PopulationType"); + b.Property("ExitDate"); - b.Property("PreviousARTExposure"); + b.Property("Extract"); - b.Property("PreviousARTStartDate"); + b.Property("FacilityId"); - b.Property("Project"); + b.Property("FacilityName"); - b.Property("Region"); + b.Property("Field"); - b.Property("RegistrationAtCCC"); + b.Property("OVCEnrollmentDate"); - b.Property("RegistrationAtPMTCT"); + b.Property("OVCExitReason"); - b.Property("RegistrationAtTBClinic"); + b.Property("PartnerOfferingOVCServices"); - b.Property("RegistrationDate"); + b.Property("PatientID"); - b.Property("SatelliteName"); + b.Property("PatientPK"); - b.Property("SiteCode"); + b.Property("RecordId"); - b.Property("StatusAtCCC"); + b.Property("RelationshipToClient"); - b.Property("StatusAtPMTCT"); + b.Property("SiteCode"); - b.Property("StatusAtTBClinic"); + b.Property("Summary"); - b.Property("TransferInDate"); + b.Property("Type"); - b.Property("Village"); + b.Property("VisitDate"); + + b.Property("VisitID"); b.HasKey("Id"); - b.ToTable("TempPatientExtracts"); + b.ToTable("vTempOvcExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CheckError"); + b.Property("AdverseEvent"); - b.Property("ContactRelation"); + b.Property("AdverseEventActionTaken"); - b.Property("DOB"); + b.Property("AdverseEventCause"); - b.Property("DateConfirmedHIVPositive"); + b.Property("AdverseEventClinicalOutcome"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventIsPregnant"); + + b.Property("AdverseEventRegimen"); + + b.Property("AdverseEventStartDate"); + + b.Property("CheckError"); b.Property("DateExtracted"); - b.Property("District"); + b.Property("Date_Created"); - b.Property("EducationLevel"); + b.Property("Date_Last_Modified"); b.Property("Emr"); @@ -5778,82 +6247,72 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityId"); - b.Property("FacilityName"); + b.Property("PatientID"); - b.Property("Gender"); + b.Property("PatientPK"); - b.Property("Inschool"); + b.Property("Project"); - b.Property("KeyPopulationType"); + b.Property("Severity"); - b.Property("LastVisit"); - - b.Property("MaritalStatus"); + b.Property("SiteCode"); - b.Property("Orphan"); + b.Property("VisitDate"); - b.Property("PatientID"); + b.HasKey("Id"); - b.Property("PatientPK"); + b.ToTable("TempPatientAdverseEventExtracts"); + }); - b.Property("PatientResidentCounty"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("PatientResidentLocation"); + b.Property("AdverseEvent"); - b.Property("PatientResidentSubCounty"); + b.Property("AdverseEventEndDate"); - b.Property("PatientResidentSubLocation"); + b.Property("AdverseEventStartDate"); - b.Property("PatientResidentVillage"); + b.Property("CheckError"); - b.Property("PatientResidentWard"); + b.Property("DateExtracted"); - b.Property("PatientSource"); + b.Property("Emr"); - b.Property("PatientType"); + b.Property("ErrorType"); - b.Property("PopulationType"); + b.Property("FacilityId"); - b.Property("PreviousARTExposure"); + b.Property("PatientID"); - b.Property("PreviousARTStartDate"); + b.Property("PatientPK"); b.Property("Project"); - b.Property("Region"); - - b.Property("RegistrationATPMTCT"); - - b.Property("RegistrationAtCCC"); - - b.Property("RegistrationAtTBClinic"); - - b.Property("RegistrationDate"); - - b.Property("SatelliteName"); + b.Property("Severity"); b.Property("SiteCode"); - b.Property("StatusAtCCC"); - - b.Property("StatusAtPMTCT"); - - b.Property("StatusAtTBClinic"); - - b.Property("TransferInDate"); - - b.Property("Village"); + b.Property("VisitDate"); b.HasKey("Id"); - b.ToTable("vTempPatientExtractError"); + b.ToTable("vTempPatientAdverseEventExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientAdverseEventExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); + b.Property("AdverseEvent"); + + b.Property("AdverseEventEndDate"); + + b.Property("AdverseEventStartDate"); + b.Property("DateGenerated"); b.Property("Extract"); @@ -5864,155 +6323,199 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Field"); - b.Property("Inschool"); - - b.Property("KeyPopulationType"); - - b.Property("Orphan"); - b.Property("PatientID"); b.Property("PatientPK"); - b.Property("PatientResidentCounty"); - - b.Property("PatientResidentLocation"); - - b.Property("PatientResidentSubCounty"); - - b.Property("PatientResidentSubLocation"); - - b.Property("PatientResidentVillage"); - - b.Property("PatientResidentWard"); - - b.Property("PatientType"); - - b.Property("PopulationType"); - b.Property("RecordId"); + b.Property("Severity"); + b.Property("SiteCode"); b.Property("Summary"); - b.Property("TransferInDate"); - b.Property("Type"); + b.Property("VisitDate"); + b.HasKey("Id"); - b.ToTable("vTempPatientExtractErrorSummary"); + b.ToTable("vTempPatientAdverseEventExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + b.Property("CheckError"); + b.Property("DOB"); + b.Property("DateExtracted"); - b.Property("DateSampleTaken"); + b.Property("DateLastUsed"); b.Property("Date_Created"); b.Property("Date_Last_Modified"); - b.Property("Emr"); + b.Property("Duration"); - b.Property("EnrollmentTest"); + b.Property("Emr"); b.Property("ErrorType"); + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("OrderedByDate"); + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); b.Property("PatientID"); b.Property("PatientPK"); - b.Property("Project"); + b.Property("PatientSource"); - b.Property("Reason"); + b.Property("PreviousARTPurpose"); - b.Property("ReportedByDate"); + b.Property("PreviousARTRegimen"); - b.Property("SampleType"); + b.Property("PreviousARTStartDate"); - b.Property("SatelliteName"); + b.Property("PreviousARTUse"); + + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); b.Property("SiteCode"); - b.Property("TestName"); + b.Property("StartARTAtThisFacility"); - b.Property("TestResult"); + b.Property("StartARTDate"); - b.Property("VisitId"); + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); b.HasKey("Id"); - b.ToTable("TempPatientLaboratoryExtracts"); + b.ToTable("TempPatientArtExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractError", b => { b.Property("Id") .ValueGeneratedOnAdd(); + b.Property("AgeARTStart"); + + b.Property("AgeEnrollment"); + + b.Property("AgeLastVisit"); + b.Property("CheckError"); + b.Property("DOB"); + b.Property("DateExtracted"); - b.Property("Emr"); + b.Property("Duration"); - b.Property("EnrollmentTest"); + b.Property("Emr"); b.Property("ErrorType"); + b.Property("ExitDate"); + + b.Property("ExitReason"); + + b.Property("ExpectedReturn"); + b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("OrderedByDate"); + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); b.Property("PatientID"); b.Property("PatientPK"); - b.Property("Project"); + b.Property("PatientSource"); - b.Property("Reason"); + b.Property("PreviousARTRegimen"); - b.Property("ReportedByDate"); + b.Property("PreviousARTStartDate"); - b.Property("SatelliteName"); + b.Property("Project"); + + b.Property("Provider"); + + b.Property("RegistrationDate"); b.Property("SiteCode"); - b.Property("TestName"); + b.Property("StartARTAtThisFacility"); - b.Property("TestResult"); + b.Property("StartARTDate"); - b.Property("VisitId"); + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); b.HasKey("Id"); - b.ToTable("vTempPatientLaboratoryExtractError"); + b.ToTable("vTempPatientArtExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientArtExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); + b.Property("AgeLastVisit"); + + b.Property("DOB"); + b.Property("DateGenerated"); - b.Property("EnrollmentTest"); + b.Property("ExitDate"); + + b.Property("ExitReason"); b.Property("Extract"); @@ -6022,36 +6525,50 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Field"); - b.Property("OrderedByDate"); + b.Property("Gender"); + + b.Property("LastARTDate"); + + b.Property("LastRegimen"); + + b.Property("LastRegimenLine"); + + b.Property("LastVisit"); b.Property("PatientID"); b.Property("PatientPK"); - b.Property("Reason"); + b.Property("PatientSource"); + + b.Property("PreviousARTRegimen"); + + b.Property("PreviousARTStartDate"); b.Property("RecordId"); - b.Property("ReportedByDate"); + b.Property("RegistrationDate"); b.Property("SiteCode"); - b.Property("Summary"); + b.Property("StartARTAtThisFacility"); - b.Property("TestName"); + b.Property("StartARTDate"); - b.Property("TestResult"); + b.Property("StartRegimen"); - b.Property("Type"); + b.Property("StartRegimenLine"); - b.Property("VisitId"); + b.Property("Summary"); + + b.Property("Type"); b.HasKey("Id"); - b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + b.ToTable("vTempPatientArtExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); @@ -6064,54 +6581,70 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Date_Last_Modified"); - b.Property("DispenseDate"); + b.Property("Emr"); - b.Property("Drug"); + b.Property("ErrorType"); - b.Property("Duration"); + b.Property("FacilityId"); - b.Property("Emr"); + b.Property("PatientID"); - b.Property("ErrorType"); + b.Property("PatientPK"); - b.Property("ExpectedReturn"); + b.Property("Project"); - b.Property("FacilityId"); + b.Property("SiteCode"); - b.Property("PatientID"); + b.Property("bCD4"); - b.Property("PatientPK"); + b.Property("bCD4Date"); - b.Property("PeriodTaken"); + b.Property("bWAB"); - b.Property("Project"); + b.Property("bWABDate"); - b.Property("ProphylaxisType"); + b.Property("bWHO"); - b.Property("Provider"); + b.Property("bWHODate"); - b.Property("RegimenChangeSwitchReason"); + b.Property("eCD4"); - b.Property("RegimenChangedSwitched"); + b.Property("eCD4Date"); - b.Property("RegimenLine"); + b.Property("eWAB"); - b.Property("SiteCode"); + b.Property("eWABDate"); - b.Property("StopRegimenDate"); + b.Property("eWHO"); - b.Property("StopRegimenReason"); + b.Property("eWHODate"); - b.Property("TreatmentType"); + b.Property("lastCD4"); - b.Property("VisitID"); + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); b.HasKey("Id"); - b.ToTable("TempPatientPharmacyExtracts"); + b.ToTable("TempPatientBaselinesExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractError", b => { b.Property("Id") .ValueGeneratedOnAdd(); @@ -6120,60 +6653,76 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("DateExtracted"); - b.Property("DispenseDate"); - - b.Property("Drug"); - - b.Property("Duration"); - b.Property("Emr"); b.Property("ErrorType"); - b.Property("ExpectedReturn"); - b.Property("FacilityId"); b.Property("PatientID"); b.Property("PatientPK"); - b.Property("PeriodTaken"); - b.Property("Project"); - b.Property("ProphylaxisType"); + b.Property("SiteCode"); - b.Property("Provider"); + b.Property("bCD4"); - b.Property("RegimenLine"); + b.Property("bCD4Date"); - b.Property("SiteCode"); + b.Property("bWAB"); - b.Property("TreatmentType"); + b.Property("bWABDate"); - b.Property("VisitID"); + b.Property("bWHO"); + + b.Property("bWHODate"); + + b.Property("eCD4"); + + b.Property("eCD4Date"); + + b.Property("eWAB"); + + b.Property("eWABDate"); + + b.Property("eWHO"); + + b.Property("eWHODate"); + + b.Property("lastCD4"); + + b.Property("lastCD4Date"); + + b.Property("lastWAB"); + + b.Property("lastWABDate"); + + b.Property("lastWHO"); + + b.Property("lastWHODate"); + + b.Property("m12CD4"); + + b.Property("m12CD4Date"); + + b.Property("m6CD4"); + + b.Property("m6CD4Date"); b.HasKey("Id"); - b.ToTable("vTempPatientPharmacyExtractError"); + b.ToTable("vTempPatientBaselinesExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientBaselinesExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("DateGenerated"); - b.Property("DispenseDate"); - - b.Property("Drug"); - - b.Property("Duration"); - - b.Property("ExpectedReturn"); - b.Property("Extract"); b.Property("FacilityId"); @@ -6184,627 +6733,1829 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("PatientPK"); - b.Property("PeriodTaken"); - - b.Property("ProphylaxisType"); - - b.Property("Provider"); - b.Property("RecordId"); - b.Property("RegimenLine"); - b.Property("SiteCode"); b.Property("Summary"); - b.Property("TreatmentType"); - b.Property("Type"); - b.Property("VisitID"); + b.Property("bCD4"); - b.HasKey("Id"); + b.Property("bCD4Date"); - b.ToTable("vTempPatientPharmacyExtractErrorSummary"); - }); + b.Property("bWAB"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("bWABDate"); - b.Property("CheckError"); + b.Property("bWHO"); - b.Property("DateExtracted"); + b.Property("bWHODate"); - b.Property("Date_Created"); + b.Property("eCD4"); - b.Property("Date_Last_Modified"); + b.Property("eCD4Date"); - b.Property("Emr"); + b.Property("eWAB"); - b.Property("ErrorType"); + b.Property("eWABDate"); - b.Property("ExitDate"); + b.Property("eWHO"); - b.Property("ExitDescription"); + b.Property("eWHODate"); - b.Property("ExitReason"); + b.Property("lastCD4"); - b.Property("FacilityId"); + b.Property("lastCD4Date"); - b.Property("FacilityName"); + b.Property("lastWAB"); - b.Property("PatientID"); + b.Property("lastWABDate"); - b.Property("PatientPK"); + b.Property("lastWHO"); - b.Property("Project"); + b.Property("lastWHODate"); - b.Property("ReEnrollmentDate"); + b.Property("m12CD4"); - b.Property("SiteCode"); + b.Property("m12CD4Date"); - b.Property("TOVerified"); + b.Property("m6CD4"); - b.Property("TOVerifiedDate"); + b.Property("m6CD4Date"); b.HasKey("Id"); - b.ToTable("TempPatientStatusExtracts"); + b.ToTable("vTempPatientBaselinesExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("CheckError"); + b.Property("ContactRelation"); + + b.Property("DOB"); + + b.Property("DateConfirmedHIVPositive"); + b.Property("DateExtracted"); - b.Property("Emr"); + b.Property("Date_Created"); - b.Property("ErrorType"); + b.Property("Date_Last_Modified"); - b.Property("ExitDate"); + b.Property("District"); - b.Property("ExitDescription"); + b.Property("EducationLevel"); - b.Property("ExitReason"); + b.Property("Emr"); + + b.Property("ErrorType"); b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("PatientID"); + b.Property("Gender"); - b.Property("PatientPK"); + b.Property("Inschool"); - b.Property("Project"); + b.Property("KeyPopulationType"); - b.Property("SiteCode"); + b.Property("LastVisit"); - b.HasKey("Id"); + b.Property("MaritalStatus"); - b.ToTable("vTempPatientStatusExtractError"); - }); + b.Property("NUPI"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("Occupation"); - b.Property("DateGenerated"); + b.Property("Orphan"); - b.Property("ExitDate"); + b.Property("PatientID"); - b.Property("ExitDescription"); + b.Property("PatientPK"); - b.Property("ExitReason"); + b.Property("PatientResidentCounty"); - b.Property("Extract"); + b.Property("PatientResidentLocation"); - b.Property("FacilityId"); + b.Property("PatientResidentSubCounty"); - b.Property("FacilityName"); + b.Property("PatientResidentSubLocation"); - b.Property("Field"); + b.Property("PatientResidentVillage"); - b.Property("PatientID"); + b.Property("PatientResidentWard"); - b.Property("PatientPK"); + b.Property("PatientSource"); - b.Property("RecordId"); + b.Property("PatientType"); - b.Property("SiteCode"); + b.Property("Pkv"); - b.Property("Summary"); + b.Property("PopulationType"); - b.Property("Type"); + b.Property("PreviousARTExposure"); - b.HasKey("Id"); + b.Property("PreviousARTStartDate"); - b.ToTable("vTempPatientStatusExtractErrorSummary"); - }); + b.Property("Project"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("Region"); - b.Property("Abdomen"); + b.Property("RegistrationAtCCC"); - b.Property("Adherence"); + b.Property("RegistrationAtPMTCT"); - b.Property("AdherenceCategory"); + b.Property("RegistrationAtTBClinic"); - b.Property("BP"); + b.Property("RegistrationDate"); - b.Property("Breastfeeding"); + b.Property("SatelliteName"); - b.Property("CNS"); + b.Property("SiteCode"); - b.Property("CTXAdherence"); + b.Property("StatusAtCCC"); - b.Property("CVS"); + b.Property("StatusAtPMTCT"); - b.Property("CheckError"); + b.Property("StatusAtTBClinic"); - b.Property("Chest"); + b.Property("TransferInDate"); - b.Property("ClinicalNotes"); + b.Property("Village"); - b.Property("CurrentRegimen"); + b.HasKey("Id"); - b.Property("DateExtracted"); + b.ToTable("TempPatientExtracts"); + }); - b.Property("Date_Created"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("Date_Last_Modified"); + b.Property("CheckError"); - b.Property("DifferentiatedCare"); + b.Property("ContactRelation"); - b.Property("EDD"); + b.Property("DOB"); - b.Property("ENT"); + b.Property("DateConfirmedHIVPositive"); - b.Property("Emr"); + b.Property("DateExtracted"); - b.Property("ErrorType"); + b.Property("District"); - b.Property("EverHadMenses"); + b.Property("EducationLevel"); - b.Property("Eyes"); + b.Property("Emr"); + + b.Property("ErrorType"); b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("FamilyPlanningMethod"); - - b.Property("GeneralExamination"); + b.Property("Gender"); - b.Property("Genitourinary"); + b.Property("Inschool"); - b.Property("GestationAge"); + b.Property("KeyPopulationType"); - b.Property("HCWConcern"); + b.Property("LastVisit"); - b.Property("Height"); + b.Property("MaritalStatus"); - b.Property("KeyPopulationType"); + b.Property("NUPI"); - b.Property("LMP"); + b.Property("Orphan"); - b.Property("Menopausal"); + b.Property("PatientID"); - b.Property("Muac"); + b.Property("PatientPK"); - b.Property("NextAppointmentDate"); + b.Property("PatientResidentCounty"); - b.Property("NoFPReason"); + b.Property("PatientResidentLocation"); - b.Property("NutritionalStatus"); + b.Property("PatientResidentSubCounty"); - b.Property("OI"); + b.Property("PatientResidentSubLocation"); - b.Property("OIDate"); + b.Property("PatientResidentVillage"); - b.Property("OxygenSaturation"); + b.Property("PatientResidentWard"); - b.Property("PatientID"); + b.Property("PatientSource"); - b.Property("PatientPK"); + b.Property("PatientType"); b.Property("PopulationType"); - b.Property("Pregnant"); + b.Property("PreviousARTExposure"); - b.Property("Project"); + b.Property("PreviousARTStartDate"); - b.Property("ProphylaxisUsed"); + b.Property("Project"); - b.Property("PulseRate"); + b.Property("Region"); - b.Property("PwP"); + b.Property("RegistrationATPMTCT"); - b.Property("RespiratoryRate"); + b.Property("RegistrationAtCCC"); - b.Property("SecondlineRegimenChangeDate"); + b.Property("RegistrationAtTBClinic"); - b.Property("SecondlineRegimenChangeReason"); + b.Property("RegistrationDate"); - b.Property("Service"); + b.Property("SatelliteName"); b.Property("SiteCode"); - b.Property("Skin"); - - b.Property("StabilityAssessment"); - - b.Property("SubstitutionFirstlineRegimenDate"); + b.Property("StatusAtCCC"); - b.Property("SubstitutionFirstlineRegimenReason"); + b.Property("StatusAtPMTCT"); - b.Property("SubstitutionSecondlineRegimenDate"); + b.Property("StatusAtTBClinic"); - b.Property("SubstitutionSecondlineRegimenReason"); + b.Property("TransferInDate"); - b.Property("SystemExamination"); + b.Property("Village"); - b.Property("TCAReason"); + b.HasKey("Id"); - b.Property("Temp"); + b.ToTable("vTempPatientExtractError"); + }); - b.Property("VisitBy"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("VisitDate"); + b.Property("DateGenerated"); - b.Property("VisitId"); + b.Property("Extract"); - b.Property("VisitType"); + b.Property("FacilityId"); - b.Property("WABStage"); + b.Property("FacilityName"); - b.Property("WHOStage"); + b.Property("Field"); - b.Property("Weight"); + b.Property("Inschool"); - b.HasKey("Id"); + b.Property("KeyPopulationType"); - b.ToTable("TempPatientVisitExtracts"); - }); + b.Property("NUPI"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("Orphan"); - b.Property("Adherence"); + b.Property("PatientID"); - b.Property("AdherenceCategory"); + b.Property("PatientPK"); - b.Property("BP"); + b.Property("PatientResidentCounty"); - b.Property("CheckError"); + b.Property("PatientResidentLocation"); - b.Property("DateExtracted"); + b.Property("PatientResidentSubCounty"); - b.Property("DifferentiatedCare"); + b.Property("PatientResidentSubLocation"); - b.Property("EDD"); + b.Property("PatientResidentVillage"); - b.Property("Emr"); + b.Property("PatientResidentWard"); - b.Property("ErrorType"); + b.Property("PatientType"); - b.Property("FacilityId"); + b.Property("PopulationType"); - b.Property("FacilityName"); + b.Property("RecordId"); - b.Property("FamilyPlanningMethod"); + b.Property("SiteCode"); - b.Property("GestationAge"); + b.Property("Summary"); - b.Property("Height"); + b.Property("TransferInDate"); - b.Property("KeyPopulationType"); + b.Property("Type"); - b.Property("LMP"); + b.HasKey("Id"); - b.Property("NextAppointmentDate"); + b.ToTable("vTempPatientExtractErrorSummary"); + }); - b.Property("OI"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("OIDate"); + b.Property("CheckError"); - b.Property("PatientID"); + b.Property("DateExtracted"); - b.Property("PatientPK"); + b.Property("DateSampleTaken"); - b.Property("PopulationType"); + b.Property("Date_Created"); - b.Property("Pregnant"); + b.Property("Date_Last_Modified"); - b.Property("Project"); + b.Property("Emr"); - b.Property("PwP"); + b.Property("EnrollmentTest"); - b.Property("SecondlineRegimenChangeDate"); + b.Property("ErrorType"); - b.Property("SecondlineRegimenChangeReason"); + b.Property("FacilityId"); - b.Property("Service"); + b.Property("FacilityName"); - b.Property("SiteCode"); + b.Property("OrderedByDate"); - b.Property("StabilityAssessment"); + b.Property("PatientID"); - b.Property("SubstitutionFirstlineRegimenDate"); + b.Property("PatientPK"); - b.Property("SubstitutionFirstlineRegimenReason"); + b.Property("Project"); - b.Property("SubstitutionSecondlineRegimenDate"); + b.Property("Reason"); - b.Property("SubstitutionSecondlineRegimenReason"); + b.Property("ReportedByDate"); - b.Property("VisitDate"); + b.Property("SampleType"); - b.Property("VisitId"); + b.Property("SatelliteName"); - b.Property("VisitType"); + b.Property("SiteCode"); - b.Property("WABStage"); + b.Property("TestName"); - b.Property("WHOStage"); + b.Property("TestResult"); - b.Property("Weight"); + b.Property("VisitId"); b.HasKey("Id"); - b.ToTable("vTempPatientVisitExtractError"); + b.ToTable("TempPatientLaboratoryExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractError", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("Adherence"); - - b.Property("AdherenceCategory"); - - b.Property("BP"); + b.Property("CheckError"); - b.Property("DateGenerated"); + b.Property("DateExtracted"); - b.Property("DifferentiatedCare"); + b.Property("Emr"); - b.Property("EDD"); + b.Property("EnrollmentTest"); - b.Property("Extract"); + b.Property("ErrorType"); b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("FamilyPlanningMethod"); + b.Property("OrderedByDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("Reason"); + + b.Property("ReportedByDate"); + + b.Property("SatelliteName"); + + b.Property("SiteCode"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientLaboratoryExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("EnrollmentTest"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); b.Property("Field"); - b.Property("GestationAge"); + b.Property("OrderedByDate"); - b.Property("Height"); + b.Property("PatientID"); - b.Property("KeyPopulationType"); + b.Property("PatientPK"); - b.Property("LMP"); + b.Property("Reason"); - b.Property("NextAppointmentDate"); + b.Property("RecordId"); - b.Property("OI"); + b.Property("ReportedByDate"); - b.Property("OIDate"); + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("Type"); + + b.Property("VisitId"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientLaboratoryExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenChangeSwitchReason"); + + b.Property("RegimenChangedSwitched"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("StopRegimenDate"); + + b.Property("StopRegimenReason"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("TempPatientPharmacyExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExpectedReturn"); + + b.Property("FacilityId"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("Project"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("TreatmentType"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientPharmacyExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("DispenseDate"); + + b.Property("Drug"); + + b.Property("Duration"); + + b.Property("ExpectedReturn"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("Field"); b.Property("PatientID"); - b.Property("PatientPK"); + b.Property("PatientPK"); + + b.Property("PeriodTaken"); + + b.Property("ProphylaxisType"); + + b.Property("Provider"); + + b.Property("RecordId"); + + b.Property("RegimenLine"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TreatmentType"); + + b.Property("Type"); + + b.Property("VisitID"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientPharmacyExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DeathDate"); + + b.Property("EffectiveDiscontinuationDate"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("ReEnrollmentDate"); + + b.Property("ReasonForDeath"); + + b.Property("SiteCode"); + + b.Property("SpecificDeathReason"); + + b.Property("TOVerified"); + + b.Property("TOVerifiedDate"); + + b.HasKey("Id"); + + b.ToTable("TempPatientStatusExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientStatusExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("ExitDate"); + + b.Property("ExitDescription"); + + b.Property("ExitReason"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientStatusExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Abdomen"); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("Breastfeeding"); + + b.Property("CNS"); + + b.Property("CTXAdherence"); + + b.Property("CVS"); + + b.Property("CheckError"); + + b.Property("Chest"); + + b.Property("ClinicalNotes"); + + b.Property("CurrentRegimen"); + + b.Property("DateExtracted"); + + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("ENT"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("EverHadMenses"); + + b.Property("Eyes"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GeneralExamination"); + + b.Property("Genitourinary"); + + b.Property("GestationAge"); + + b.Property("HCWConcern"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("Menopausal"); + + b.Property("Muac"); + + b.Property("NextAppointmentDate"); + + b.Property("NoFPReason"); + + b.Property("NutritionalStatus"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("ProphylaxisUsed"); + + b.Property("PulseRate"); + + b.Property("PwP"); + + b.Property("RefillDate"); + + b.Property("RespiratoryRate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("Skin"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("SystemExamination"); + + b.Property("TCAReason"); + + b.Property("Temp"); + + b.Property("VisitBy"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("TempPatientVisitExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("Project"); + + b.Property("PwP"); + + b.Property("RefillDate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Dwh.TempPatientVisitExtractErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Adherence"); + + b.Property("AdherenceCategory"); + + b.Property("BP"); + + b.Property("DateGenerated"); + + b.Property("DifferentiatedCare"); + + b.Property("EDD"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("FacilityName"); + + b.Property("FamilyPlanningMethod"); + + b.Property("Field"); + + b.Property("GestationAge"); + + b.Property("Height"); + + b.Property("KeyPopulationType"); + + b.Property("LMP"); + + b.Property("NextAppointmentDate"); + + b.Property("OI"); + + b.Property("OIDate"); + + b.Property("PatientID"); + + b.Property("PatientPK"); + + b.Property("PopulationType"); + + b.Property("Pregnant"); + + b.Property("PwP"); + + b.Property("RecordId"); + + b.Property("RefillDate"); + + b.Property("SecondlineRegimenChangeDate"); + + b.Property("SecondlineRegimenChangeReason"); + + b.Property("Service"); + + b.Property("SiteCode"); + + b.Property("StabilityAssessment"); + + b.Property("SubstitutionFirstlineRegimenDate"); + + b.Property("SubstitutionFirstlineRegimenReason"); + + b.Property("SubstitutionSecondlineRegimenDate"); + + b.Property("SubstitutionSecondlineRegimenReason"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("VisitDate"); + + b.Property("VisitId"); + + b.Property("VisitType"); + + b.Property("WABStage"); + + b.Property("WHOStage"); + + b.Property("Weight"); + + b.HasKey("Id"); + + b.ToTable("vTempPatientVisitExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsLinkageExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("Emr"); + + b.Property("EnrolledFacilityName"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientLinkageError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateEnrolled"); + + b.Property("DateGenerated"); + + b.Property("DatePrefferedToBeEnrolled"); + + b.Property("EnrolledFacilityName"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("FacilityReferredTo"); + + b.Property("Field"); + + b.Property("HandedOverTo"); + + b.Property("HandedOverToCadre"); + + b.Property("HtsNumber"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("ReferralDate"); + + b.Property("ReportedCCCNumber"); + + b.Property("ReportedStartARTDate"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("County"); + + b.Property("DateExtracted"); + + b.Property("Dob"); + + b.Property("Emr"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPk"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("County"); + + b.Property("DateGenerated"); + + b.Property("Dob"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("Gender"); + + b.Property("HtsNumber"); + + b.Property("KeyPopulationType"); + + b.Property("MaritalStatus"); + + b.Property("NUPI"); + + b.Property("PatientDisabled"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("PopulationType"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("SubCounty"); + + b.Property("Summary"); + + b.Property("Type"); + + b.Property("Ward"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("ErrorType"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTestsExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("FacilityName"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("ClientSelfTested"); + + b.Property("ClientTestedAs"); + + b.Property("Consent"); + + b.Property("CoupleDiscordant"); + + b.Property("DateGenerated"); + + b.Property("EncounterId"); + + b.Property("EntryPoint"); + + b.Property("EverTestedForHiv"); + + b.Property("Extract"); + + b.Property("FacilityName"); + + b.Property("Field"); + + b.Property("FinalTestResult"); + + b.Property("HtsNumber"); + + b.Property("MonthsSinceLastTest"); + + b.Property("PatientGivenResult"); + + b.Property("PatientPK"); + + b.Property("RecordId"); + + b.Property("SiteCode"); + + b.Property("Summary"); + + b.Property("TbScreening"); + + b.Property("TestDate"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); + + b.Property("TestStrategy"); + + b.Property("TestType"); + + b.Property("Type"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("TempHtsClientTracingExtracts"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("CheckError"); + + b.Property("DateExtracted"); + + b.Property("Emr"); + + b.Property("FacilityName"); + + b.Property("HtsNumber"); + + b.Property("PatientPk"); + + b.Property("Project"); + + b.Property("SiteCode"); + + b.Property("TracingDate"); + + b.Property("TracingOutcome"); + + b.Property("TracingType"); + + b.HasKey("Id"); + + b.ToTable("vTempHtsClientTracingError"); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DateGenerated"); + + b.Property("Extract"); + + b.Property("FacilityName"); - b.Property("PopulationType"); + b.Property("Field"); - b.Property("Pregnant"); + b.Property("HtsNumber"); - b.Property("PwP"); + b.Property("PatientPK"); b.Property("RecordId"); - b.Property("SecondlineRegimenChangeDate"); + b.Property("SiteCode"); - b.Property("SecondlineRegimenChangeReason"); + b.Property("Summary"); - b.Property("Service"); + b.Property("TracingDate"); - b.Property("SiteCode"); + b.Property("TracingOutcome"); - b.Property("StabilityAssessment"); + b.Property("TracingType"); - b.Property("SubstitutionFirstlineRegimenDate"); + b.Property("Type"); - b.Property("SubstitutionFirstlineRegimenReason"); + b.HasKey("Id"); - b.Property("SubstitutionSecondlineRegimenDate"); + b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + }); - b.Property("SubstitutionSecondlineRegimenReason"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsEligibilityExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("Summary"); + b.Property("AlcoholSex"); - b.Property("Type"); + b.Property("AssessmentOutcome"); - b.Property("VisitDate"); + b.Property("BreastfeedingMother"); - b.Property("VisitId"); + b.Property("CCCNumber"); - b.Property("VisitType"); + b.Property("CheckError"); - b.Property("WABStage"); + b.Property("ChildReasonsForIneligibility"); - b.Property("WHOStage"); + b.Property("CondomBurst"); - b.Property("Weight"); + b.Property("ContactWithTBCase"); - b.HasKey("Id"); + b.Property("Cough"); - b.ToTable("vTempPatientVisitExtractErrorSummary"); - }); + b.Property("CoupleDiscordant"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkage", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("CurrentlyHasSTI"); - b.Property("CheckError"); + b.Property("CurrentlyOnPep"); - b.Property("DateEnrolled"); + b.Property("CurrentlyOnPrep"); + + b.Property("DateCreated"); b.Property("DateExtracted"); - b.Property("DatePrefferedToBeEnrolled"); + b.Property("DateLastModified"); - b.Property("Emr"); + b.Property("DateTestedProvider"); - b.Property("EnrolledFacilityName"); + b.Property("DateTestedSelf"); - b.Property("ErrorType"); + b.Property("Department"); - b.Property("FacilityName"); + b.Property("EligibleForTest"); - b.Property("FacilityReferredTo"); + b.Property("Emr"); - b.Property("HandedOverTo"); + b.Property("EncounterId"); - b.Property("HandedOverToCadre"); + b.Property("ErrorType"); - b.Property("HtsNumber"); + b.Property("EverHadSTI"); - b.Property("PatientPk"); + b.Property("EverHadSex"); - b.Property("Project"); + b.Property("EverHadTB"); - b.Property("ReferralDate"); + b.Property("EverOnPep"); - b.Property("ReportedCCCNumber"); + b.Property("EverOnPrep"); - b.Property("ReportedStartARTDate"); + b.Property("ExperiencedGBV"); - b.Property("SiteCode"); + b.Property("FacilityName"); - b.HasKey("Id"); + b.Property("Fever"); - b.ToTable("TempHtsClientsLinkageExtracts"); - }); + b.Property("ForcedSex"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageError", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("HtsNumber"); - b.Property("CheckError"); + b.Property("IsHealthWorker"); - b.Property("DateEnrolled"); + b.Property("KeyPopulation"); - b.Property("DateExtracted"); + b.Property("KnownStatusPartner"); - b.Property("DatePrefferedToBeEnrolled"); + b.Property("Lethargy"); - b.Property("Emr"); + b.Property("MoneySex"); - b.Property("EnrolledFacilityName"); + b.Property("MothersStatus"); - b.Property("FacilityName"); + b.Property("MultiplePartners"); - b.Property("FacilityReferredTo"); + b.Property("NeedleStickInjuries"); - b.Property("HandedOverTo"); + b.Property("NewPartner"); - b.Property("HandedOverToCadre"); + b.Property("NightSweats"); - b.Property("HtsNumber"); + b.Property("NumberOfPartners"); - b.Property("PatientPk"); + b.Property("PartnerHIVStatus"); - b.Property("Project"); + b.Property("PatientPk"); - b.Property("ReferralDate"); + b.Property("PatientType"); - b.Property("ReportedCCCNumber"); + b.Property("PopulationType"); - b.Property("ReportedStartARTDate"); + b.Property("Pregnant"); - b.Property("SiteCode"); + b.Property("PriorityPopulation"); - b.HasKey("Id"); + b.Property("Project"); - b.ToTable("vTempHtsClientLinkageError"); - }); + b.Property("ReasonsForIneligibility"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientLinkageErrorSummary", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("ReceivedServices"); - b.Property("DateEnrolled"); + b.Property("ReferredForTesting"); - b.Property("DateGenerated"); + b.Property("RelationshipWithContact"); - b.Property("DatePrefferedToBeEnrolled"); + b.Property("ResultOfHIV"); - b.Property("EnrolledFacilityName"); + b.Property("ResultOfHIVSelf"); - b.Property("Extract"); + b.Property("ScreenedTB"); - b.Property("FacilityName"); + b.Property("SexuallyActive"); - b.Property("FacilityReferredTo"); + b.Property("SharedNeedle"); - b.Property("Field"); + b.Property("SiteCode"); - b.Property("HandedOverTo"); + b.Property("SpecificReasonForIneligibility"); - b.Property("HandedOverToCadre"); + b.Property("StartedOnART"); - b.Property("HtsNumber"); + b.Property("TBStatus"); - b.Property("PatientPK"); + b.Property("TestedHIVBefore"); - b.Property("RecordId"); + b.Property("TraditionalProcedures"); - b.Property("ReferralDate"); + b.Property("TypeGBV"); - b.Property("ReportedCCCNumber"); + b.Property("UnknownStatusPartner"); - b.Property("ReportedStartARTDate"); + b.Property("VisitDate"); - b.Property("SiteCode"); + b.Property("VisitID"); - b.Property("Summary"); + b.Property("WeightLoss"); - b.Property("Type"); + b.Property("WhoPerformedTest"); b.HasKey("Id"); - b.ToTable("vTempHtsClientsLinkageExtractErrorSummary"); + b.ToTable("TempHtsEligibilityExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClients", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => { b.Property("Id") .ValueGeneratedOnAdd(); + b.Property("Age"); + + b.Property("CccNumber"); + b.Property("CheckError"); - b.Property("County"); + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); b.Property("DateExtracted"); @@ -6814,83 +8565,121 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ErrorType"); - b.Property("FacilityName"); + b.Property("FacilityLinkedTo"); - b.Property("Gender"); + b.Property("FacilityName"); b.Property("HtsNumber"); - b.Property("KeyPopulationType"); + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); b.Property("MaritalStatus"); - b.Property("PatientDisabled"); + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); b.Property("PatientPk"); - b.Property("PopulationType"); + b.Property("PnsApproach"); + + b.Property("PnsConsent"); b.Property("Project"); - b.Property("SiteCode"); + b.Property("RelationsipToIndexClient"); - b.Property("SubCounty"); + b.Property("ScreenedForIpv"); - b.Property("Ward"); + b.Property("Sex"); + + b.Property("SiteCode"); b.HasKey("Id"); - b.ToTable("TempHtsClientsExtracts"); + b.ToTable("TempHtsPartnerNotificationServicesExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => { b.Property("Id") .ValueGeneratedOnAdd(); + b.Property("Age"); + + b.Property("CccNumber"); + b.Property("CheckError"); - b.Property("County"); + b.Property("CurrentlyLivingWithIndexClient"); - b.Property("DateExtracted"); + b.Property("DateElicited"); + + b.Property("DateExtracted"); b.Property("Dob"); b.Property("Emr"); - b.Property("Gender"); + b.Property("FacilityLinkedTo"); + + b.Property("FacilityName"); b.Property("HtsNumber"); - b.Property("KeyPopulationType"); + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); b.Property("MaritalStatus"); - b.Property("PatientDisabled"); + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); b.Property("PatientPk"); - b.Property("PopulationType"); + b.Property("PnsApproach"); + + b.Property("PnsConsent"); b.Property("Project"); - b.Property("SiteCode"); + b.Property("RelationsipToIndexClient"); - b.Property("SubCounty"); + b.Property("ScreenedForIpv"); - b.Property("Ward"); + b.Property("Sex"); + + b.Property("SiteCode"); b.HasKey("Id"); - b.ToTable("vTempHtsClientsError"); + b.ToTable("vTempHtsPartnerNotificationServicesError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientsErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("County"); + b.Property("Age"); + + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateElicited"); b.Property("DateGenerated"); @@ -6898,77 +8687,73 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Extract"); + b.Property("FacilityLinkedTo"); + b.Property("FacilityName"); b.Property("Field"); - b.Property("Gender"); - b.Property("HtsNumber"); - b.Property("KeyPopulationType"); + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("LinkedToCare"); b.Property("MaritalStatus"); - b.Property("PatientDisabled"); + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonID"); b.Property("PatientPK"); - b.Property("PopulationType"); + b.Property("PnsApproach"); + + b.Property("PnsConsent"); b.Property("RecordId"); - b.Property("SiteCode"); + b.Property("RelationsipToIndexClient"); - b.Property("SubCounty"); + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + + b.Property("SiteCode"); b.Property("Summary"); b.Property("Type"); - b.Property("Ward"); - b.HasKey("Id"); - b.ToTable("vTempHtsClientsExtractErrorSummary"); + b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTests", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CheckError"); - - b.Property("ClientSelfTested"); - - b.Property("ClientTestedAs"); - - b.Property("Consent"); + b.Property("BookingDate"); - b.Property("CoupleDiscordant"); + b.Property("CheckError"); b.Property("DateExtracted"); b.Property("Emr"); - b.Property("EncounterId"); - - b.Property("EntryPoint"); - b.Property("ErrorType"); - b.Property("EverTestedForHiv"); - b.Property("FacilityName"); - b.Property("FinalTestResult"); - b.Property("HtsNumber"); - b.Property("MonthsSinceLastTest"); - - b.Property("PatientGivenResult"); + b.Property("PartnerPersonId"); b.Property("PatientPk"); @@ -6976,57 +8761,35 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("SiteCode"); - b.Property("TbScreening"); - - b.Property("TestDate"); - - b.Property("TestResult1"); - - b.Property("TestResult2"); + b.Property("TraceDate"); - b.Property("TestStrategy"); + b.Property("TraceOutcome"); - b.Property("TestType"); + b.Property("TraceType"); b.HasKey("Id"); - b.ToTable("TempHtsClientTestsExtracts"); + b.ToTable("TempHtsPartnerTracingExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CheckError"); - - b.Property("ClientSelfTested"); - - b.Property("ClientTestedAs"); - - b.Property("Consent"); + b.Property("BookingDate"); - b.Property("CoupleDiscordant"); + b.Property("CheckError"); b.Property("DateExtracted"); b.Property("Emr"); - b.Property("EncounterId"); - - b.Property("EntryPoint"); - - b.Property("EverTestedForHiv"); - b.Property("FacilityName"); - b.Property("FinalTestResult"); - b.Property("HtsNumber"); - b.Property("MonthsSinceLastTest"); - - b.Property("PatientGivenResult"); + b.Property("PartnerPersonId"); b.Property("PatientPk"); @@ -7034,57 +8797,35 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("SiteCode"); - b.Property("TbScreening"); - - b.Property("TestDate"); - - b.Property("TestResult1"); - - b.Property("TestResult2"); + b.Property("TraceDate"); - b.Property("TestStrategy"); + b.Property("TraceOutcome"); - b.Property("TestType"); + b.Property("TraceType"); b.HasKey("Id"); - b.ToTable("vTempHtsClientTestsError"); + b.ToTable("vTempHtsPartnerTracingError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTestsErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("ClientSelfTested"); - - b.Property("ClientTestedAs"); - - b.Property("Consent"); - - b.Property("CoupleDiscordant"); + b.Property("BookingDate"); b.Property("DateGenerated"); - b.Property("EncounterId"); - - b.Property("EntryPoint"); - - b.Property("EverTestedForHiv"); - b.Property("Extract"); b.Property("FacilityName"); b.Property("Field"); - b.Property("FinalTestResult"); - b.Property("HtsNumber"); - b.Property("MonthsSinceLastTest"); - - b.Property("PatientGivenResult"); + b.Property("PartnerPersonId"); b.Property("PatientPK"); @@ -7094,26 +8835,20 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Summary"); - b.Property("TbScreening"); - - b.Property("TestDate"); - - b.Property("TestResult1"); - - b.Property("TestResult2"); + b.Property("TraceDate"); - b.Property("TestStrategy"); + b.Property("TraceOutcome"); - b.Property("TestType"); + b.Property("TraceType"); b.Property("Type"); b.HasKey("Id"); - b.ToTable("vTempHtsClientTestsExtractErrorSummary"); + b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracing", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => { b.Property("Id") .ValueGeneratedOnAdd(); @@ -7124,6 +8859,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Emr"); + b.Property("EncounterId"); + b.Property("ErrorType"); b.Property("FacilityName"); @@ -7136,18 +8873,28 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("SiteCode"); - b.Property("TracingDate"); + b.Property("TestKitExpiry1"); - b.Property("TracingOutcome"); + b.Property("TestKitExpiry2"); - b.Property("TracingType"); + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); b.HasKey("Id"); - b.ToTable("TempHtsClientTracingExtracts"); + b.ToTable("TempHtsTestKitsExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => { b.Property("Id") .ValueGeneratedOnAdd(); @@ -7158,6 +8905,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Emr"); + b.Property("EncounterId"); + b.Property("FacilityName"); b.Property("HtsNumber"); @@ -7168,24 +8917,36 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("SiteCode"); - b.Property("TracingDate"); + b.Property("TestKitExpiry1"); - b.Property("TracingOutcome"); + b.Property("TestKitExpiry2"); - b.Property("TracingType"); + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); b.HasKey("Id"); - b.ToTable("vTempHtsClientTracingError"); + b.ToTable("vTempHtsTestKitsError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsClientTracingErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("DateGenerated"); + b.Property("EncounterId"); + b.Property("Extract"); b.Property("FacilityName"); @@ -7202,294 +8963,384 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Summary"); - b.Property("TracingDate"); + b.Property("TestKitExpiry1"); - b.Property("TracingOutcome"); + b.Property("TestKitExpiry2"); - b.Property("TracingType"); + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResult1"); + + b.Property("TestResult2"); b.Property("Type"); b.HasKey("Id"); - b.ToTable("vTempHtsClientTracingExtractErrorSummary"); + b.ToTable("vTempHtsTestKitsExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServices", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("Age"); - - b.Property("CccNumber"); - b.Property("CheckError"); - b.Property("CurrentlyLivingWithIndexClient"); + b.Property("ClientSelfTested"); - b.Property("DateElicited"); + b.Property("ClientTestedAs"); + + b.Property("CoupleDiscordant"); b.Property("DateExtracted"); + b.Property("DisabilityType"); + b.Property("Dob"); b.Property("Emr"); - b.Property("ErrorType"); + b.Property("EncounterId"); - b.Property("FacilityLinkedTo"); + b.Property("ErrorType"); b.Property("FacilityName"); - b.Property("HtsNumber"); + b.Property("FinalResultHTS"); - b.Property("IpvScreeningOutcome"); + b.Property("FinalResultsGiven"); - b.Property("KnowledgeOfHivStatus"); + b.Property("Gender"); - b.Property("LinkDateLinkedToCare"); + b.Property("HtsNumber"); - b.Property("LinkedToCare"); + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); b.Property("MaritalStatus"); - b.Property("PartnerPatientPk"); + b.Property("MonthsLastTested"); - b.Property("PartnerPersonID"); + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); b.Property("PatientPk"); - b.Property("PnsApproach"); + b.Property("Pkv"); - b.Property("PnsConsent"); + b.Property("PopulationType"); b.Property("Project"); - b.Property("RelationsipToIndexClient"); + b.Property("SiteCode"); - b.Property("ScreenedForIpv"); + b.Property("StrategyHTS"); - b.Property("Sex"); + b.Property("TBScreeningHTS"); - b.Property("SiteCode"); + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); b.HasKey("Id"); - b.ToTable("TempHtsPartnerNotificationServicesExtracts"); + b.ToTable("TempHtsClientExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("Age"); + b.Property("CheckError"); - b.Property("CccNumber"); + b.Property("ClientSelfTested"); - b.Property("CheckError"); + b.Property("ClientTestedAs"); - b.Property("CurrentlyLivingWithIndexClient"); + b.Property("CoupleDiscordant"); - b.Property("DateElicited"); + b.Property("DateExtracted"); - b.Property("DateExtracted"); + b.Property("DisabilityType"); b.Property("Dob"); b.Property("Emr"); - b.Property("FacilityLinkedTo"); + b.Property("EncounterId"); b.Property("FacilityName"); - b.Property("HtsNumber"); + b.Property("FinalResultHTS"); - b.Property("IpvScreeningOutcome"); + b.Property("FinalResultsGiven"); - b.Property("KnowledgeOfHivStatus"); + b.Property("Gender"); - b.Property("LinkDateLinkedToCare"); + b.Property("HtsNumber"); - b.Property("LinkedToCare"); + b.Property("KeyPop"); + + b.Property("KeyPopulationType"); b.Property("MaritalStatus"); - b.Property("PartnerPatientPk"); + b.Property("MonthsLastTested"); - b.Property("PartnerPersonID"); + b.Property("NUPI"); + + b.Property("PatientConsented"); + + b.Property("PatientDisabled"); b.Property("PatientPk"); - b.Property("PnsApproach"); + b.Property("Pkv"); - b.Property("PnsConsent"); + b.Property("PopulationType"); b.Property("Project"); - b.Property("RelationsipToIndexClient"); + b.Property("SiteCode"); - b.Property("ScreenedForIpv"); + b.Property("StrategyHTS"); - b.Property("Sex"); + b.Property("TBScreeningHTS"); - b.Property("SiteCode"); + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); + + b.Property("VisitDate"); b.HasKey("Id"); - b.ToTable("vTempHtsPartnerNotificationServicesError"); + b.ToTable("vTempHTSClientExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerNotificationServicesErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("Age"); - - b.Property("CccNumber"); + b.Property("ClientSelfTested"); - b.Property("CurrentlyLivingWithIndexClient"); + b.Property("ClientTestedAs"); - b.Property("DateElicited"); + b.Property("CoupleDiscordant"); b.Property("DateGenerated"); b.Property("Dob"); - b.Property("Extract"); + b.Property("EncounterId"); - b.Property("FacilityLinkedTo"); + b.Property("Extract"); b.Property("FacilityName"); b.Property("Field"); - b.Property("HtsNumber"); + b.Property("FinalResultHTS"); - b.Property("IpvScreeningOutcome"); + b.Property("FinalResultsGiven"); - b.Property("KnowledgeOfHivStatus"); + b.Property("Gender"); - b.Property("LinkDateLinkedToCare"); + b.Property("HtsNumber"); - b.Property("LinkedToCare"); + b.Property("KeyPop"); b.Property("MaritalStatus"); - b.Property("PartnerPatientPk"); + b.Property("MonthsLastTested"); - b.Property("PartnerPersonID"); + b.Property("NUPI"); b.Property("PatientPK"); - b.Property("PnsApproach"); - - b.Property("PnsConsent"); + b.Property("Pkv"); b.Property("RecordId"); - b.Property("RelationsipToIndexClient"); + b.Property("SiteCode"); - b.Property("ScreenedForIpv"); + b.Property("StrategyHTS"); - b.Property("Sex"); + b.Property("Summary"); - b.Property("SiteCode"); + b.Property("TBScreeningHTS"); - b.Property("Summary"); + b.Property("TestKitExpiryDate1"); + + b.Property("TestKitExpiryDate2"); + + b.Property("TestKitLotNumber1"); + + b.Property("TestKitLotNumber2"); + + b.Property("TestKitName1"); + + b.Property("TestKitName2"); + + b.Property("TestResultsHTS1"); + + b.Property("TestResultsHTS2"); + + b.Property("TestType"); + + b.Property("TestedBefore"); b.Property("Type"); + b.Property("VisitDate"); + b.HasKey("Id"); - b.ToTable("vTempHtsPartnerNotificationServicesExtractErrorSummary"); + b.ToTable("vTempHTSClientExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracing", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("BookingDate"); + b.Property("CccNumber"); b.Property("CheckError"); + b.Property("DateEnrolled"); + b.Property("DateExtracted"); b.Property("Emr"); + b.Property("EnrolledFacilityName"); + b.Property("ErrorType"); b.Property("FacilityName"); b.Property("HtsNumber"); - b.Property("PartnerPersonId"); - b.Property("PatientPk"); - b.Property("Project"); + b.Property("PhoneTracingDate"); - b.Property("SiteCode"); + b.Property("PhysicalTracingDate"); - b.Property("TraceDate"); + b.Property("Project"); - b.Property("TraceOutcome"); + b.Property("ReferralDate"); - b.Property("TraceType"); + b.Property("SiteCode"); + + b.Property("TracingOutcome"); b.HasKey("Id"); - b.ToTable("TempHtsPartnerTracingExtracts"); + b.ToTable("TempHtsClientLinkageExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("BookingDate"); + b.Property("CccNumber"); b.Property("CheckError"); - b.Property("DateExtracted"); + b.Property("DateEnrolled"); + + b.Property("DateExtracted"); b.Property("Emr"); + b.Property("EnrolledFacilityName"); + b.Property("FacilityName"); b.Property("HtsNumber"); - b.Property("PartnerPersonId"); - b.Property("PatientPk"); - b.Property("Project"); + b.Property("PhoneTracingDate"); - b.Property("SiteCode"); + b.Property("PhysicalTracingDate"); - b.Property("TraceDate"); + b.Property("Project"); - b.Property("TraceOutcome"); + b.Property("ReferralDate"); - b.Property("TraceType"); + b.Property("SiteCode"); + + b.Property("TracingOutcome"); b.HasKey("Id"); - b.ToTable("vTempHtsPartnerTracingError"); + b.ToTable("vTempHTSClientLinkageExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsPartnerTracingErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("BookingDate"); + b.Property("CccNumber"); + + b.Property("DateEnrolled"); b.Property("DateGenerated"); + b.Property("EnrolledFacilityName"); + b.Property("Extract"); b.Property("FacilityName"); @@ -7498,127 +9349,187 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("HtsNumber"); - b.Property("PartnerPersonId"); - b.Property("PatientPK"); + b.Property("PhoneTracingDate"); + + b.Property("PhysicalTracingDate"); + b.Property("RecordId"); + b.Property("ReferralDate"); + b.Property("SiteCode"); b.Property("Summary"); - b.Property("TraceDate"); - - b.Property("TraceOutcome"); - - b.Property("TraceType"); + b.Property("TracingOutcome"); b.Property("Type"); b.HasKey("Id"); - b.ToTable("vTempHtsPartnerTracingExtractErrorSummary"); + b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKits", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); + b.Property("Age"); + + b.Property("CccNumber"); + b.Property("CheckError"); + b.Property("CurrentlyLivingWithIndexClient"); + b.Property("DateExtracted"); b.Property("Emr"); - b.Property("EncounterId"); - b.Property("ErrorType"); b.Property("FacilityName"); b.Property("HtsNumber"); + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + b.Property("PatientPk"); + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + b.Property("Project"); + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + b.Property("SiteCode"); - b.Property("TestKitExpiry1"); + b.Property("Trace1Date"); - b.Property("TestKitExpiry2"); + b.Property("Trace1Outcome"); - b.Property("TestKitLotNumber1"); + b.Property("Trace1Type"); - b.Property("TestKitLotNumber2"); + b.Property("Trace2Date"); - b.Property("TestKitName1"); + b.Property("Trace2Outcome"); - b.Property("TestKitName2"); + b.Property("Trace2Type"); - b.Property("TestResult1"); + b.Property("Trace3Date"); - b.Property("TestResult2"); + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); b.HasKey("Id"); - b.ToTable("TempHtsTestKitsExtracts"); + b.ToTable("TempHtsClientPartnerExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => { b.Property("Id") .ValueGeneratedOnAdd(); + b.Property("Age"); + + b.Property("CccNumber"); + b.Property("CheckError"); - b.Property("DateExtracted"); + b.Property("CurrentlyLivingWithIndexClient"); - b.Property("Emr"); + b.Property("DateExtracted"); - b.Property("EncounterId"); + b.Property("Emr"); b.Property("FacilityName"); b.Property("HtsNumber"); + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + b.Property("PatientPk"); + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + b.Property("Project"); + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + b.Property("SiteCode"); - b.Property("TestKitExpiry1"); + b.Property("Trace1Date"); - b.Property("TestKitExpiry2"); + b.Property("Trace1Outcome"); - b.Property("TestKitLotNumber1"); + b.Property("Trace1Type"); - b.Property("TestKitLotNumber2"); + b.Property("Trace2Date"); - b.Property("TestKitName1"); + b.Property("Trace2Outcome"); - b.Property("TestKitName2"); + b.Property("Trace2Type"); - b.Property("TestResult1"); + b.Property("Trace3Date"); - b.Property("TestResult2"); + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); b.HasKey("Id"); - b.ToTable("vTempHtsTestKitsError"); + b.ToTable("vTempHTSClientPartnerExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts.TempHtsTestKitsErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("DateGenerated"); + b.Property("Age"); - b.Property("EncounterId"); + b.Property("CccNumber"); + + b.Property("CurrentlyLivingWithIndexClient"); + + b.Property("DateGenerated"); b.Property("Extract"); @@ -7628,1189 +9539,1169 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("HtsNumber"); + b.Property("IpvScreeningOutcome"); + + b.Property("KnowledgeOfHivStatus"); + + b.Property("LinkDateLinkedToCare"); + + b.Property("Linked"); + + b.Property("PartnerPatientPk"); + + b.Property("PartnerPersonId"); + b.Property("PatientPK"); + b.Property("PnsApproach"); + + b.Property("PnsConsent"); + b.Property("RecordId"); + b.Property("RelationshipToIndexClient"); + + b.Property("ScreenedForIpv"); + + b.Property("Sex"); + b.Property("SiteCode"); b.Property("Summary"); - b.Property("TestKitExpiry1"); + b.Property("Trace1Date"); - b.Property("TestKitExpiry2"); + b.Property("Trace1Outcome"); - b.Property("TestKitLotNumber1"); + b.Property("Trace1Type"); - b.Property("TestKitLotNumber2"); + b.Property("Trace2Date"); - b.Property("TestKitName1"); + b.Property("Trace2Outcome"); - b.Property("TestKitName2"); + b.Property("Trace2Type"); - b.Property("TestResult1"); + b.Property("Trace3Date"); - b.Property("TestResult2"); + b.Property("Trace3Outcome"); + + b.Property("Trace3Type"); b.Property("Type"); b.HasKey("Id"); - b.ToTable("vTempHtsTestKitsExtractErrorSummary"); + b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("CheckError"); - b.Property("ClientSelfTested"); - - b.Property("ClientTestedAs"); + b.Property("CreateDate"); - b.Property("CoupleDiscordant"); + b.Property("Dataset"); b.Property("DateExtracted"); - b.Property("DisabilityType"); - - b.Property("Dob"); - b.Property("Emr"); - b.Property("EncounterId"); - b.Property("ErrorType"); b.Property("FacilityName"); - b.Property("FinalResultHTS"); - - b.Property("FinalResultsGiven"); - - b.Property("Gender"); - - b.Property("HtsNumber"); - - b.Property("KeyPop"); - - b.Property("KeyPopulationType"); - - b.Property("MaritalStatus"); - - b.Property("MonthsLastTested"); - - b.Property("PatientConsented"); - - b.Property("PatientDisabled"); + b.Property("Metric"); - b.Property("PatientPk"); + b.Property("MetricId"); - b.Property("PopulationType"); + b.Property("MetricValue"); b.Property("Project"); b.Property("SiteCode"); - b.Property("StrategyHTS"); + b.Property("Stage"); - b.Property("TBScreeningHTS"); + b.HasKey("Id"); - b.Property("TestKitExpiryDate1"); + b.ToTable("TempMetricMigrationExtracts"); + }); - b.Property("TestKitExpiryDate2"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("TestKitLotNumber1"); + b.Property("CheckError"); - b.Property("TestKitLotNumber2"); + b.Property("CreateDate"); - b.Property("TestKitName1"); + b.Property("Dataset"); - b.Property("TestKitName2"); + b.Property("DateExtracted"); - b.Property("TestResultsHTS1"); + b.Property("Emr"); - b.Property("TestResultsHTS2"); + b.Property("FacilityName"); - b.Property("TestType"); + b.Property("Metric"); - b.Property("TestedBefore"); + b.Property("MetricId"); - b.Property("VisitDate"); + b.Property("MetricValue"); + + b.Property("Project"); + + b.Property("SiteCode"); b.HasKey("Id"); - b.ToTable("TempHtsClientExtracts"); + b.ToTable("vTempMetricMigrationExtractError"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CheckError"); - - b.Property("ClientSelfTested"); - - b.Property("ClientTestedAs"); - - b.Property("CoupleDiscordant"); - - b.Property("DateExtracted"); - - b.Property("DisabilityType"); + b.Property("CreateDate"); - b.Property("Dob"); + b.Property("Dataset"); - b.Property("Emr"); + b.Property("DateGenerated"); - b.Property("EncounterId"); + b.Property("Extract"); b.Property("FacilityName"); - b.Property("FinalResultHTS"); + b.Property("Field"); - b.Property("FinalResultsGiven"); + b.Property("Metric"); - b.Property("Gender"); + b.Property("MetricId"); - b.Property("HtsNumber"); + b.Property("MetricValue"); - b.Property("KeyPop"); + b.Property("RecordId"); - b.Property("KeyPopulationType"); + b.Property("SiteCode"); - b.Property("MaritalStatus"); + b.Property("Summary"); - b.Property("MonthsLastTested"); + b.Property("Type"); - b.Property("PatientConsented"); + b.HasKey("Id"); - b.Property("PatientDisabled"); + b.ToTable("vTempMetricMigrationExtractErrorSummary"); + }); - b.Property("PatientPk"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("PopulationType"); + b.Property("ANCClinicNumber"); - b.Property("Project"); + b.Property("ANCVisitNo"); - b.Property("SiteCode"); + b.Property("AZTBabyDispense"); - b.Property("StrategyHTS"); + b.Property("AntenatalExercises"); - b.Property("TBScreeningHTS"); + b.Property("BP"); - b.Property("TestKitExpiryDate1"); + b.Property("BreastExam"); - b.Property("TestKitExpiryDate2"); + b.Property("CACxScreen"); - b.Property("TestKitLotNumber1"); + b.Property("CACxScreenMethod"); - b.Property("TestKitLotNumber2"); + b.Property("CheckError"); - b.Property("TestKitName1"); + b.Property("ChronicIllness"); - b.Property("TestKitName2"); + b.Property("ClinicalNotes"); - b.Property("TestResultsHTS1"); + b.Property("CounselledOn"); - b.Property("TestResultsHTS2"); + b.Property("DateExtracted"); - b.Property("TestType"); + b.Property("Date_Created"); - b.Property("TestedBefore"); + b.Property("Date_Last_Modified"); - b.Property("VisitDate"); + b.Property("Deworming"); - b.HasKey("Id"); + b.Property("DiabetesTest"); + + b.Property("Emr"); - b.ToTable("vTempHTSClientExtractError"); - }); + b.Property("ErrorType"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientExtractErrorSummary", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("FGM"); - b.Property("ClientSelfTested"); + b.Property("FGMComplications"); - b.Property("ClientTestedAs"); + b.Property("FacilityId"); - b.Property("CoupleDiscordant"); + b.Property("FacilityName"); - b.Property("DateGenerated"); + b.Property("GestationWeeks"); - b.Property("Dob"); + b.Property("HIVStatusBeforeANC"); - b.Property("EncounterId"); + b.Property("HIVTest1"); - b.Property("Extract"); + b.Property("HIVTest1Result"); - b.Property("FacilityName"); + b.Property("HIVTest2"); - b.Property("Field"); + b.Property("HIVTest2Result"); - b.Property("FinalResultHTS"); + b.Property("HIVTestFinalResult"); - b.Property("FinalResultsGiven"); + b.Property("HIVTestType"); - b.Property("Gender"); + b.Property("HIVTestingDone"); - b.Property("HtsNumber"); + b.Property("Haemoglobin"); - b.Property("KeyPop"); + b.Property("Height"); - b.Property("MaritalStatus"); + b.Property("IronSupplementsGiven"); - b.Property("MonthsLastTested"); + b.Property("MUAC"); - b.Property("PatientPK"); + b.Property("MalariaProphylaxis"); - b.Property("RecordId"); + b.Property("MotherGivenHAART"); - b.Property("SiteCode"); + b.Property("MotherProphylaxisGiven"); - b.Property("StrategyHTS"); + b.Property("NVPBabyDispense"); - b.Property("Summary"); + b.Property("NextAppointmentANC"); - b.Property("TBScreeningHTS"); + b.Property("OxygenSaturation"); - b.Property("TestKitExpiryDate1"); + b.Property("PartnerHIVStatusANC"); - b.Property("TestKitExpiryDate2"); + b.Property("PartnerHIVTestingANC"); - b.Property("TestKitLotNumber1"); + b.Property("PatientID"); - b.Property("TestKitLotNumber2"); + b.Property("PatientMnchID"); - b.Property("TestKitName1"); + b.Property("PatientPK"); - b.Property("TestKitName2"); + b.Property("PostParturmFP"); - b.Property("TestResultsHTS1"); + b.Property("PreventiveServices"); - b.Property("TestResultsHTS2"); + b.Property("Project"); - b.Property("TestType"); + b.Property("PulseRate"); - b.Property("TestedBefore"); + b.Property("ReceivedMosquitoNet"); - b.Property("Type"); + b.Property("ReferralReasons"); - b.Property("VisitDate"); + b.Property("ReferredFrom"); - b.HasKey("Id"); + b.Property("ReferredTo"); - b.ToTable("vTempHTSClientExtractErrorSummary"); - }); + b.Property("RespiratoryRate"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtract", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("SiteCode"); - b.Property("CccNumber"); + b.Property("SyphilisTestDone"); - b.Property("CheckError"); + b.Property("SyphilisTestResults"); - b.Property("DateEnrolled"); + b.Property("SyphilisTestType"); - b.Property("DateExtracted"); + b.Property("SyphilisTreated"); - b.Property("Emr"); + b.Property("SyphilisTreatment"); - b.Property("EnrolledFacilityName"); + b.Property("TBScreening"); - b.Property("ErrorType"); + b.Property("Temp"); - b.Property("FacilityName"); + b.Property("TetanusDose"); - b.Property("HtsNumber"); + b.Property("UrinalysisVariables"); - b.Property("PatientPk"); + b.Property("VLDate"); - b.Property("PhoneTracingDate"); + b.Property("VLResult"); - b.Property("PhysicalTracingDate"); + b.Property("VLSampleTaken"); - b.Property("Project"); + b.Property("VisitDate"); - b.Property("ReferralDate"); + b.Property("VisitID"); - b.Property("SiteCode"); + b.Property("WHOStaging"); - b.Property("TracingOutcome"); + b.Property("Weight"); b.HasKey("Id"); - b.ToTable("TempHtsClientLinkageExtracts"); + b.ToTable("TempAncVisitExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CccNumber"); + b.Property("ARTMother"); - b.Property("CheckError"); + b.Property("ARTRegimenMother"); - b.Property("DateEnrolled"); + b.Property("ARTStartDateMother"); - b.Property("DateExtracted"); + b.Property("BirthLength"); - b.Property("Emr"); + b.Property("BirthOrder"); - b.Property("EnrolledFacilityName"); + b.Property("BirthType"); - b.Property("FacilityName"); + b.Property("BirthWeight"); - b.Property("HtsNumber"); + b.Property("BreastFeeding"); - b.Property("PatientPk"); + b.Property("CheckError"); - b.Property("PhoneTracingDate"); + b.Property("DateExtracted"); - b.Property("PhysicalTracingDate"); + b.Property("Date_Created"); - b.Property("Project"); + b.Property("Date_Last_Modified"); - b.Property("ReferralDate"); + b.Property("Emr"); - b.Property("SiteCode"); + b.Property("ErrorType"); - b.Property("TracingOutcome"); + b.Property("FacilityId"); - b.HasKey("Id"); + b.Property("Gestation"); - b.ToTable("vTempHTSClientLinkageExtractError"); - }); + b.Property("HEI"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientLinkageExtractErrorSummary", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("HEIDate"); - b.Property("CccNumber"); + b.Property("HEIID"); - b.Property("DateEnrolled"); + b.Property("ModeOfDelivery"); - b.Property("DateGenerated"); + b.Property("MotherAlive"); - b.Property("EnrolledFacilityName"); + b.Property("MothersCCCNo"); - b.Property("Extract"); + b.Property("MothersPkv"); - b.Property("FacilityName"); + b.Property("NVP"); - b.Property("Field"); + b.Property("PatientID"); - b.Property("HtsNumber"); + b.Property("PatientIDCWC"); b.Property("PatientPK"); - b.Property("PhoneTracingDate"); + b.Property("Pkv"); - b.Property("PhysicalTracingDate"); + b.Property("PlaceOfDelivery"); - b.Property("RecordId"); + b.Property("Project"); - b.Property("ReferralDate"); + b.Property("ReferredFrom"); + + b.Property("RegistrationAtCWC"); + + b.Property("RegistrationAtHEI"); b.Property("SiteCode"); - b.Property("Summary"); + b.Property("SpecialCare"); - b.Property("TracingOutcome"); + b.Property("SpecialNeeds"); - b.Property("Type"); + b.Property("TransferIn"); + + b.Property("TransferInDate"); + + b.Property("TransferredFrom"); + + b.Property("VisitID"); b.HasKey("Id"); - b.ToTable("vTempHTSClientLinkageExtractErrorSummary"); + b.ToTable("TempCwcEnrolmentExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("Age"); - - b.Property("CccNumber"); - b.Property("CheckError"); - b.Property("CurrentlyLivingWithIndexClient"); + b.Property("DangerSigns"); b.Property("DateExtracted"); + b.Property("Date_Created"); + + b.Property("Date_Last_Modified"); + + b.Property("Dewormed"); + + b.Property("Disability"); + b.Property("Emr"); b.Property("ErrorType"); + b.Property("FacilityId"); + b.Property("FacilityName"); - b.Property("HtsNumber"); + b.Property("FollowUP"); - b.Property("IpvScreeningOutcome"); + b.Property("Height"); - b.Property("KnowledgeOfHivStatus"); + b.Property("Immunization"); - b.Property("LinkDateLinkedToCare"); + b.Property("InfantFeeding"); - b.Property("Linked"); + b.Property("MNPsSupplementation"); - b.Property("PartnerPatientPk"); + b.Property("MUAC"); - b.Property("PartnerPersonId"); + b.Property("MedicationGiven"); - b.Property("PatientPk"); + b.Property("Milestones"); - b.Property("PnsApproach"); + b.Property("NextAppointment"); - b.Property("PnsConsent"); + b.Property("OxygenSaturation"); + + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); b.Property("Project"); - b.Property("RelationshipToIndexClient"); + b.Property("PulseRate"); + + b.Property("ReceivedMosquitoNet"); + + b.Property("ReferralReasons"); + + b.Property("ReferredFrom"); - b.Property("ScreenedForIpv"); + b.Property("ReferredTo"); - b.Property("Sex"); + b.Property("RespiratoryRate"); b.Property("SiteCode"); - b.Property("Trace1Date"); - - b.Property("Trace1Outcome"); + b.Property("Stunted"); - b.Property("Trace1Type"); + b.Property("TBAssessment"); - b.Property("Trace2Date"); + b.Property("Temp"); - b.Property("Trace2Outcome"); + b.Property("VisitDate"); - b.Property("Trace2Type"); + b.Property("VisitID"); - b.Property("Trace3Date"); + b.Property("VitaminA"); - b.Property("Trace3Outcome"); + b.Property("Weight"); - b.Property("Trace3Type"); + b.Property("WeightCategory"); b.HasKey("Id"); - b.ToTable("TempHtsClientPartnerExtracts"); + b.ToTable("TempCwcVisitExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractError", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("Age"); + b.Property("BasellineVL"); - b.Property("CccNumber"); + b.Property("BasellineVLDate"); b.Property("CheckError"); - b.Property("CurrentlyLivingWithIndexClient"); - - b.Property("DateExtracted"); - - b.Property("Emr"); - - b.Property("FacilityName"); + b.Property("ConfirmatoryPCR"); - b.Property("HtsNumber"); + b.Property("ConfirmatoryPCRDate"); - b.Property("IpvScreeningOutcome"); + b.Property("DNAPCR1"); - b.Property("KnowledgeOfHivStatus"); + b.Property("DNAPCR1Date"); - b.Property("LinkDateLinkedToCare"); + b.Property("DNAPCR2"); - b.Property("Linked"); + b.Property("DNAPCR2Date"); - b.Property("PartnerPatientPk"); + b.Property("DNAPCR3"); - b.Property("PartnerPersonId"); + b.Property("DNAPCR3Date"); - b.Property("PatientPk"); + b.Property("DateExtracted"); - b.Property("PnsApproach"); + b.Property("Date_Created"); - b.Property("PnsConsent"); + b.Property("Date_Last_Modified"); - b.Property("Project"); + b.Property("Emr"); - b.Property("RelationshipToIndexClient"); + b.Property("ErrorType"); - b.Property("ScreenedForIpv"); + b.Property("FacilityId"); - b.Property("Sex"); + b.Property("FacilityName"); - b.Property("SiteCode"); + b.Property("FinalyAntibody"); - b.Property("Trace1Date"); + b.Property("FinalyAntibodyDate"); - b.Property("Trace1Outcome"); + b.Property("HEIExitCritearia"); - b.Property("Trace1Type"); + b.Property("HEIExitDate"); - b.Property("Trace2Date"); + b.Property("HEIHIVStatus"); - b.Property("Trace2Outcome"); + b.Property("PatientID"); - b.Property("Trace2Type"); + b.Property("PatientMnchID"); - b.Property("Trace3Date"); + b.Property("PatientPK"); - b.Property("Trace3Outcome"); + b.Property("Project"); - b.Property("Trace3Type"); + b.Property("SiteCode"); b.HasKey("Id"); - b.ToTable("vTempHTSClientPartnerExtractError"); + b.ToTable("TempHeiExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Hts.TempHTSClientPartnerExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("Age"); - - b.Property("CccNumber"); + b.Property("ANCVisits"); - b.Property("CurrentlyLivingWithIndexClient"); + b.Property("AdmissionNumber"); - b.Property("DateGenerated"); + b.Property("ApgarScore1"); - b.Property("Extract"); + b.Property("ApgarScore10"); - b.Property("FacilityName"); + b.Property("ApgarScore5"); - b.Property("Field"); + b.Property("BabyBirthNumber"); - b.Property("HtsNumber"); + b.Property("BabyGivenProphylaxis"); - b.Property("IpvScreeningOutcome"); + b.Property("BirthOutcome"); - b.Property("KnowledgeOfHivStatus"); + b.Property("BirthWeight"); - b.Property("LinkDateLinkedToCare"); + b.Property("BirthWithDeformity"); - b.Property("Linked"); + b.Property("BloodLoss"); - b.Property("PartnerPatientPk"); + b.Property("BloodLossVisual"); - b.Property("PartnerPersonId"); + b.Property("CheckError"); - b.Property("PatientPK"); + b.Property("ChlorhexidineApplied"); - b.Property("PnsApproach"); + b.Property("ClinicalNotes"); - b.Property("PnsConsent"); + b.Property("ConditonAfterDelivery"); - b.Property("RecordId"); + b.Property("CounselledOn"); - b.Property("RelationshipToIndexClient"); + b.Property("DateExtracted"); - b.Property("ScreenedForIpv"); + b.Property("DateOfDelivery"); - b.Property("Sex"); + b.Property("Date_Created"); - b.Property("SiteCode"); + b.Property("Date_Last_Modified"); - b.Property("Summary"); + b.Property("DeliveryComplications"); - b.Property("Trace1Date"); + b.Property("DurationOfDelivery"); - b.Property("Trace1Outcome"); + b.Property("Emr"); - b.Property("Trace1Type"); + b.Property("ErrorType"); - b.Property("Trace2Date"); + b.Property("FacilityId"); - b.Property("Trace2Outcome"); + b.Property("FacilityName"); - b.Property("Trace2Type"); + b.Property("GestationAtBirth"); - b.Property("Trace3Date"); + b.Property("HIV1Results"); - b.Property("Trace3Outcome"); + b.Property("HIV2Results"); - b.Property("Trace3Type"); + b.Property("HIVStatusLastANC"); - b.Property("Type"); + b.Property("HIVTest1"); - b.HasKey("Id"); + b.Property("HIVTest2"); - b.ToTable("vTempHTSClientPartnerExtractErrorSummary"); - }); + b.Property("HIVTestFinalResult"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtract", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("HIVTestingDone"); - b.Property("CheckError"); + b.Property("InitiatedBF"); - b.Property("CreateDate"); + b.Property("KangarooCare"); - b.Property("Dataset"); + b.Property("MaternalDeath"); - b.Property("DateExtracted"); + b.Property("ModeOfDelivery"); - b.Property("Emr"); + b.Property("MotherDischargeDate"); - b.Property("ErrorType"); + b.Property("MotherGivenCTX"); - b.Property("FacilityName"); + b.Property("NoBabiesDelivered"); - b.Property("Metric"); + b.Property("OnARTANC"); - b.Property("MetricId"); + b.Property("PartnerHIVStatusMAT"); - b.Property("MetricValue"); + b.Property("PartnerHIVTestingMAT"); - b.Property("Project"); + b.Property("PatientID"); - b.Property("SiteCode"); + b.Property("PatientMnchID"); - b.Property("Stage"); + b.Property("PatientPK"); - b.HasKey("Id"); + b.Property("PlacentaComplete"); - b.ToTable("TempMetricMigrationExtracts"); - }); + b.Property("Project"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractError", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("ReferredFrom"); - b.Property("CheckError"); + b.Property("ReferredTo"); - b.Property("CreateDate"); + b.Property("SexBaby"); - b.Property("Dataset"); + b.Property("SiteCode"); - b.Property("DateExtracted"); + b.Property("StatusBabyDischarge"); - b.Property("Emr"); + b.Property("SyphilisTestResults"); - b.Property("FacilityName"); + b.Property("TetracyclineGiven"); - b.Property("Metric"); + b.Property("UterotonicGiven"); - b.Property("MetricId"); + b.Property("VaginalExamination"); - b.Property("MetricValue"); + b.Property("VisitDate"); - b.Property("Project"); + b.Property("VisitID"); - b.Property("SiteCode"); + b.Property("VitaminKGiven"); b.HasKey("Id"); - b.ToTable("vTempMetricMigrationExtractError"); + b.ToTable("TempMatVisitExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mgs.TempMetricMigrationExtractErrorSummary", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CreateDate"); + b.Property("CheckError"); - b.Property("Dataset"); + b.Property("DateExtracted"); - b.Property("DateGenerated"); + b.Property("Date_Created"); - b.Property("Extract"); + b.Property("Date_Last_Modified"); + + b.Property("Emr"); + + b.Property("ErrorType"); + + b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("Field"); + b.Property("LastARTDate"); - b.Property("Metric"); + b.Property("LastRegimen"); - b.Property("MetricId"); + b.Property("LastRegimenLine"); - b.Property("MetricValue"); + b.Property("PatientHeiID"); - b.Property("RecordId"); + b.Property("PatientID"); + + b.Property("PatientMnchID"); + + b.Property("PatientPK"); + + b.Property("Pkv"); + + b.Property("Project"); + + b.Property("RegistrationAtCCC"); b.Property("SiteCode"); - b.Property("Summary"); + b.Property("StartARTDate"); - b.Property("Type"); + b.Property("StartRegimen"); + + b.Property("StartRegimenLine"); + + b.Property("StatusAtCCC"); b.HasKey("Id"); - b.ToTable("vTempMetricMigrationExtractErrorSummary"); + b.ToTable("TempMnchArtExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempAncVisitExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("ANCClinicNumber"); - - b.Property("ANCVisitNo"); - - b.Property("AZTBabyDispense"); - - b.Property("AntenatalExercises"); - - b.Property("BP"); - - b.Property("BreastExam"); - - b.Property("CACxScreen"); - - b.Property("CACxScreenMethod"); + b.Property("BloodGroup"); b.Property("CheckError"); - b.Property("ChronicIllness"); - - b.Property("ClinicalNotes"); - - b.Property("CounselledOn"); - b.Property("DateExtracted"); b.Property("Date_Created"); b.Property("Date_Last_Modified"); - b.Property("Deworming"); - - b.Property("DiabetesTest"); + b.Property("EDDFromLMP"); b.Property("Emr"); - b.Property("ErrorType"); - - b.Property("FGM"); + b.Property("EnrollmentDateAtMnch"); - b.Property("FGMComplications"); + b.Property("ErrorType"); b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("GestationWeeks"); + b.Property("FirstVisitAnc"); - b.Property("HIVStatusBeforeANC"); + b.Property("Gravidae"); - b.Property("HIVTest1"); + b.Property("HIVStatusBeforeANC"); - b.Property("HIVTest1Result"); + b.Property("HIVTestDate"); - b.Property("HIVTest2"); + b.Property("LMP"); - b.Property("HIVTest2Result"); + b.Property("MnchNumber"); - b.Property("HIVTestFinalResult"); + b.Property("Parity"); - b.Property("HIVTestType"); + b.Property("PartnerHIVStatus"); - b.Property("HIVTestingDone"); + b.Property("PartnerHIVTestDate"); - b.Property("Haemoglobin"); + b.Property("PatientID"); - b.Property("Height"); + b.Property("PatientMnchID"); - b.Property("IronSupplementsGiven"); + b.Property("PatientPK"); - b.Property("MUAC"); + b.Property("Project"); - b.Property("MalariaProphylaxis"); + b.Property("ServiceType"); - b.Property("MotherGivenHAART"); + b.Property("SiteCode"); - b.Property("MotherProphylaxisGiven"); + b.Property("StatusAtMnch"); - b.Property("NVPBabyDispense"); + b.HasKey("Id"); - b.Property("NextAppointmentANC"); + b.ToTable("TempMnchEnrolmentExtracts"); + }); - b.Property("OxygenSaturation"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("PartnerHIVStatusANC"); + b.Property("CheckError"); - b.Property("PartnerHIVTestingANC"); + b.Property("DateExtracted"); - b.Property("PatientID"); + b.Property("Date_Created"); - b.Property("PatientMnchID"); + b.Property("Date_Last_Modified"); - b.Property("PatientPK"); + b.Property("Emr"); - b.Property("PostParturmFP"); + b.Property("ErrorType"); - b.Property("PreventiveServices"); + b.Property("FacilityId"); - b.Property("Project"); + b.Property("FacilityName"); - b.Property("PulseRate"); + b.Property("LabReason"); - b.Property("ReceivedMosquitoNet"); + b.Property("OrderedbyDate"); - b.Property("ReferralReasons"); + b.Property("PatientID"); - b.Property("ReferredFrom"); + b.Property("PatientMNCH_ID"); - b.Property("ReferredTo"); + b.Property("PatientPK"); - b.Property("RespiratoryRate"); + b.Property("Project"); - b.Property("SiteCode"); + b.Property("ReportedbyDate"); - b.Property("SyphilisTestDone"); + b.Property("SatelliteName"); - b.Property("SyphilisTestResults"); + b.Property("SiteCode"); - b.Property("SyphilisTestType"); + b.Property("TestName"); - b.Property("SyphilisTreated"); + b.Property("TestResult"); - b.Property("SyphilisTreatment"); + b.Property("VisitID"); - b.Property("TBScreening"); + b.HasKey("Id"); - b.Property("Temp"); + b.ToTable("TempMnchLabExtracts"); + }); - b.Property("TetanusDose"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("UrinalysisVariables"); + b.Property("BabyPatientMncHeiID"); - b.Property("VLDate"); + b.Property("BabyPatientPK"); - b.Property("VLResult"); + b.Property("CheckError"); - b.Property("VLSampleTaken"); + b.Property("DateExtracted"); - b.Property("VisitDate"); + b.Property("Date_Created"); - b.Property("VisitID"); + b.Property("Date_Last_Modified"); - b.Property("WHOStaging"); + b.Property("Emr"); - b.Property("Weight"); + b.Property("ErrorType"); - b.HasKey("Id"); + b.Property("FacilityId"); - b.ToTable("TempAncVisitExtracts"); - }); + b.Property("MotherPatientMncHeiID"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcEnrolmentExtract", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("MotherPatientPK"); - b.Property("ARTMother"); + b.Property("PatientID"); - b.Property("ARTRegimenMother"); + b.Property("PatientIDCCC"); - b.Property("ARTStartDateMother"); + b.Property("PatientPK"); - b.Property("BirthLength"); + b.Property("Project"); - b.Property("BirthOrder"); + b.Property("SiteCode"); - b.Property("BirthType"); + b.HasKey("Id"); - b.Property("BirthWeight"); + b.ToTable("TempMotherBabyPairExtracts"); + }); - b.Property("BreastFeeding"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); b.Property("CheckError"); + b.Property("DOB"); + b.Property("DateExtracted"); b.Property("Date_Created"); b.Property("Date_Last_Modified"); + b.Property("EducationLevel"); + b.Property("Emr"); b.Property("ErrorType"); b.Property("FacilityId"); - b.Property("Gestation"); - - b.Property("HEI"); + b.Property("FacilityName"); - b.Property("HEIDate"); + b.Property("FirstEnrollmentAtMnch"); - b.Property("HEIID"); + b.Property("Gender"); - b.Property("ModeOfDelivery"); + b.Property("InSchool"); - b.Property("MotherAlive"); + b.Property("MaritalStatus"); - b.Property("MothersCCCNo"); + b.Property("NUPI"); - b.Property("MothersPkv"); + b.Property("Occupation"); - b.Property("NVP"); + b.Property("PatientHeiID"); b.Property("PatientID"); - b.Property("PatientIDCWC"); + b.Property("PatientMnchID"); b.Property("PatientPK"); - b.Property("Pkv"); - - b.Property("PlaceOfDelivery"); + b.Property("PatientResidentCounty"); - b.Property("Project"); + b.Property("PatientResidentSubCounty"); - b.Property("ReferredFrom"); + b.Property("PatientResidentWard"); - b.Property("RegistrationAtCWC"); + b.Property("Pkv"); - b.Property("RegistrationAtHEI"); + b.Property("Project"); b.Property("SiteCode"); - b.Property("SpecialCare"); - - b.Property("SpecialNeeds"); - - b.Property("TransferIn"); - - b.Property("TransferInDate"); - - b.Property("TransferredFrom"); - - b.Property("VisitID"); - b.HasKey("Id"); - b.ToTable("TempCwcEnrolmentExtracts"); + b.ToTable("TempPatientMnchExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempCwcVisitExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("CheckError"); - - b.Property("DangerSigns"); - - b.Property("DateExtracted"); + b.Property("BP"); - b.Property("Date_Created"); + b.Property("BabyConditon"); - b.Property("Date_Last_Modified"); + b.Property("BabyFeeding"); - b.Property("Dewormed"); + b.Property("Breast"); - b.Property("Disability"); + b.Property("BreastExam"); - b.Property("Emr"); + b.Property("CACxScreenMethod"); - b.Property("ErrorType"); + b.Property("CACxScreenResults"); - b.Property("FacilityId"); + b.Property("CSScar"); - b.Property("FacilityName"); + b.Property("CheckError"); - b.Property("FollowUP"); + b.Property("ClientScreenedCACx"); - b.Property("Height"); + b.Property("ClinicalNotes"); - b.Property("Immunization"); + b.Property("CounselledOnFP"); - b.Property("InfantFeeding"); + b.Property("CoupleCounselled"); - b.Property("MNPsSupplementation"); + b.Property("DateExtracted"); - b.Property("MUAC"); + b.Property("Date_Created"); - b.Property("MedicationGiven"); + b.Property("Date_Last_Modified"); - b.Property("Milestones"); + b.Property("DeliveryDate"); - b.Property("NextAppointment"); + b.Property("DeliveryOutcome"); - b.Property("OxygenSaturation"); + b.Property("Emr"); - b.Property("PatientID"); + b.Property("Episiotomy"); - b.Property("PatientMnchID"); + b.Property("ErrorType"); - b.Property("PatientPK"); + b.Property("FacilityId"); - b.Property("Project"); + b.Property("Fistula"); - b.Property("PulseRate"); + b.Property("GeneralCondition"); - b.Property("ReceivedMosquitoNet"); + b.Property("HIVTest1"); - b.Property("ReferralReasons"); + b.Property("HIVTest1Result"); - b.Property("ReferredFrom"); + b.Property("HIVTest2"); - b.Property("ReferredTo"); + b.Property("HIVTest2Result"); - b.Property("RespiratoryRate"); + b.Property("HIVTestFinalResult"); - b.Property("SiteCode"); + b.Property("HIVTestingDone"); - b.Property("Stunted"); + b.Property("HaematinicsGiven"); - b.Property("TBAssessment"); + b.Property("HasPallor"); - b.Property("Temp"); + b.Property("Height"); - b.Property("VisitDate"); + b.Property("Immunization"); - b.Property("VisitID"); + b.Property("InfantFeeding"); - b.Property("VitaminA"); + b.Property("InfantProphylaxisGiven"); - b.Property("Weight"); + b.Property("Lochia"); - b.Property("WeightCategory"); + b.Property("MUAC"); - b.HasKey("Id"); + b.Property("MaternalComplications"); - b.ToTable("TempCwcVisitExtracts"); - }); + b.Property("ModeOfDelivery"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempHeiExtract", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("MotherProphylaxisGiven"); - b.Property("BasellineVL"); + b.Property("NextAppointmentPNC"); - b.Property("BasellineVLDate"); + b.Property("OxygenSaturation"); - b.Property("CheckError"); + b.Property("PNCRegisterNumber"); - b.Property("ConfirmatoryPCR"); + b.Property("PNCVisitNo"); - b.Property("ConfirmatoryPCRDate"); + b.Property("PPH"); - b.Property("DNAPCR1"); + b.Property("Pallor"); - b.Property("DNAPCR1Date"); + b.Property("PartnerHIVResultPNC"); - b.Property("DNAPCR2"); + b.Property("PartnerHIVTestingPNC"); - b.Property("DNAPCR2Date"); + b.Property("PatientID"); - b.Property("DNAPCR3"); + b.Property("PatientMnchID"); - b.Property("DNAPCR3Date"); + b.Property("PatientPK"); - b.Property("DateExtracted"); + b.Property("PlaceOfDelivery"); - b.Property("Date_Created"); + b.Property("PreventiveServices"); - b.Property("Date_Last_Modified"); + b.Property("PriorHIVStatus"); - b.Property("Emr"); + b.Property("Project"); - b.Property("ErrorType"); + b.Property("PulseRate"); - b.Property("FacilityId"); + b.Property("ReceivedFP"); - b.Property("FacilityName"); + b.Property("ReferredFrom"); - b.Property("FinalyAntibody"); + b.Property("ReferredTo"); - b.Property("FinalyAntibodyDate"); + b.Property("RespiratoryRate"); - b.Property("HEIExitCritearia"); + b.Property("SiteCode"); - b.Property("HEIExitDate"); + b.Property("TBScreening"); - b.Property("HEIHIVStatus"); + b.Property("Temp"); - b.Property("PatientID"); + b.Property("UmbilicalCord"); - b.Property("PatientMnchID"); + b.Property("UterusInvolution"); - b.Property("PatientPK"); + b.Property("VisitDate"); - b.Property("Project"); + b.Property("VisitID"); - b.Property("SiteCode"); + b.Property("Weight"); b.HasKey("Id"); - b.ToTable("TempHeiExtracts"); + b.ToTable("TempPncVisitExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMatVisitExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("ANCVisits"); - - b.Property("AdmissionNumber"); - - b.Property("ApgarScore1"); - - b.Property("ApgarScore10"); - - b.Property("ApgarScore5"); - - b.Property("BabyBirthNumber"); + b.Property("DateCreated"); - b.Property("BabyGivenProphylaxis"); + b.Property("Indicator"); - b.Property("BirthOutcome"); + b.Property("IndicatorDate"); - b.Property("BirthWeight"); + b.Property("IndicatorValue"); - b.Property("BirthWithDeformity"); + b.HasKey("Id"); - b.Property("BloodLoss"); + b.ToTable("TempIndicatorExtracts"); + }); - b.Property("BloodLossVisual"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPatientPrepExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); b.Property("CheckError"); - b.Property("ChlorhexidineApplied"); + b.Property("ClientPreviouslyonPrep"); - b.Property("ClinicalNotes"); + b.Property("ClientType"); - b.Property("ConditonAfterDelivery"); + b.Property("County"); - b.Property("CounselledOn"); + b.Property("CountyofBirth"); b.Property("DateExtracted"); - b.Property("DateOfDelivery"); + b.Property("DateLastUsedPrev"); + + b.Property("DateStartedPrEPattransferringfacility"); b.Property("Date_Created"); b.Property("Date_Last_Modified"); - b.Property("DeliveryComplications"); + b.Property("DatefirstinitiatedinPrepCare"); - b.Property("DurationOfDelivery"); + b.Property("DateofBirth"); b.Property("Emr"); @@ -8820,85 +10711,77 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityName"); - b.Property("GestationAtBirth"); - - b.Property("HIV1Results"); - - b.Property("HIV2Results"); - - b.Property("HIVStatusLastANC"); - - b.Property("HIVTest1"); + b.Property("HtsNumber"); - b.Property("HIVTest2"); + b.Property("Inschool"); - b.Property("HIVTestFinalResult"); + b.Property("KeyPopulationType"); - b.Property("HIVTestingDone"); + b.Property("LandMark"); - b.Property("InitiatedBF"); + b.Property("Location"); - b.Property("KangarooCare"); + b.Property("MaritalStatus"); - b.Property("MaternalDeath"); + b.Property("NUPI"); - b.Property("ModeOfDelivery"); + b.Property("PatientID"); - b.Property("MotherDischargeDate"); + b.Property("PatientPK"); - b.Property("MotherGivenCTX"); + b.Property("PopulationType"); - b.Property("NoBabiesDelivered"); + b.Property("PrepEnrollmentDate"); - b.Property("OnARTANC"); + b.Property("PrepNumber"); - b.Property("PartnerHIVStatusMAT"); + b.Property("PrevPrepReg"); - b.Property("PartnerHIVTestingMAT"); + b.Property("Project"); - b.Property("PatientID"); + b.Property("ReferralPoint"); - b.Property("PatientMnchID"); + b.Property("Refferedfrom"); - b.Property("PatientPK"); + b.Property("Sex"); - b.Property("PlacentaComplete"); + b.Property("SiteCode"); - b.Property("Project"); + b.Property("SubCounty"); - b.Property("ReferredFrom"); + b.Property("TransferFromFacility"); - b.Property("ReferredTo"); + b.Property("TransferIn"); - b.Property("SexBaby"); + b.Property("TransferInDate"); - b.Property("SiteCode"); + b.Property("Ward"); - b.Property("StatusBabyDischarge"); + b.HasKey("Id"); - b.Property("SyphilisTestResults"); + b.ToTable("TempPatientPrepExtracts"); + }); - b.Property("TetracyclineGiven"); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepAdverseEventExtract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); - b.Property("UterotonicGiven"); + b.Property("AdverseEvent"); - b.Property("VaginalExamination"); + b.Property("AdverseEventActionTaken"); - b.Property("VisitDate"); + b.Property("AdverseEventCause"); - b.Property("VisitID"); + b.Property("AdverseEventClinicalOutcome"); - b.Property("VitaminKGiven"); + b.Property("AdverseEventEndDate"); - b.HasKey("Id"); + b.Property("AdverseEventIsPregnant"); - b.ToTable("TempMatVisitExtracts"); - }); + b.Property("AdverseEventRegimen"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchArtExtract", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("AdverseEventStartDate"); b.Property("CheckError"); @@ -8916,49 +10799,37 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityName"); - b.Property("LastARTDate"); - - b.Property("LastRegimen"); - - b.Property("LastRegimenLine"); - - b.Property("PatientHeiID"); - b.Property("PatientID"); - b.Property("PatientMnchID"); - b.Property("PatientPK"); - b.Property("Pkv"); + b.Property("PrepNumber"); b.Property("Project"); - b.Property("RegistrationAtCCC"); + b.Property("Severity"); b.Property("SiteCode"); - b.Property("StartARTDate"); - - b.Property("StartRegimen"); - - b.Property("StartRegimenLine"); - - b.Property("StatusAtCCC"); + b.Property("VisitDate"); b.HasKey("Id"); - b.ToTable("TempMnchArtExtracts"); + b.ToTable("TempPrepAdverseEventExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchEnrolmentExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepBehaviourRiskExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("BloodGroup"); + b.Property("CheckError"); + + b.Property("ClientAssessments"); + + b.Property("ClientRisk"); - b.Property("CheckError"); + b.Property("ClientWillingToTakePrep"); b.Property("DateExtracted"); @@ -8966,56 +10837,64 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Date_Last_Modified"); - b.Property("EDDFromLMP"); - b.Property("Emr"); - b.Property("EnrollmentDateAtMnch"); - b.Property("ErrorType"); b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("FirstVisitAnc"); + b.Property("FirstEstablishPartnerStatus"); - b.Property("Gravidae"); + b.Property("HIVPartnerARTStartDate"); - b.Property("HIVStatusBeforeANC"); + b.Property("HIVPartnerCCCnumber"); - b.Property("HIVTestDate"); + b.Property("HtsNumber"); - b.Property("LMP"); + b.Property("IsHIVPositivePartnerCurrentonART"); - b.Property("MnchNumber"); + b.Property("IsPartnerHighrisk"); - b.Property("Parity"); + b.Property("MonthsknownHIVSerodiscordant"); - b.Property("PartnerHIVStatus"); + b.Property("NumberofchildrenWithPartner"); - b.Property("PartnerHIVTestDate"); + b.Property("PartnerARTRisk"); - b.Property("PatientID"); + b.Property("PartnerEnrolledtoCCC"); - b.Property("PatientMnchID"); + b.Property("PatientID"); b.Property("PatientPK"); + b.Property("PrEPDeclineReason"); + + b.Property("PrepNumber"); + b.Property("Project"); - b.Property("ServiceType"); + b.Property("ReferralToOtherPrevServices"); + + b.Property("RiskReductionEducationOffered"); + + b.Property("SexPartnerHIVStatus"); + + b.Property("SexWithoutCondom"); b.Property("SiteCode"); - b.Property("StatusAtMnch"); + b.Property("VisitDate"); + + b.Property("VisitID"); b.HasKey("Id"); - b.ToTable("TempMnchEnrolmentExtracts"); + b.ToTable("TempPrepBehaviourRiskExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMnchLabExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepCareTerminationExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); @@ -9024,6 +10903,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("DateExtracted"); + b.Property("DateOfLastPrepDose"); + b.Property("Date_Created"); b.Property("Date_Last_Modified"); @@ -9032,48 +10913,36 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("ErrorType"); + b.Property("ExitDate"); + + b.Property("ExitReason"); + b.Property("FacilityId"); b.Property("FacilityName"); - b.Property("LabReason"); - - b.Property("OrderedbyDate"); + b.Property("HtsNumber"); b.Property("PatientID"); - b.Property("PatientMNCH_ID"); - b.Property("PatientPK"); - b.Property("Project"); - - b.Property("ReportedbyDate"); + b.Property("PrepNumber"); - b.Property("SatelliteName"); + b.Property("Project"); b.Property("SiteCode"); - b.Property("TestName"); - - b.Property("TestResult"); - - b.Property("VisitID"); - b.HasKey("Id"); - b.ToTable("TempMnchLabExtracts"); + b.ToTable("TempPrepCareTerminationExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempMotherBabyPairExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepLabExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("BabyPatientMncHeiID"); - - b.Property("BabyPatientPK"); - b.Property("CheckError"); b.Property("DateExtracted"); @@ -9088,41 +10957,53 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityId"); - b.Property("MotherPatientMncHeiID"); + b.Property("FacilityName"); - b.Property("MotherPatientPK"); + b.Property("HtsNumber"); b.Property("PatientID"); - b.Property("PatientIDCCC"); - b.Property("PatientPK"); + b.Property("PrepNumber"); + b.Property("Project"); + b.Property("Reason"); + + b.Property("SampleDate"); + b.Property("SiteCode"); + b.Property("TestName"); + + b.Property("TestResult"); + + b.Property("TestResultDate"); + + b.Property("VisitID"); + b.HasKey("Id"); - b.ToTable("TempMotherBabyPairExtracts"); + b.ToTable("TempPrepLabExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPatientMnchExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepPharmacyExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); b.Property("CheckError"); - b.Property("DOB"); - b.Property("DateExtracted"); b.Property("Date_Created"); b.Property("Date_Last_Modified"); - b.Property("EducationLevel"); + b.Property("DispenseDate"); + + b.Property("Duration"); b.Property("Emr"); @@ -9132,71 +11013,55 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("FacilityName"); - b.Property("FirstEnrollmentAtMnch"); - - b.Property("Gender"); - - b.Property("InSchool"); - - b.Property("MaritalStatus"); - - b.Property("Occupation"); - - b.Property("PatientHeiID"); + b.Property("HtsNumber"); b.Property("PatientID"); - b.Property("PatientMnchID"); - b.Property("PatientPK"); - b.Property("PatientResidentCounty"); - - b.Property("PatientResidentSubCounty"); - - b.Property("PatientResidentWard"); - - b.Property("Pkv"); + b.Property("PrepNumber"); b.Property("Project"); + b.Property("RegimenPrescribed"); + b.Property("SiteCode"); + b.Property("VisitID"); + b.HasKey("Id"); - b.ToTable("TempPatientMnchExtracts"); + b.ToTable("TempPrepPharmacyExtracts"); }); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mnch.TempPncVisitExtract", b => + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Prep.TempPrepVisitExtract", b => { b.Property("Id") .ValueGeneratedOnAdd(); - b.Property("BP"); - - b.Property("BabyConditon"); + b.Property("AdherenceDone"); - b.Property("BabyFeeding"); + b.Property("AdherenceOutcome"); - b.Property("Breast"); + b.Property("AdherenceReasons"); - b.Property("BreastExam"); + b.Property("BMI"); - b.Property("CACxScreenMethod"); + b.Property("BirthDefects"); - b.Property("CACxScreenResults"); + b.Property("BloodPressure"); - b.Property("CSScar"); + b.Property("Breastfeeding"); b.Property("CheckError"); - b.Property("ClientScreenedCACx"); + b.Property("Circumcised"); b.Property("ClinicalNotes"); - b.Property("CounselledOnFP"); + b.Property("CondomsIssued"); - b.Property("CoupleCounselled"); + b.Property("ContraindicationsPrep"); b.Property("DateExtracted"); @@ -9204,133 +11069,99 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("Date_Last_Modified"); - b.Property("DeliveryDate"); - - b.Property("DeliveryOutcome"); + b.Property("EDD"); b.Property("Emr"); - b.Property("Episiotomy"); + b.Property("EncounterId"); b.Property("ErrorType"); - b.Property("FacilityId"); - - b.Property("Fistula"); - - b.Property("GeneralCondition"); - - b.Property("HIVTest1"); - - b.Property("HIVTest1Result"); - - b.Property("HIVTest2"); - - b.Property("HIVTest2Result"); - - b.Property("HIVTestFinalResult"); + b.Property("FPMethods"); - b.Property("HIVTestingDone"); + b.Property("FacilityId"); - b.Property("HaematinicsGiven"); + b.Property("FacilityName"); - b.Property("HasPallor"); + b.Property("FamilyPlanningStatus"); b.Property("Height"); - b.Property("Immunization"); - - b.Property("InfantFeeding"); - - b.Property("InfantProphylaxisGiven"); - - b.Property("Lochia"); - - b.Property("MUAC"); + b.Property("HepatitisBPositiveResult"); - b.Property("MaternalComplications"); + b.Property("HepatitisCPositiveResult"); - b.Property("ModeOfDelivery"); + b.Property("HtsNumber"); - b.Property("MotherProphylaxisGiven"); + b.Property("LMP"); - b.Property("NextAppointmentPNC"); + b.Property("MenopausalStatus"); - b.Property("OxygenSaturation"); + b.Property("MonthsPrescribed"); - b.Property("PNCRegisterNumber"); + b.Property("NextAppointment"); - b.Property("PNCVisitNo"); + b.Property("PatientID"); - b.Property("PPH"); + b.Property("PatientPK"); - b.Property("Pallor"); + b.Property("PlanningToGetPregnant"); - b.Property("PartnerHIVResultPNC"); + b.Property("PregnancyEndDate"); - b.Property("PartnerHIVTestingPNC"); + b.Property("PregnancyEnded"); - b.Property("PatientID"); + b.Property("PregnancyOutcome"); - b.Property("PatientMnchID"); + b.Property("PregnancyPlanned"); - b.Property("PatientPK"); + b.Property("PregnantAtThisVisit"); - b.Property("PlaceOfDelivery"); + b.Property("PrepNumber"); - b.Property("PreventiveServices"); + b.Property("PrepPrescribed"); - b.Property("PriorHIVStatus"); + b.Property("PrepTreatmentPlan"); b.Property("Project"); - b.Property("PulseRate"); + b.Property("Reasonfornotgivingnextappointment"); - b.Property("ReceivedFP"); + b.Property("RegimenPrescribed"); - b.Property("ReferredFrom"); + b.Property("STIScreening"); - b.Property("ReferredTo"); + b.Property("STISymptoms"); - b.Property("RespiratoryRate"); + b.Property("STITreated"); b.Property("SiteCode"); - b.Property("TBScreening"); - - b.Property("Temp"); - - b.Property("UmbilicalCord"); - - b.Property("UterusInvolution"); + b.Property("SymptomsAcuteHIV"); - b.Property("VisitDate"); + b.Property("Temperature"); - b.Property("VisitID"); + b.Property("Tobegivennextappointment"); - b.Property("Weight"); + b.Property("TreatedForHepB"); - b.HasKey("Id"); + b.Property("TreatedForHepC"); - b.ToTable("TempPncVisitExtracts"); - }); + b.Property("VMMCReferral"); - modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Source.Mts.TempIndicatorExtract", b => - { - b.Property("Id") - .ValueGeneratedOnAdd(); + b.Property("VaccinationForHepBStarted"); - b.Property("DateCreated"); + b.Property("VaccinationForHepCStarted"); - b.Property("Indicator"); + b.Property("VisitDate"); - b.Property("IndicatorDate"); + b.Property("VisitID"); - b.Property("IndicatorValue"); + b.Property("Weight"); b.HasKey("Id"); - b.ToTable("TempIndicatorExtracts"); + b.ToTable("TempPrepVisitExtracts"); }); modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => @@ -9387,6 +11218,22 @@ protected override void BuildModel(ModelBuilder modelBuilder) .OnDelete(DeleteBehavior.Cascade); }); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.CovidExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("CovidExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DefaulterTracingExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") + .WithMany("DefaulterTracingExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.DepressionScreeningExtract", b => { b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Dwh.PatientExtract") @@ -9523,6 +11370,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) .OnDelete(DeleteBehavior.Cascade); }); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsEligibilityExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") + .WithMany("HtsEligibilityExtracts") + .HasForeignKey("SiteCode", "PatientPk") + .OnDelete(DeleteBehavior.Cascade); + }); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsPartnerNotificationServices", b => { b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts.HtsClients") @@ -9627,6 +11482,54 @@ protected override void BuildModel(ModelBuilder modelBuilder) .OnDelete(DeleteBehavior.Cascade); }); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepAdverseEventExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepAdverseEventExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepBehaviourRiskExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepBehaviourRiskExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepCareTerminationExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepCareTerminationExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepLabExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepLabExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepPharmacyExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepPharmacyExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PrepVisitExtract", b => + { + b.HasOne("Dwapi.ExtractsManagement.Core.Model.Destination.Prep.PatientPrepExtract") + .WithMany("PrepVisitExtracts") + .HasForeignKey("SiteCode", "PatientPK") + .OnDelete(DeleteBehavior.Cascade); + }); + modelBuilder.Entity("Dwapi.ExtractsManagement.Core.Model.ValidationError", b => { b.HasOne("Dwapi.ExtractsManagement.Core.Model.Validator") diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Reader/Crs/ClientRegistryExtractReader.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Reader/Crs/ClientRegistryExtractReader.cs new file mode 100644 index 00000000..1650a23e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Reader/Crs/ClientRegistryExtractReader.cs @@ -0,0 +1,8 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Crs; + +namespace Dwapi.ExtractsManagement.Infrastructure.Reader.Crs +{ + public class ClientRegistryExtractReader :SourceReader, IClientRegistryExtractReader + { + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Reader/Prep/PrepExtractSourceReader.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Reader/Prep/PrepExtractSourceReader.cs new file mode 100644 index 00000000..17e22f4c --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Reader/Prep/PrepExtractSourceReader.cs @@ -0,0 +1,8 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Prep; + +namespace Dwapi.ExtractsManagement.Infrastructure.Reader.Prep +{ + public class PrepExtractSourceReader :SourceReader, IPrepExtractSourceReader + { + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Crs/ClientRegistryExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Crs/ClientRegistryExtractRepository.cs new file mode 100644 index 00000000..8931e4d5 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Crs/ClientRegistryExtractRepository.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using Dwapi.ExtractsManagement.Core.DTOs; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Crs; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Dwapi.SharedKernel.Model; +using Microsoft.EntityFrameworkCore; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Crs +{ + public class ClientRegistryExtractRepository : BaseRepository, IClientRegistryExtractRepository + { + public ClientRegistryExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + + var cn = GetConnectionString(); + try + { + var connection = GetConnection(); + connection.BulkInsert(extracts); + CloseConnection(connection); + return true; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + + public IEnumerable GetView() + { + var ctx = Context as ExtractsContext; + return ctx.ClientRegistryExtracts.FromSql("select * from ClientRegistryExtracts"); + } + + public void UpdateSendStatus(List sentItems) + { + var mpi = GetAll(x => sentItems.Select(i => i.Id).Contains(x.Id)) + .Select(x => + { + var sentItem = sentItems.First(s => s.Id == x.Id); + x.Status = $"{sentItem.Status}"; + x.StatusDate = sentItem.StatusDate; + return x; + }); + + var cn = GetConnection(); + cn.BulkUpdate(mpi); + CloseConnection(cn); + } + + public ExtractSummaryDto GetSummery() + { + var all = GetAll().ToList(); + + var result = new ExtractSummaryDto(); + result.TotalExtractClients = all.Count; + result.TotalCurrentOnCare = all.Count(x => x.CurrentOnART.ToLower() == "yes" || x.CurrentOnART.ToLower() == "y" ); + + return result; + + } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Crs/TempClientRegistryExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Crs/TempClientRegistryExtractRepository.cs new file mode 100644 index 00000000..24c84f2b --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Crs/TempClientRegistryExtractRepository.cs @@ -0,0 +1,99 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Threading.Tasks; +using Dapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Crs; +using Dwapi.ExtractsManagement.Core.Model.Source.Crs; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Microsoft.Data.Sqlite; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Crs +{ + public class TempClientRegistryExtractRepository : BaseRepository ,ITempClientRegistryExtractRepository + { + public TempClientRegistryExtractRepository(ExtractsContext context) : base(context) + { + } + + public async Task Clear() + { + Log.Debug($"Executing ClearExtracts command..."); + + var cn = GetConnection(); + + var truncates = new List + { + nameof(ExtractsContext.ClientRegistryExtracts), + nameof(ExtractsContext.TempClientRegistryExtracts) + }; + + var truncateCommands = truncates.Select(x => GetSqlCommand(cn, $"TRUNCATE TABLE {x};")); + + foreach (var truncateCommand in truncateCommands) + { + await truncateCommand; + } + + CloseConnection(cn); + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + + try + { + + if (GetConnectionProvider()==DatabaseProvider.MySql) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + + } + } + + if (GetConnectionProvider() == DatabaseProvider.MsSql) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + } + } + + if (GetConnectionProvider() == DatabaseProvider.Other) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + } + } + + return true; + + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + + private Task GetSqlCommand(IDbConnection cn, string sql) + { + if (cn is SqliteConnection) + { + return cn.ExecuteAsync(sql.Replace("TRUNCATE TABLE","DELETE FROM")); + } + return cn.ExecuteAsync(sql); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/Extracts/CovidExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/Extracts/CovidExtractRepository.cs new file mode 100644 index 00000000..8c65552d --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/Extracts/CovidExtractRepository.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using Dapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Dwapi.SharedKernel.Model; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Dwh.Extracts +{ + public class CovidExtractRepository : BaseRepository, ICovidExtractRepository + { + public CovidExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + public void UpdateSendStatus(List sentItems) + { + var sql = $"SELECT * FROM {nameof(ExtractsContext.CovidExtracts)} Where Id IN @Ids"; + var ids = sentItems.Select(x => x.Id).ToArray(); + + using (var cn = GetNewConnection()) + { + + var mpi = cn.Query(sql, new { Ids = ids }).ToList() + .Select(x => + { + var sentItem = sentItems.First(s => s.Id == x.Id); + x.Status = $"{sentItem.Status}"; + x.StatusDate = sentItem.StatusDate; + return x; + }).ToList(); + + + cn.BulkUpdate(mpi); + } + } + + public long UpdateDiffSendStatus() + { + int totalUpdated; + + using (var cn = GetNewConnection()) + { + + var sql = $@" + UPDATE + {nameof(ExtractsContext.PatientAdverseEventExtracts)} + SET + {nameof(CovidExtract.Status)}=@Status,{nameof(CovidExtract.StatusDate)}=@StatusDate + where + {nameof(CovidExtract.PatientPK)} in (select PatientPK from {nameof(ExtractsContext.PatientExtracts)}) AND + {nameof(CovidExtract.SiteCode)} in (select SiteCode from {nameof(ExtractsContext.PatientExtracts)}) + "; + + totalUpdated = cn.Execute(sql, new {Status = nameof(SendStatus.Sent), StatusDate = DateTime.Now}); + } + + return totalUpdated; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/Extracts/DefaulterTracingExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/Extracts/DefaulterTracingExtractRepository.cs new file mode 100644 index 00000000..18b5d60b --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/Extracts/DefaulterTracingExtractRepository.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using Dapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Dwapi.SharedKernel.Model; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Dwh.Extracts +{ + public class DefaulterTracingExtractRepository : BaseRepository, IDefaulterTracingExtractRepository + { + public DefaulterTracingExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + public void UpdateSendStatus(List sentItems) + { + var sql = $"SELECT * FROM {nameof(ExtractsContext.DefaulterTracingExtracts)} Where Id IN @Ids"; + var ids = sentItems.Select(x => x.Id).ToArray(); + + using (var cn = GetNewConnection()) + { + + var mpi = cn.Query(sql, new { Ids = ids }).ToList() + .Select(x => + { + var sentItem = sentItems.First(s => s.Id == x.Id); + x.Status = $"{sentItem.Status}"; + x.StatusDate = sentItem.StatusDate; + return x; + }).ToList(); + + + cn.BulkUpdate(mpi); + } + } + + public long UpdateDiffSendStatus() + { + int totalUpdated; + + using (var cn = GetNewConnection()) + { + + var sql = $@" + UPDATE + {nameof(ExtractsContext.PatientAdverseEventExtracts)} + SET + {nameof(DefaulterTracingExtract.Status)}=@Status,{nameof(DefaulterTracingExtract.StatusDate)}=@StatusDate + where + {nameof(DefaulterTracingExtract.PatientPK)} in (select PatientPK from {nameof(ExtractsContext.PatientExtracts)}) AND + {nameof(DefaulterTracingExtract.SiteCode)} in (select SiteCode from {nameof(ExtractsContext.PatientExtracts)}) + "; + + totalUpdated = cn.Execute(sql, new {Status = nameof(SendStatus.Sent), StatusDate = DateTime.Now}); + } + + return totalUpdated; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/TempExtracts/TempCovidExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/TempExtracts/TempCovidExtractRepository.cs new file mode 100644 index 00000000..3823bd20 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/TempExtracts/TempCovidExtractRepository.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Dwh.TempExtracts +{ + public class TempCovidExtractRepository : BaseRepository, ITempCovidExtractRepository + { + public TempCovidExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/TempExtracts/TempDefaulterTracingExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/TempExtracts/TempDefaulterTracingExtractRepository.cs new file mode 100644 index 00000000..4e8d091e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/TempExtracts/TempDefaulterTracingExtractRepository.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Dwh.TempExtracts +{ + public class TempDefaulterTracingExtractRepository : BaseRepository, ITempDefaulterTracingExtractRepository + { + public TempDefaulterTracingExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/TempExtracts/TempPatientExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/TempExtracts/TempPatientExtractRepository.cs index b6b4c3a8..ece3f4e0 100644 --- a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/TempExtracts/TempPatientExtractRepository.cs +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/TempExtracts/TempPatientExtractRepository.cs @@ -85,7 +85,6 @@ public async Task Clear() nameof(ExtractsContext.PatientVisitExtracts), nameof(ExtractsContext.TempPatientAdverseEventExtracts), nameof(ExtractsContext.PatientAdverseEventExtracts), - nameof(ExtractsContext.TempAllergiesChronicIllnessExtracts), nameof(ExtractsContext.AllergiesChronicIllnessExtracts), nameof(ExtractsContext.TempContactListingExtracts), @@ -103,7 +102,12 @@ public async Task Clear() nameof(ExtractsContext.TempOtzExtracts), nameof(ExtractsContext.OtzExtracts), nameof(ExtractsContext.TempOvcExtracts), - nameof(ExtractsContext.OvcExtracts) + nameof(ExtractsContext.OvcExtracts), + + nameof(ExtractsContext.TempCovidExtracts), + nameof(ExtractsContext.CovidExtracts), + nameof(ExtractsContext.TempDefaulterTracingExtracts), + nameof(ExtractsContext.DefaulterTracingExtracts) }; var deletes = new List { nameof(ExtractsContext.PatientExtracts) }; diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/Validations/TempCovidExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/Validations/TempCovidExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..ac712d60 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/Validations/TempCovidExtractErrorSummaryRepository.cs @@ -0,0 +1,8 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Dwh.Validations.Base; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Dwh.Validations +{ + public class TempCovidExtractErrorSummaryRepository: TempExtractErrorSummaryRepository, ITempCovidExtractErrorSummaryRepository{public TempCovidExtractErrorSummaryRepository(ExtractsContext context) : base(context){}} +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/Validations/TempDefaulterTracingExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/Validations/TempDefaulterTracingExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..6c28e100 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Dwh/Validations/TempDefaulterTracingExtractErrorSummaryRepository.cs @@ -0,0 +1,8 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Dwh.Validations.Base; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Dwh.Validations +{ + public class TempDefaulterTracingExtractErrorSummaryRepository: TempExtractErrorSummaryRepository, ITempDefaulterTracingExtractErrorSummaryRepository{public TempDefaulterTracingExtractErrorSummaryRepository(ExtractsContext context) : base(context){}} +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Hts/Extracts/HtsEligibilityExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Hts/Extracts/HtsEligibilityExtractRepository.cs new file mode 100644 index 00000000..e7be9a31 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Hts/Extracts/HtsEligibilityExtractRepository.cs @@ -0,0 +1,88 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using System.Linq.Expressions; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Hts; +using Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts; +using Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Dwapi.SharedKernel.Model; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using X.PagedList; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Hts.Extracts +{ + public class HtsEligibilityExtractRepository : BaseRepository, IHtsEligibilityExtractRepository + { + public HtsEligibilityExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + throw; + } + } + + public IEnumerable GetView() + { + throw new NotImplementedException(); + } + + public void UpdateSendStatus(List sentItems) + { + var mpi = GetAll(x => sentItems.Select(i => i.Id).Contains(x.Id)) + .Select(x => + { + var sentItem = sentItems.First(s => s.Id == x.Id); + x.Status = $"{sentItem.Status}"; + x.StatusDate = sentItem.StatusDate; + return x; + }); + + var cn = GetConnection(); + cn.BulkUpdate(mpi); + CloseConnection(cn); + } + + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Hts/TempExtracts/TempHtsClientsExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Hts/TempExtracts/TempHtsClientsExtractRepository.cs index 7302f27c..dbad43bd 100644 --- a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Hts/TempExtracts/TempHtsClientsExtractRepository.cs +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Hts/TempExtracts/TempHtsClientsExtractRepository.cs @@ -77,6 +77,7 @@ public async Task Clear() nameof(ExtractsContext.TempHtsClientTracingExtracts), nameof(ExtractsContext.TempHtsPartnerNotificationServicesExtracts), nameof(ExtractsContext.TempHtsClientsExtracts), + nameof(ExtractsContext.TempHtsEligibilityExtracts), nameof(ExtractsContext.HtsClientTestsExtracts), nameof(ExtractsContext.HtsTestKitsExtracts), @@ -84,6 +85,8 @@ public async Task Clear() nameof(ExtractsContext.HtsPartnerTracingExtracts), nameof(ExtractsContext.HtsClientTracingExtracts), nameof(ExtractsContext.HtsPartnerNotificationServicesExtracts), + nameof(ExtractsContext.HtsEligibilityExtracts), + }; var deletes = new List {nameof(ExtractsContext.HtsClientsExtracts)}; diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Hts/TempExtracts/TempHtsEligibilityExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Hts/TempExtracts/TempHtsEligibilityExtractRepository.cs new file mode 100644 index 00000000..035f959f --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Hts/TempExtracts/TempHtsEligibilityExtractRepository.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Threading.Tasks; +using Dapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Hts; +using Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Hts.TempExtracts +{ + public class TempHtsEligibilityExtractRepository: BaseRepository, ITempHtsEligibilityExtractRepository + { + public TempHtsEligibilityExtractRepository(ExtractsContext context) : base(context) + { + } + + public Task Clear() + { + throw new NotImplementedException(); + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + + public Task GetCleanCount() + { + int count = 0; + using (var cn=GetNewConnection()) + { + var query = QueryUtil.EligibilityCount; + count = cn.ExecuteScalar(query); + } + return Task.FromResult(count); + } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Hts/Validations/TempHtsEligibilityExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Hts/Validations/TempHtsEligibilityExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..3e602ba1 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Hts/Validations/TempHtsEligibilityExtractErrorSummaryRepository.cs @@ -0,0 +1,13 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Hts; +using Dwapi.ExtractsManagement.Core.Model.Source.Hts.NewHts; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Hts.Validations.Base; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Hts.Validations +{ + public class TempHtsEligibilityExtractErrorSummaryRepository : TempHTSExtractErrorSummaryRepository, ITempHtsEligibilityExtractErrorSummaryRepository + { + public TempHtsEligibilityExtractErrorSummaryRepository(ExtractsContext context) : base(context) + { + } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Base/TempPrepExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Base/TempPrepExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..d8112d00 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Base/TempPrepExtractErrorSummaryRepository.cs @@ -0,0 +1,32 @@ +using System.Collections.Generic; +using System.Linq; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Microsoft.EntityFrameworkCore; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Base +{ + public abstract class TempPrepExtractErrorSummaryRepository : ITempPrepExtractErrorSummaryRepository where T: TempPrepExtractErrorSummary + { + internal ExtractsContext Context; + internal DbSet DbSet; + + public TempPrepExtractErrorSummaryRepository(ExtractsContext context) + { + Context = context; + DbSet = context.Set(); + } + + public IEnumerable GetAll() + { + return DbSet.AsNoTracking(); + } + + public IEnumerable GetByExtract(string extract) + { + return DbSet.Where(x => x.Extract.ToLower() == extract.ToLower()); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PatientPrepExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PatientPrepExtractRepository.cs new file mode 100644 index 00000000..2a798e1b --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PatientPrepExtractRepository.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using Dapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Dwapi.SharedKernel.Model; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Extracts +{ + public class PatientPrepExtractRepository : BaseRepository, IPatientPrepExtractRepository + { + public PatientPrepExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + public void UpdateSendStatus(List sentItems) + { + var sql = $"SELECT * FROM {nameof(ExtractsContext.PatientPrepExtracts)} Where Id IN @Ids"; + var ids = sentItems.Select(x => x.Id).ToArray(); + + using (var cn = GetNewConnection()) + { + + var mpi = cn.Query(sql, new { Ids = ids }).ToList() + .Select(x => + { + var sentItem = sentItems.First(s => s.Id == x.Id); + x.Status = $"{sentItem.Status}"; + x.StatusDate = sentItem.StatusDate; + return x; + }).ToList(); + + + cn.BulkUpdate(mpi); + } + } + + public long UpdateDiffSendStatus() + { + int totalUpdated; + + using (var cn = GetNewConnection()) + { + + var sql = $@" + UPDATE + {nameof(ExtractsContext.PatientAdverseEventExtracts)} + SET + {nameof(PatientPrepExtract.Status)}=@Status,{nameof(PatientPrepExtract.StatusDate)}=@StatusDate + where + {nameof(PatientPrepExtract.PatientPK)} in (select PatientPK from {nameof(ExtractsContext.PatientExtracts)}) AND + {nameof(PatientPrepExtract.SiteCode)} in (select SiteCode from {nameof(ExtractsContext.PatientExtracts)}) + "; + + totalUpdated = cn.Execute(sql, new {Status = nameof(SendStatus.Sent), StatusDate = DateTime.Now}); + } + + return totalUpdated; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepAdverseEventExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepAdverseEventExtractRepository.cs new file mode 100644 index 00000000..2ce972bf --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepAdverseEventExtractRepository.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using Dapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Dwapi.SharedKernel.Model; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Extracts +{ + public class PrepAdverseEventExtractRepository : BaseRepository, IPrepAdverseEventExtractRepository + { + public PrepAdverseEventExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + public void UpdateSendStatus(List sentItems) + { + var sql = $"SELECT * FROM {nameof(ExtractsContext.PrepAdverseEventExtracts)} Where Id IN @Ids"; + var ids = sentItems.Select(x => x.Id).ToArray(); + + using (var cn = GetNewConnection()) + { + + var mpi = cn.Query(sql, new { Ids = ids }).ToList() + .Select(x => + { + var sentItem = sentItems.First(s => s.Id == x.Id); + x.Status = $"{sentItem.Status}"; + x.StatusDate = sentItem.StatusDate; + return x; + }).ToList(); + + + cn.BulkUpdate(mpi); + } + } + + public long UpdateDiffSendStatus() + { + int totalUpdated; + + using (var cn = GetNewConnection()) + { + + var sql = $@" + UPDATE + {nameof(ExtractsContext.PatientAdverseEventExtracts)} + SET + {nameof(PrepAdverseEventExtract.Status)}=@Status,{nameof(PrepAdverseEventExtract.StatusDate)}=@StatusDate + where + {nameof(PrepAdverseEventExtract.PatientPK)} in (select PatientPK from {nameof(ExtractsContext.PatientExtracts)}) AND + {nameof(PrepAdverseEventExtract.SiteCode)} in (select SiteCode from {nameof(ExtractsContext.PatientExtracts)}) + "; + + totalUpdated = cn.Execute(sql, new {Status = nameof(SendStatus.Sent), StatusDate = DateTime.Now}); + } + + return totalUpdated; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepBehaviourRiskExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepBehaviourRiskExtractRepository.cs new file mode 100644 index 00000000..b650277b --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepBehaviourRiskExtractRepository.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using Dapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Dwapi.SharedKernel.Model; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Extracts +{ + public class PrepBehaviourRiskExtractRepository : BaseRepository, IPrepBehaviourRiskExtractRepository + { + public PrepBehaviourRiskExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + public void UpdateSendStatus(List sentItems) + { + var sql = $"SELECT * FROM {nameof(ExtractsContext.PrepBehaviourRiskExtracts)} Where Id IN @Ids"; + var ids = sentItems.Select(x => x.Id).ToArray(); + + using (var cn = GetNewConnection()) + { + + var mpi = cn.Query(sql, new { Ids = ids }).ToList() + .Select(x => + { + var sentItem = sentItems.First(s => s.Id == x.Id); + x.Status = $"{sentItem.Status}"; + x.StatusDate = sentItem.StatusDate; + return x; + }).ToList(); + + + cn.BulkUpdate(mpi); + } + } + + public long UpdateDiffSendStatus() + { + int totalUpdated; + + using (var cn = GetNewConnection()) + { + + var sql = $@" + UPDATE + {nameof(ExtractsContext.PatientAdverseEventExtracts)} + SET + {nameof(PrepBehaviourRiskExtract.Status)}=@Status,{nameof(PrepBehaviourRiskExtract.StatusDate)}=@StatusDate + where + {nameof(PrepBehaviourRiskExtract.PatientPK)} in (select PatientPK from {nameof(ExtractsContext.PatientExtracts)}) AND + {nameof(PrepBehaviourRiskExtract.SiteCode)} in (select SiteCode from {nameof(ExtractsContext.PatientExtracts)}) + "; + + totalUpdated = cn.Execute(sql, new {Status = nameof(SendStatus.Sent), StatusDate = DateTime.Now}); + } + + return totalUpdated; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepCareTerminationExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepCareTerminationExtractRepository.cs new file mode 100644 index 00000000..0e2e4fb8 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepCareTerminationExtractRepository.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using Dapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Dwapi.SharedKernel.Model; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Extracts +{ + public class PrepCareTerminationExtractRepository : BaseRepository, IPrepCareTerminationExtractRepository + { + public PrepCareTerminationExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + public void UpdateSendStatus(List sentItems) + { + var sql = $"SELECT * FROM {nameof(ExtractsContext.PrepCareTerminationExtracts)} Where Id IN @Ids"; + var ids = sentItems.Select(x => x.Id).ToArray(); + + using (var cn = GetNewConnection()) + { + + var mpi = cn.Query(sql, new { Ids = ids }).ToList() + .Select(x => + { + var sentItem = sentItems.First(s => s.Id == x.Id); + x.Status = $"{sentItem.Status}"; + x.StatusDate = sentItem.StatusDate; + return x; + }).ToList(); + + + cn.BulkUpdate(mpi); + } + } + + public long UpdateDiffSendStatus() + { + int totalUpdated; + + using (var cn = GetNewConnection()) + { + + var sql = $@" + UPDATE + {nameof(ExtractsContext.PatientAdverseEventExtracts)} + SET + {nameof(PrepCareTerminationExtract.Status)}=@Status,{nameof(PrepCareTerminationExtract.StatusDate)}=@StatusDate + where + {nameof(PrepCareTerminationExtract.PatientPK)} in (select PatientPK from {nameof(ExtractsContext.PatientExtracts)}) AND + {nameof(PrepCareTerminationExtract.SiteCode)} in (select SiteCode from {nameof(ExtractsContext.PatientExtracts)}) + "; + + totalUpdated = cn.Execute(sql, new {Status = nameof(SendStatus.Sent), StatusDate = DateTime.Now}); + } + + return totalUpdated; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepLabExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepLabExtractRepository.cs new file mode 100644 index 00000000..67cbb502 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepLabExtractRepository.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using Dapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Dwapi.SharedKernel.Model; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Extracts +{ + public class PrepLabExtractRepository : BaseRepository, IPrepLabExtractRepository + { + public PrepLabExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + public void UpdateSendStatus(List sentItems) + { + var sql = $"SELECT * FROM {nameof(ExtractsContext.PrepLabExtracts)} Where Id IN @Ids"; + var ids = sentItems.Select(x => x.Id).ToArray(); + + using (var cn = GetNewConnection()) + { + + var mpi = cn.Query(sql, new { Ids = ids }).ToList() + .Select(x => + { + var sentItem = sentItems.First(s => s.Id == x.Id); + x.Status = $"{sentItem.Status}"; + x.StatusDate = sentItem.StatusDate; + return x; + }).ToList(); + + + cn.BulkUpdate(mpi); + } + } + + public long UpdateDiffSendStatus() + { + int totalUpdated; + + using (var cn = GetNewConnection()) + { + + var sql = $@" + UPDATE + {nameof(ExtractsContext.PatientAdverseEventExtracts)} + SET + {nameof(PrepLabExtract.Status)}=@Status,{nameof(PrepLabExtract.StatusDate)}=@StatusDate + where + {nameof(PrepLabExtract.PatientPK)} in (select PatientPK from {nameof(ExtractsContext.PatientExtracts)}) AND + {nameof(PrepLabExtract.SiteCode)} in (select SiteCode from {nameof(ExtractsContext.PatientExtracts)}) + "; + + totalUpdated = cn.Execute(sql, new {Status = nameof(SendStatus.Sent), StatusDate = DateTime.Now}); + } + + return totalUpdated; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepPharmacyExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepPharmacyExtractRepository.cs new file mode 100644 index 00000000..0283e02a --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepPharmacyExtractRepository.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using Dapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Dwapi.SharedKernel.Model; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Extracts +{ + public class PrepPharmacyExtractRepository : BaseRepository, IPrepPharmacyExtractRepository + { + public PrepPharmacyExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + public void UpdateSendStatus(List sentItems) + { + var sql = $"SELECT * FROM {nameof(ExtractsContext.PrepPharmacyExtracts)} Where Id IN @Ids"; + var ids = sentItems.Select(x => x.Id).ToArray(); + + using (var cn = GetNewConnection()) + { + + var mpi = cn.Query(sql, new { Ids = ids }).ToList() + .Select(x => + { + var sentItem = sentItems.First(s => s.Id == x.Id); + x.Status = $"{sentItem.Status}"; + x.StatusDate = sentItem.StatusDate; + return x; + }).ToList(); + + + cn.BulkUpdate(mpi); + } + } + + public long UpdateDiffSendStatus() + { + int totalUpdated; + + using (var cn = GetNewConnection()) + { + + var sql = $@" + UPDATE + {nameof(ExtractsContext.PatientAdverseEventExtracts)} + SET + {nameof(PrepPharmacyExtract.Status)}=@Status,{nameof(PrepPharmacyExtract.StatusDate)}=@StatusDate + where + {nameof(PrepPharmacyExtract.PatientPK)} in (select PatientPK from {nameof(ExtractsContext.PatientExtracts)}) AND + {nameof(PrepPharmacyExtract.SiteCode)} in (select SiteCode from {nameof(ExtractsContext.PatientExtracts)}) + "; + + totalUpdated = cn.Execute(sql, new {Status = nameof(SendStatus.Sent), StatusDate = DateTime.Now}); + } + + return totalUpdated; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepVisitExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepVisitExtractRepository.cs new file mode 100644 index 00000000..e8ee5407 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Extracts/PrepVisitExtractRepository.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using System.Linq; +using Dapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Dwapi.SharedKernel.Model; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Extracts +{ + public class PrepVisitExtractRepository : BaseRepository, IPrepVisitExtractRepository + { + public PrepVisitExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + public void UpdateSendStatus(List sentItems) + { + var sql = $"SELECT * FROM {nameof(ExtractsContext.PrepVisitExtracts)} Where Id IN @Ids"; + var ids = sentItems.Select(x => x.Id).ToArray(); + + using (var cn = GetNewConnection()) + { + + var mpi = cn.Query(sql, new { Ids = ids }).ToList() + .Select(x => + { + var sentItem = sentItems.First(s => s.Id == x.Id); + x.Status = $"{sentItem.Status}"; + x.StatusDate = sentItem.StatusDate; + return x; + }).ToList(); + + + cn.BulkUpdate(mpi); + } + } + + public long UpdateDiffSendStatus() + { + int totalUpdated; + + using (var cn = GetNewConnection()) + { + + var sql = $@" + UPDATE + {nameof(ExtractsContext.PatientAdverseEventExtracts)} + SET + {nameof(PrepVisitExtract.Status)}=@Status,{nameof(PrepVisitExtract.StatusDate)}=@StatusDate + where + {nameof(PrepVisitExtract.PatientPK)} in (select PatientPK from {nameof(ExtractsContext.PatientExtracts)}) AND + {nameof(PrepVisitExtract.SiteCode)} in (select SiteCode from {nameof(ExtractsContext.PatientExtracts)}) + "; + + totalUpdated = cn.Execute(sql, new {Status = nameof(SendStatus.Sent), StatusDate = DateTime.Now}); + } + + return totalUpdated; + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPatientPrepExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPatientPrepExtractRepository.cs new file mode 100644 index 00000000..3f53733e --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPatientPrepExtractRepository.cs @@ -0,0 +1,129 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Threading.Tasks; +using Dapper; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.TempExtracts +{ + public class TempPatientPrepExtractRepository : BaseRepository, + ITempPatientPrepExtractRepository + { + public TempPatientPrepExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + + public async Task Clear() + { + var cn = GetConnection(); + + var truncates = new List + { + nameof(ExtractsContext.TempPatientPrepExtracts), + nameof(ExtractsContext.TempPrepAdverseEventExtracts), + nameof(ExtractsContext.TempPrepBehaviourRiskExtracts), + nameof(ExtractsContext.TempPrepCareTerminationExtracts), + nameof(ExtractsContext.TempPrepLabExtracts), + nameof(ExtractsContext.TempPrepPharmacyExtracts), + nameof(ExtractsContext.TempPrepVisitExtracts), + + nameof(ExtractsContext.PrepAdverseEventExtracts), + nameof(ExtractsContext.PrepBehaviourRiskExtracts), + nameof(ExtractsContext.PrepCareTerminationExtracts), + nameof(ExtractsContext.PrepLabExtracts), + nameof(ExtractsContext.PrepPharmacyExtracts), + nameof(ExtractsContext.PrepVisitExtracts) + }; + + var deletes = new List {nameof(ExtractsContext.PatientPrepExtracts)}; + + var truncateCommands = truncates.Select(x => GetSqlCommand(cn, $"TRUNCATE TABLE {x};")); + + foreach (var truncateCommand in truncateCommands) + { + await truncateCommand; + } + + var deleteCommands = deletes.Select(d => GetSqlCommand(cn, $"DELETE FROM {d};")); + + foreach (var deleteCommand in deleteCommands) + { + await deleteCommand; + } + + CloseConnection(cn); + + return 1; + } + + public Task GetCleanCount() + { + return DbSet.AsNoTracking() + .Where(a => a.ErrorType == 0) + .Select(x => x.Id) + .CountAsync(); + } + + private Task GetSqlCommand(IDbConnection cn, string sql) + { + if (cn is SqliteConnection) + return cn.ExecuteAsync(sql.Replace("TRUNCATE TABLE", "DELETE FROM")); + + return cn.ExecuteAsync(sql); + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepAdverseEventExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepAdverseEventExtractRepository.cs new file mode 100644 index 00000000..ca9d43d3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepAdverseEventExtractRepository.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.TempExtracts +{ + public class TempPrepAdverseEventExtractRepository : BaseRepository, ITempPrepAdverseEventExtractRepository + { + public TempPrepAdverseEventExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepBehaviourRiskExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepBehaviourRiskExtractRepository.cs new file mode 100644 index 00000000..c2829049 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepBehaviourRiskExtractRepository.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.TempExtracts +{ + public class TempPrepBehaviourRiskExtractRepository : BaseRepository, ITempPrepBehaviourRiskExtractRepository + { + public TempPrepBehaviourRiskExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepCareTerminationExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepCareTerminationExtractRepository.cs new file mode 100644 index 00000000..d2f0f71f --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepCareTerminationExtractRepository.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.TempExtracts +{ + public class TempPrepCareTerminationExtractRepository : BaseRepository, ITempPrepCareTerminationExtractRepository + { + public TempPrepCareTerminationExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepLabExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepLabExtractRepository.cs new file mode 100644 index 00000000..c86c7c7f --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepLabExtractRepository.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.TempExtracts +{ + public class TempPrepLabExtractRepository : BaseRepository, ITempPrepLabExtractRepository + { + public TempPrepLabExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepPharmacyExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepPharmacyExtractRepository.cs new file mode 100644 index 00000000..e39e7329 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepPharmacyExtractRepository.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.TempExtracts +{ + public class TempPrepPharmacyExtractRepository : BaseRepository, ITempPrepPharmacyExtractRepository + { + public TempPrepPharmacyExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepVisitExtractRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepVisitExtractRepository.cs new file mode 100644 index 00000000..6def6486 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/TempExtracts/TempPrepVisitExtractRepository.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Data.SqlClient; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Microsoft.Data.Sqlite; +using Microsoft.EntityFrameworkCore; +using MySql.Data.MySqlClient; +using Serilog; +using Z.Dapper.Plus; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.TempExtracts +{ + public class TempPrepVisitExtractRepository : BaseRepository, ITempPrepVisitExtractRepository + { + public TempPrepVisitExtractRepository(ExtractsContext context) : base(context) + { + } + + public bool BatchInsert(IEnumerable extracts) + { + var cn = GetConnectionString(); + try + { + if (Context.Database.ProviderName.ToLower().Contains("SqlServer".ToLower())) + { + using (var connection = new SqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.ProviderName.ToLower().Contains("MySql".ToLower())) + { + using (var connection = new MySqlConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + + if (Context.Database.IsSqlite()) + { + using (var connection = new SqliteConnection(cn)) + { + connection.BulkInsert(extracts); + return true; + } + } + return false; + } + catch (Exception e) + { + Console.WriteLine(e.Message); + Log.Error(e, "Failed batch insert"); + return false; + } + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/Base/TempPrepExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/Base/TempPrepExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..43a806c2 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/Base/TempPrepExtractErrorSummaryRepository.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; +using System.Linq; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Microsoft.EntityFrameworkCore; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Validations.Base +{ + public abstract class TempPrepExtractErrorSummaryRepository : ITempExtractErrorSummaryRepository where T: TempPrepExtractErrorSummary + { + internal ExtractsContext Context; + internal DbSet DbSet; + + public TempPrepExtractErrorSummaryRepository(ExtractsContext context) + { + Context = context; + DbSet = context.Set(); + } + + public IEnumerable GetAll() + { + return DbSet.AsNoTracking(); + } + + public IEnumerable GetByExtract(string extract) + { + return DbSet.Where(x => x.Extract.ToLower() == extract.ToLower()); + } + } + +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPatientPrepExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPatientPrepExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..70e1d3f3 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPatientPrepExtractErrorSummaryRepository.cs @@ -0,0 +1,15 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Base; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Validations +{ + public class TempPatientPrepExtractErrorSummaryRepository : + TempPrepExtractErrorSummaryRepository, + ITempPatientPrepExtractErrorSummaryRepository + { + public TempPatientPrepExtractErrorSummaryRepository(ExtractsContext context) : base(context) + { + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepAdverseEventExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepAdverseEventExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..75e923aa --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepAdverseEventExtractErrorSummaryRepository.cs @@ -0,0 +1,8 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Base; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Validations +{ + public class TempPrepAdverseEventExtractErrorSummaryRepository: TempPrepExtractErrorSummaryRepository, ITempPrepAdverseEventExtractErrorSummaryRepository{public TempPrepAdverseEventExtractErrorSummaryRepository(ExtractsContext context) : base(context){}} +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepBehaviourRiskExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepBehaviourRiskExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..2cafe4e0 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepBehaviourRiskExtractErrorSummaryRepository.cs @@ -0,0 +1,8 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Base; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Validations +{ + public class TempPrepBehaviourRiskExtractErrorSummaryRepository: TempPrepExtractErrorSummaryRepository, ITempPrepBehaviourRiskExtractErrorSummaryRepository{public TempPrepBehaviourRiskExtractErrorSummaryRepository(ExtractsContext context) : base(context){}} +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepCareTerminationExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepCareTerminationExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..fc3dcae5 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepCareTerminationExtractErrorSummaryRepository.cs @@ -0,0 +1,8 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Base; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Validations +{ + public class TempPrepCareTerminationExtractErrorSummaryRepository: TempPrepExtractErrorSummaryRepository, ITempPrepCareTerminationExtractErrorSummaryRepository{public TempPrepCareTerminationExtractErrorSummaryRepository(ExtractsContext context) : base(context){}} +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepLabExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepLabExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..4dcfc601 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepLabExtractErrorSummaryRepository.cs @@ -0,0 +1,8 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Base; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Validations +{ + public class TempPrepLabExtractErrorSummaryRepository: TempPrepExtractErrorSummaryRepository, ITempPrepLabExtractErrorSummaryRepository{public TempPrepLabExtractErrorSummaryRepository(ExtractsContext context) : base(context){}} +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepPharmacyExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepPharmacyExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..adcb32ae --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepPharmacyExtractErrorSummaryRepository.cs @@ -0,0 +1,8 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Base; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Validations +{ + public class TempPrepPharmacyExtractErrorSummaryRepository: TempPrepExtractErrorSummaryRepository, ITempPrepPharmacyExtractErrorSummaryRepository{public TempPrepPharmacyExtractErrorSummaryRepository(ExtractsContext context) : base(context){}} +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepVisitExtractErrorSummaryRepository.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepVisitExtractErrorSummaryRepository.cs new file mode 100644 index 00000000..8ddd8423 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Repository/Prep/Validations/TempPrepVisitExtractErrorSummaryRepository.cs @@ -0,0 +1,15 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Dwapi.ExtractsManagement.Core.Model.Source.Prep; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Base; + +namespace Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Validations +{ + public class TempPrepVisitExtractErrorSummaryRepository : + TempPrepExtractErrorSummaryRepository, + ITempPrepVisitExtractErrorSummaryRepository + { + public TempPrepVisitExtractErrorSummaryRepository(ExtractsContext context) : base(context) + { + } + } +} diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Seed/Validator.csv b/src/Dwapi.ExtractsManagement.Infrastructure/Seed/Validator.csv index 64dc5657..34afd804 100644 --- a/src/Dwapi.ExtractsManagement.Infrastructure/Seed/Validator.csv +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Seed/Validator.csv @@ -12,7 +12,6 @@ Id|Extract|Field|Type|Logic|Summary 61bc1d96-35a1-11e7-a919-92ebcb67fe33|TempPatientArtExtracts|LastVisit|Logical|LastVisit IS NULL|LastVisit is missing 6c5c63e4-2a95-11e7-93ae-92361f002671|TempPatientArtExtracts|PatientID|Required|PatientID IS NULL OR PatientID=''|PatientID Required 6c5c6100-2a95-11e7-93ae-92361f002671|TempPatientArtExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required - 6c5c64fc-2a95-11e7-93ae-92361f002671|TempPatientArtExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required ce7b5db8-160f-11e7-93ae-92361f002671|TempPatientArtExtracts|StartARTDate|Logical|StartARTDate IS NULL|StartARTDate Required 61bc1c9c-35a1-11e7-a919-92ebcb67fe33|TempPatientArtExtracts|StartARTDate|Logical|StartARTDate > ExitDate AND ExitDate IS NOT NULL|StartARTDate after Exit Date @@ -52,46 +51,36 @@ ce7b571e-160f-11e7-93ae-92361f002671|TempPatientExtracts|Gender|Required|Gender 6c5c81b2-2a95-11e7-93ae-92361f002671|TempPatientVisitExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required 6c5c83b0-2a95-11e7-93ae-92361f002671|TempPatientVisitExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required 61bbe02e-35a1-11e7-a919-92ebcb67fe33|TempPatientVisitExtracts|VisitDate|Logical|VisitDate IS NULL|VisitDate is required - a7922445-bbc4-42cd-955e-f2fe1d5673ac|TempPatientAdverseEventExtracts|PatientID|Required|PatientID IS NULL OR PatientID=''|PatientID Required c691fceb-3ee9-4a8f-a075-e39c0a1a225f|TempPatientAdverseEventExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required 177db6a8-353b-4041-9103-d0eecf135139|TempPatientAdverseEventExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode is Required 5a662658-0582-4156-9478-a1c63bfe096b|TempPatientAdverseEventExtracts|AdverseEvent|Logical|AdverseEvent IS NULL|AdverseEvent is Required aa19523d-f81d-4ccb-8d26-98dd054fed5e|TempPatientAdverseEventExtracts|AdverseEventStartDate|Logical|AdverseEventStartDate IS NULL|AdverseEventStartDate is Required 4f62bd0b-674f-48cb-bb68-9d26497eb4de|TempPatientAdverseEventExtracts|AdverseEventRegimen|Logical|AdverseEventRegimen IS NULL|AdverseEventRegimen is Required - 4f62bd1b-674f-48cb-bb49-9d26497eb4de|TempHtsClientsExtracts|PatientPk|Required|PatientPk IS NULL|PatientPk Required 4f62bd1b-674f-48cb-bb50-9d26497eb4de|TempHtsClientsExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required 4f62bd1b-674f-48cb-bb69-9d26497eb4de|TempHtsClientsExtracts|Dob|Required|Dob IS NULL|DOB is Required 4f62bd1b-674f-48cb-bb70-9d26497eb4de|TempHtsClientsExtracts|Gender|Required|Gender IS NULL|Gender is Required - 4f62bd2b-674f-48cb-bb49-9d26497eb4de|TempHtsClientTestsExtracts|PatientPk|Required|PatientPk IS NULL|PatientPk Required 4f62bd2b-674f-48cb-bb50-9d26497eb4de|TempHtsClientTestsExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required 4f62bd2b-674f-48cb-bb71-9d26497eb4de|TempHtsClientTestsExtracts|TestDate|Logical|TestDate IS NULL|TestDate is Required 4f62bd2b-674f-48cb-bb73-9d26497eb4de|TempHtsClientTestsExtracts|TestResult1|Logical|TestResult1 IS NULL|TestResult1 is Required 4f62bd2b-674f-48cb-bb74-9d26497eb4de|TempHtsClientTestsExtracts|FinalTestResult|Logical|FinalTestResult IS NULL|FinalTestResult is Required 4f62bd2b-674f-48cb-bb75-9d26497eb4de|TempHtsClientTestsExtracts|TestResult2|Logical|TestResult2 IS NULL AND TestResult1 = 'Positive' |TestResult1 is positive and TestResult2 is Missing - 4f62bd3b-674f-48cb-bb77-9d26497eb4de|TempHtsPartnerNotificationServicesExtracts|PatientPk|Required|PatientPk IS NULL|PatientPk is Required 4f62bd3b-674f-48cb-bb78-9d26497eb4de|TempHtsPartnerNotificationServicesExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode is Required - 4f62bd4b-674f-48cb-bb80-9d26497eb4de|TempHtsClientTracingExtracts|PatientPk|Required|PatientPk IS NULL|PatientPk is Required 4f62bd4b-674f-48cb-bb81-9d26497eb4de|TempHtsClientTracingExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode is Required - 4f62bd5b-674f-48cb-bb83-9d26497eb4de|TempHtsPartnerTracingExtracts|PatientPk|Required|PatientPk IS NULL|PatientPk is Required 4f62bd5b-674f-48cb-bb84-9d26497eb4de|TempHtsPartnerTracingExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode is Required - 4f62bd7b-674f-48cb-bb83-9d26497eb4de|TempHtsTestKitsExtracts|PatientPk|Required|PatientPk IS NULL|PatientPk is Required 4f62bd7b-674f-48cb-bb84-9d26497eb4de|TempHtsTestKitsExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode is Required 4f62bd7b-674f-48cb-bb73-9d26497eb4de|TempHtsTestKitsExtracts|TestResult1|Logical|TestResult1 IS NULL|TestResult1 is Required 4f62bd7b-674f-48cb-bb75-9d26497eb4de|TempHtsTestKitsExtracts|TestResult2|Logical|TestResult2 IS NULL AND TestResult1 = 'Positive' |TestResult1 is positive and TestResult2 is Missing - 4f62bd8b-674f-48cb-bb83-9d26497eb4de|TempHtsClientsLinkageExtracts|PatientPk|Required|PatientPk IS NULL|PatientPk is Required 4f62bd8b-674f-48cb-bb84-9d26497eb4de|TempHtsClientsLinkageExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode is Required - 2a4c26ea-74f4-11ea-bc55-0242ac130003|TempMetricMigrationExtracts|MetricId|Required|MetricId IS NULL|MetricId is Required 2a4c291a-74f4-11ea-bc55-0242ac130003|TempMetricMigrationExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode is Required - 7266ee30-7a96-11eb-9439-0242ac130002|TempAllergiesChronicIllnessExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required 7266ee31-7a96-11eb-9439-0242ac130002|TempAllergiesChronicIllnessExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required 7266ee32-7a96-11eb-9439-0242ac130002|TempContactListingExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required @@ -110,7 +99,6 @@ aa19523d-f81d-4ccb-8d26-98dd054fed5e|TempPatientAdverseEventExtracts|AdverseEven 7266ee45-7a96-11eb-9439-0242ac130002|TempOtzExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required 7266ee46-7a96-11eb-9439-0242ac130002|TempOvcExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required 7266ee47-7a96-11eb-9439-0242ac130002|TempOvcExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required - 82652c40-9db2-11eb-a8b3-0242ac130003|TempPatientMnchExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required 82651dea-9db2-11eb-a8b3-0242ac130003|TempPatientMnchExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required 82652fec-9db2-11eb-a8b3-0242ac130003|TempAncVisitExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required @@ -133,3 +121,21 @@ aa19523d-f81d-4ccb-8d26-98dd054fed5e|TempPatientAdverseEventExtracts|AdverseEven 82652470-9db2-11eb-a8b3-0242ac130003|TempMotherBabyPairExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required 8265326c-9db2-11eb-a8b3-0242ac130003|TempPncVisitExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required 82652358-9db2-11eb-a8b3-0242ac130003|TempPncVisitExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required +7266ee48-7a96-11eb-9439-0242ac130002|TempCovidExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required +7266ee49-7a96-11eb-9439-0242ac130002|TempCovidExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required +7266ee50-7a96-11eb-9439-0242ac130002|TempDefaulterTracingExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required +7266ee51-7a96-11eb-9439-0242ac130002|TempDefaulterTracingExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required +7266ee60-7a96-11eb-9439-0242ac130002|TempPatientPrepExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required +7266ee61-7a96-11eb-9439-0242ac130002|TempPatientPrepExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required +7266ee62-7a96-11eb-9439-0242ac130002|TempPrepBehaviourRiskExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required +7266ee63-7a96-11eb-9439-0242ac130002|TempPrepBehaviourRiskExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required +7266ee64-7a96-11eb-9439-0242ac130002|TempPrepVisitExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required +7266ee65-7a96-11eb-9439-0242ac130002|TempPrepVisitExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required +7266ee66-7a96-11eb-9439-0242ac130002|TempPrepLabExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required +7266ee67-7a96-11eb-9439-0242ac130002|TempPrepLabExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required +7266ee68-7a96-11eb-9439-0242ac130002|TempPrepPharmacyExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required +7266ee69-7a96-11eb-9439-0242ac130002|TempPrepPharmacyExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required +7266ee70-7a96-11eb-9439-0242ac130002|TempPrepAdverseEventExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required +7266ee71-7a96-11eb-9439-0242ac130002|TempPrepAdverseEventExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required +7266ee72-7a96-11eb-9439-0242ac130002|TempPrepCareTerminationExtracts|PatientPK|Required|PatientPK IS NULL|PatientPK Required +7266ee73-7a96-11eb-9439-0242ac130002|TempPrepCareTerminationExtracts|SiteCode|Required|SiteCode IS NULL OR SiteCode = 0|SiteCode Required diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Validators/Crs/ClientRegistryExtractValidator.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Validators/Crs/ClientRegistryExtractValidator.cs new file mode 100644 index 00000000..1ac59b09 --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Validators/Crs/ClientRegistryExtractValidator.cs @@ -0,0 +1,64 @@ +using System; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Crs; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Crs; +using Serilog; + +namespace Dwapi.ExtractsManagement.Infrastructure.Validators.Crs +{ + public class ClientRegistryExtractValidator : IClientRegistryExtractValidator + { + private readonly IValidatorRepository _validatorRepository; + private readonly ITempClientRegistryExtractRepository _tempClientRegistryExtractRepository; + + public ClientRegistryExtractValidator(IValidatorRepository validatorRepository, ITempClientRegistryExtractRepository tempClientRegistryExtractRepository) + { + _validatorRepository = validatorRepository; + _tempClientRegistryExtractRepository = tempClientRegistryExtractRepository; + } + + public async Task Validate(string sourceTable) + { + try + { + var validators = _validatorRepository.GetByExtract(sourceTable); + int count = 0; + var validatorList = validators.ToList(); + + foreach (var validator in validatorList) + { + using (var command = _validatorRepository.GetConnection().CreateCommand()) + { + var provider = _validatorRepository.GetConnectionProvider(); + command.CommandText = validator.GenerateValidateSql(provider); + + try + { + await GetTask(command); + } + catch (Exception e) + { + Log.Debug(e.Message); + throw; + } + count++; + } + } + return true; + } + catch (Exception e) + { + Console.WriteLine(e); + return false; + } + } + + private Task GetTask(IDbCommand command) + { + return Task.Run(() => command.ExecuteNonQuery()); + } + } +} \ No newline at end of file diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Validators/Prep/PrepExtractValidator.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Validators/Prep/PrepExtractValidator.cs new file mode 100644 index 00000000..ce19052c --- /dev/null +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Validators/Prep/PrepExtractValidator.cs @@ -0,0 +1,82 @@ +using System; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; +using Serilog; + +namespace Dwapi.ExtractsManagement.Infrastructure.Validators.Prep +{ + public class PrepExtractValidator : IPrepExtractValidator + { + private readonly IValidatorRepository _validatorRepository; + + public PrepExtractValidator(IValidatorRepository validatorRepository) + { + _validatorRepository = validatorRepository; + } + + public async Task Validate(Guid extractId, int extracted, string extractName, string sourceTable) + { + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new ExtractProgress( + extractName, + nameof(ExtractStatus.Validating), + extracted, 0, 0, 0, 0))); + try + { + var validators = _validatorRepository.GetByExtract(sourceTable); + int count = 0; + var validatorList = validators.ToList(); + + foreach (var validator in validatorList) + { + using (var command = _validatorRepository.GetConnection().CreateCommand()) + { + var provider = _validatorRepository.GetConnectionProvider(); + command.CommandText = validator.GenerateValidateSql(provider); + + try + { + if(command.Connection.State!=ConnectionState.Open) + command.Connection.Open(); + await GetTask(command); + } + catch (Exception e) + { + Log.Debug(e.Message); + throw; + } + count++; + } + } + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new ExtractProgress( + extractName, + nameof(ExtractStatus.Validated), + extracted, 0, 0, 0, 0))); + return true; + } + catch (Exception e) + { + DomainEvents.Dispatch( + new PrepExtractActivityNotification(extractId, new ExtractProgress( + extractName, + nameof(ExtractStatus.Idle), + extracted, 0, 0, 0, 0))); + Console.WriteLine(e); + return false; + } + } + + private Task GetTask(IDbCommand command) + { + return Task.Run(() => command.ExecuteNonQuery()); + } + } +} diff --git a/src/Dwapi.SettingsManagement.Core/Application/Checks/Queries/CheckLiveUpdate.cs b/src/Dwapi.SettingsManagement.Core/Application/Checks/Queries/CheckLiveUpdate.cs index 6c1d92c9..ac1b3921 100644 --- a/src/Dwapi.SettingsManagement.Core/Application/Checks/Queries/CheckLiveUpdate.cs +++ b/src/Dwapi.SettingsManagement.Core/Application/Checks/Queries/CheckLiveUpdate.cs @@ -26,9 +26,9 @@ public async Task> Handle(CheckLiveUpdate request, Cancellatio var client = new HttpClient(); try - { // TODO: set prod APP-Check link + { var response = - await client.GetAsync("https://auth.kenyahmis.org/dwapi/client/updates/livesync.txt"); + await client.GetAsync("https://data.kenyahmis.org:444/dwapi/client/updates/livesync.txt"); if (response.IsSuccessStatusCode) { var content = await response.Content.ReadAsStringAsync(); diff --git a/src/Dwapi.SettingsManagement.Core/Application/Metrics/Events/ExtractLoaded.cs b/src/Dwapi.SettingsManagement.Core/Application/Metrics/Events/ExtractLoaded.cs index 8aacc039..b6196ea6 100644 --- a/src/Dwapi.SettingsManagement.Core/Application/Metrics/Events/ExtractLoaded.cs +++ b/src/Dwapi.SettingsManagement.Core/Application/Metrics/Events/ExtractLoaded.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using Dwapi.SettingsManagement.Core.DTOs; +using Dwapi.SharedKernel.Enum; using MediatR; namespace Dwapi.SettingsManagement.Core.Application.Metrics.Events @@ -12,12 +13,14 @@ public class ExtractLoaded : INotification public int NoLoaded { get; } public string Version { get; } public DateTime ActionDate { get; } = DateTime.Now; + public EmrSetup EmrSetup { get; } public List ExtractCargos { get; private set; } = new List(); - public ExtractLoaded(string name, string version) + public ExtractLoaded(string name, string version, EmrSetup emrSetup = EmrSetup.SingleFacility) { Name = name; Version = version; + EmrSetup = emrSetup; } public ExtractLoaded(string name, int noLoaded, string version) @@ -38,6 +41,8 @@ public void AddCargo(List cargoDtos) cargos = cargoDtos.Where(x => x.DocketId == "CBS").ToList(); if (Name == "MNCH") cargos = cargoDtos.Where(x => x.DocketId == "MNCH").ToList(); + if (Name == "PREP") + cargos = cargoDtos.Where(x => x.DocketId == "PREP").ToList(); ExtractCargos = cargos; } diff --git a/src/Dwapi.SettingsManagement.Core/Application/Metrics/Events/Handlers/ExtractLoadedHandler.cs b/src/Dwapi.SettingsManagement.Core/Application/Metrics/Events/Handlers/ExtractLoadedHandler.cs index b18d43a7..156e64e7 100644 --- a/src/Dwapi.SettingsManagement.Core/Application/Metrics/Events/Handlers/ExtractLoadedHandler.cs +++ b/src/Dwapi.SettingsManagement.Core/Application/Metrics/Events/Handlers/ExtractLoadedHandler.cs @@ -3,6 +3,7 @@ using System.Threading.Tasks; using Dwapi.SettingsManagement.Core.Interfaces.Repositories; using Dwapi.SettingsManagement.Core.Model; +using Dwapi.SharedKernel.Enum; using MediatR; using Newtonsoft.Json; @@ -21,7 +22,7 @@ public Task Handle(ExtractLoaded notification, CancellationToken cancellationTok { var cargoes = _repository.LoadCargo().ToList(); - if (notification.Name == "CareTreatment") + if (notification.Name == "CareTreatment" && notification.EmrSetup != EmrSetup.SingleFacility) { var detainedCargoes = _repository.LoadDetainedCargo().ToList(); cargoes.AddRange(detainedCargoes); diff --git a/src/Dwapi.SettingsManagement.Core/Interfaces/Repositories/IEmrSystemRepository.cs b/src/Dwapi.SettingsManagement.Core/Interfaces/Repositories/IEmrSystemRepository.cs index 177c478a..b1ad9803 100644 --- a/src/Dwapi.SettingsManagement.Core/Interfaces/Repositories/IEmrSystemRepository.cs +++ b/src/Dwapi.SettingsManagement.Core/Interfaces/Repositories/IEmrSystemRepository.cs @@ -10,4 +10,4 @@ public interface IEmrSystemRepository : IRepository EmrSystem GetDefault(); EmrSystem GetMiddleware(); } -} \ No newline at end of file +} diff --git a/src/Dwapi.SettingsManagement.Core/Interfaces/Repositories/ITransportLogRepository.cs b/src/Dwapi.SettingsManagement.Core/Interfaces/Repositories/ITransportLogRepository.cs new file mode 100644 index 00000000..17f24715 --- /dev/null +++ b/src/Dwapi.SettingsManagement.Core/Interfaces/Repositories/ITransportLogRepository.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using Dwapi.SettingsManagement.Core.Model; +using Dwapi.SharedKernel.Interfaces; + +namespace Dwapi.SettingsManagement.Core.Interfaces.Repositories +{ + public interface ITransportLogRepository : IRepository + { + void Clear(string docket); + void CreateLatest(TransportLog transportLog); + + TransportLog GetManifest(); + TransportLog GetMainExtract(); + } +} diff --git a/src/Dwapi.SettingsManagement.Core/Model/AppFeature.cs b/src/Dwapi.SettingsManagement.Core/Model/AppFeature.cs index 16e755ae..895fb60a 100644 --- a/src/Dwapi.SettingsManagement.Core/Model/AppFeature.cs +++ b/src/Dwapi.SettingsManagement.Core/Model/AppFeature.cs @@ -6,18 +6,22 @@ namespace Dwapi.SettingsManagement.Core.Model public class AppFeature { public Feature PKV { get; } - - public AppFeature() + public FeatureBatchSize BatchSize { get; } + private AppFeature() { } - public AppFeature(Feature pkv) + public AppFeature(Feature pkv, FeatureBatchSize batchSize) { PKV = pkv; + BatchSize = batchSize; } - public static AppFeature Load(string name, string description, string key, bool isDevMode = false) + public static AppFeature Load(string name, string description, string key,int pats,int visits,int extracts,bool isDevMode = false) { - return new AppFeature(new Feature(name, description, key, isDevMode)); + return new AppFeature( + new Feature(name, description, key, isDevMode), + new FeatureBatchSize(pats,visits,extracts) + ); } } @@ -60,4 +64,23 @@ public override string ToString() return $"{Description} | Enabled:{IsValid}"; } } + public class FeatureBatchSize + { + public int Patients { get; set; } + public int Visits { get; set; } + public int Extracts { get; set; } + + + public FeatureBatchSize(int patients, int visits, int extracts) + { + Patients = patients > 2000 ? 2000 : patients; + Visits = visits > 2000 ? 2000 : visits; + Extracts = extracts > 2000 ? 2000 : extracts; + } + + public override string ToString() + { + return $"Upload Batch Patients:{Patients} | Visits:{Visits} |Extracts:{Extracts}"; + } + } } diff --git a/src/Dwapi.SettingsManagement.Core/Model/TransportLog.cs b/src/Dwapi.SettingsManagement.Core/Model/TransportLog.cs new file mode 100644 index 00000000..71dc92aa --- /dev/null +++ b/src/Dwapi.SettingsManagement.Core/Model/TransportLog.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; + +namespace Dwapi.SettingsManagement.Core.Model +{ + public class TransportLog:Entity + { + public string Docket { get; set; } + public string Extract { get; set; } + public Guid ManifestId { get; set; } + public string JobId {get; set; } + public DateTime JobStart {get; set; } + public DateTime JobEnd {get; set; } + public int SiteCode { get; set; } + public Guid FacilityId { get; set; } + [NotMapped] + public bool IsManifest => Extract.IsSameAs("Manifest"); + + public bool IsMainExtract => Extract.IsSameAs(GetMainByDocket(Docket)); + + private string GetMainByDocket(string docket) + { + if (Docket == "NDWH") + return "PatientExtract"; + + return string.Empty; + } + + public TransportLog() + { + } + public TransportLog(string docket,string extract, string jobId) + { + Docket = docket; + Extract = extract; + JobId = jobId; + + } + public TransportLog(string docket,string extract, string jobId,Guid manifestId): + this(docket,extract,jobId) + { + ManifestId = manifestId; + } + + public static TransportLog GenerateManifest(string docket, string jobId, Guid manifestId, int siteCode, + DateTime dateTime,Guid facilityId) + { + var m = new TransportLog(docket, "Manifest", jobId, manifestId); + m.JobStart = dateTime; + m.JobEnd = DateTime.Now; + m.SiteCode = siteCode; + m.FacilityId = facilityId; + return m; + } + + public static TransportLog GenerateExtract(string docket, string extract, string jobId) + { + var m = new TransportLog(docket, extract, jobId); + m.JobStart = DateTime.Now; + return m; + } + + public void SetManifest(TransportLog manifest) + { + ManifestId = manifest.ManifestId; + FacilityId = manifest.FacilityId; + SiteCode = manifest.SiteCode; + } + + public void SetLatest(TransportLog transportLog) + { + JobId = transportLog.JobId; + JobEnd = DateTime.Now; + } + } +} diff --git a/src/Dwapi.SettingsManagement.Infrastructure/Migrations/20220313200256_TransportLogging.Designer.cs b/src/Dwapi.SettingsManagement.Infrastructure/Migrations/20220313200256_TransportLogging.Designer.cs new file mode 100644 index 00000000..ffd814f6 --- /dev/null +++ b/src/Dwapi.SettingsManagement.Infrastructure/Migrations/20220313200256_TransportLogging.Designer.cs @@ -0,0 +1,363 @@ +// +using System; +using Dwapi.SettingsManagement.Infrastructure; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +namespace Dwapi.SettingsManagement.Infrastructure.Migrations +{ + [DbContext(typeof(SettingsContext))] + [Migration("20220313200256_TransportLogging")] + partial class TransportLogging + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.AppMetric", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("LogDate"); + + b.Property("LogValue"); + + b.Property("Name"); + + b.Property("Status"); + + b.Property("Version"); + + b.HasKey("Id"); + + b.ToTable("AppMetrics"); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.CentralRegistry", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AuthToken") + .HasMaxLength(100); + + b.Property("DocketId"); + + b.Property("Name") + .HasMaxLength(100); + + b.Property("SubscriberId") + .HasMaxLength(50); + + b.Property("Url") + .HasMaxLength(100); + + b.HasKey("Id"); + + b.HasIndex("DocketId"); + + b.ToTable("CentralRegistries"); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.DatabaseProtocol", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AdvancedProperties") + .HasMaxLength(100); + + b.Property("DatabaseName") + .HasMaxLength(100); + + b.Property("DatabaseType"); + + b.Property("EmrSystemId"); + + b.Property("Host") + .HasMaxLength(100); + + b.Property("Password") + .HasMaxLength(100); + + b.Property("Port"); + + b.Property("Username") + .HasMaxLength(100); + + b.HasKey("Id"); + + b.HasIndex("EmrSystemId"); + + b.ToTable("DatabaseProtocols"); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.Docket", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasMaxLength(50); + + b.Property("Name") + .HasMaxLength(100); + + b.HasKey("Id"); + + b.ToTable("Dockets"); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.EmrSystem", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("EmrSetup"); + + b.Property("IsDefault"); + + b.Property("IsMiddleware"); + + b.Property("Name") + .HasMaxLength(100); + + b.Property("Version") + .HasMaxLength(50); + + b.HasKey("Id"); + + b.ToTable("EmrSystems"); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.Extract", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("DatabaseProtocolId"); + + b.Property("Destination"); + + b.Property("Display") + .HasMaxLength(100); + + b.Property("DocketId"); + + b.Property("EmrSystemId"); + + b.Property("ExtractSql") + .HasMaxLength(8000); + + b.Property("IsPriority"); + + b.Property("Name") + .HasMaxLength(100); + + b.Property("Rank"); + + b.HasKey("Id"); + + b.HasIndex("DatabaseProtocolId"); + + b.HasIndex("DocketId"); + + b.HasIndex("EmrSystemId"); + + b.ToTable("Extracts"); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.IndicatorKey", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Description"); + + b.Property("Rank"); + + b.HasKey("Id"); + + b.ToTable("IndicatorKeys"); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.IntegrityCheck", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Description"); + + b.Property("Docket"); + + b.Property("EmrSystemId"); + + b.Property("Logic"); + + b.Property("LogicType"); + + b.Property("Message"); + + b.Property("Name"); + + b.Property("Stage"); + + b.HasKey("Id"); + + b.ToTable("IntegrityChecks"); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.IntegrityCheckRun", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Finding"); + + b.Property("IntegrityCheckId"); + + b.Property("RunDate"); + + b.Property("RunStatus"); + + b.HasKey("Id"); + + b.HasIndex("IntegrityCheckId"); + + b.ToTable("IntegrityCheckRuns"); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.Resource", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("EndPoint"); + + b.Property("Name"); + + b.Property("RestProtocolId"); + + b.HasKey("Id"); + + b.HasIndex("RestProtocolId"); + + b.ToTable("Resources"); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.RestProtocol", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("AuthToken") + .HasMaxLength(100); + + b.Property("EmrSystemId"); + + b.Property("Password") + .HasMaxLength(100); + + b.Property("Url") + .HasMaxLength(100); + + b.Property("UserName") + .HasMaxLength(100); + + b.HasKey("Id"); + + b.HasIndex("EmrSystemId"); + + b.ToTable("RestProtocols"); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.TransportLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("JobEnd"); + + b.Property("JobId"); + + b.Property("JobStart"); + + b.Property("ManifestId"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TransportLogs"); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.CentralRegistry", b => + { + b.HasOne("Dwapi.SettingsManagement.Core.Model.Docket") + .WithMany("Registries") + .HasForeignKey("DocketId"); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.DatabaseProtocol", b => + { + b.HasOne("Dwapi.SettingsManagement.Core.Model.EmrSystem") + .WithMany("DatabaseProtocols") + .HasForeignKey("EmrSystemId") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.Extract", b => + { + b.HasOne("Dwapi.SettingsManagement.Core.Model.DatabaseProtocol") + .WithMany("Extracts") + .HasForeignKey("DatabaseProtocolId"); + + b.HasOne("Dwapi.SettingsManagement.Core.Model.Docket") + .WithMany("Extracts") + .HasForeignKey("DocketId"); + + b.HasOne("Dwapi.SettingsManagement.Core.Model.EmrSystem") + .WithMany("Extracts") + .HasForeignKey("EmrSystemId") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.IntegrityCheckRun", b => + { + b.HasOne("Dwapi.SettingsManagement.Core.Model.IntegrityCheck") + .WithMany("IntegrityCheckRuns") + .HasForeignKey("IntegrityCheckId") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.Resource", b => + { + b.HasOne("Dwapi.SettingsManagement.Core.Model.RestProtocol") + .WithMany("Resources") + .HasForeignKey("RestProtocolId") + .OnDelete(DeleteBehavior.Cascade); + }); + + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.RestProtocol", b => + { + b.HasOne("Dwapi.SettingsManagement.Core.Model.EmrSystem") + .WithMany("RestProtocols") + .HasForeignKey("EmrSystemId") + .OnDelete(DeleteBehavior.Cascade); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/src/Dwapi.SettingsManagement.Infrastructure/Migrations/20220313200256_TransportLogging.cs b/src/Dwapi.SettingsManagement.Infrastructure/Migrations/20220313200256_TransportLogging.cs new file mode 100644 index 00000000..20d80c75 --- /dev/null +++ b/src/Dwapi.SettingsManagement.Infrastructure/Migrations/20220313200256_TransportLogging.cs @@ -0,0 +1,36 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +namespace Dwapi.SettingsManagement.Infrastructure.Migrations +{ + public partial class TransportLogging : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "TransportLogs", + columns: table => new + { + Id = table.Column(nullable: false), + Docket = table.Column(nullable: true), + Extract = table.Column(nullable: true), + ManifestId = table.Column(nullable: false), + JobId = table.Column(nullable: true), + JobStart = table.Column(nullable: false), + JobEnd = table.Column(nullable: false), + SiteCode = table.Column(nullable: false), + FacilityId = table.Column(nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_TransportLogs", x => x.Id); + }); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "TransportLogs"); + } + } +} diff --git a/src/Dwapi.SettingsManagement.Infrastructure/Migrations/SettingsContextModelSnapshot.cs b/src/Dwapi.SettingsManagement.Infrastructure/Migrations/SettingsContextModelSnapshot.cs index aabbc2aa..3c4aac9a 100644 --- a/src/Dwapi.SettingsManagement.Infrastructure/Migrations/SettingsContextModelSnapshot.cs +++ b/src/Dwapi.SettingsManagement.Infrastructure/Migrations/SettingsContextModelSnapshot.cs @@ -3,6 +3,7 @@ using Dwapi.SettingsManagement.Infrastructure; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace Dwapi.SettingsManagement.Infrastructure.Migrations @@ -15,7 +16,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "2.1.14-servicing-32113") - .HasAnnotation("Relational:MaxIdentifierLength", 64); + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.AppMetric", b => { @@ -273,6 +275,32 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("RestProtocols"); }); + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.TransportLog", b => + { + b.Property("Id") + .ValueGeneratedOnAdd(); + + b.Property("Docket"); + + b.Property("Extract"); + + b.Property("FacilityId"); + + b.Property("JobEnd"); + + b.Property("JobId"); + + b.Property("JobStart"); + + b.Property("ManifestId"); + + b.Property("SiteCode"); + + b.HasKey("Id"); + + b.ToTable("TransportLogs"); + }); + modelBuilder.Entity("Dwapi.SettingsManagement.Core.Model.CentralRegistry", b => { b.HasOne("Dwapi.SettingsManagement.Core.Model.Docket") diff --git a/src/Dwapi.SettingsManagement.Infrastructure/Repository/EmrSystemRepository.cs b/src/Dwapi.SettingsManagement.Infrastructure/Repository/EmrSystemRepository.cs index 4cafbacd..10ac8858 100644 --- a/src/Dwapi.SettingsManagement.Infrastructure/Repository/EmrSystemRepository.cs +++ b/src/Dwapi.SettingsManagement.Infrastructure/Repository/EmrSystemRepository.cs @@ -12,7 +12,7 @@ public class EmrSystemRepository: BaseRepository, IEmrSystemRepo { public EmrSystemRepository(SettingsContext context) : base(context) { - + } public override IEnumerable GetAll() @@ -70,4 +70,4 @@ public override void CreateOrUpdate(EmrSystem entity) Create(entity); } } -} \ No newline at end of file +} diff --git a/src/Dwapi.SettingsManagement.Infrastructure/Repository/TransportLogRepository.cs b/src/Dwapi.SettingsManagement.Infrastructure/Repository/TransportLogRepository.cs new file mode 100644 index 00000000..e837fc80 --- /dev/null +++ b/src/Dwapi.SettingsManagement.Infrastructure/Repository/TransportLogRepository.cs @@ -0,0 +1,62 @@ +using System; +using System.Linq; +using Dwapi.SettingsManagement.Core.Interfaces.Repositories; +using Dwapi.SettingsManagement.Core.Model; +using Dwapi.SharedKernel.Infrastructure.Repository; +using Microsoft.EntityFrameworkCore; + +namespace Dwapi.SettingsManagement.Infrastructure.Repository +{ + public class TransportLogRepository : BaseRepository, ITransportLogRepository + { + public TransportLogRepository(SettingsContext context) : base(context) + { + } + + public void Clear(string docket) + { + var sql = $@"DELETE FROM {nameof(TransportLog)}s WHERE {nameof(TransportLog.Docket)}='{docket}'"; + Context.Database + .ExecuteSqlCommand(sql); + } + + public void CreateLatest(TransportLog transportLog) + { + if (transportLog.IsManifest) + { + Clear(transportLog.Docket); + Context.Set().Add(transportLog); + Context.SaveChanges(); + return; + } + + var log = Context.Set().FirstOrDefault(x => x.Extract == transportLog.Extract); + + if (null == log) + { + var manifest = Context.Set().FirstOrDefault(x => x.Extract == "Manifest"); + if (null != manifest) + transportLog.SetManifest(manifest); + + Context.Set().Add(transportLog); + } + else + { + log.SetLatest(transportLog); + Context.Update(log); + } + + Context.SaveChanges(); + } + + public TransportLog GetManifest() + { + return Context.Set().FirstOrDefault(x => x.IsManifest); + } + + public TransportLog GetMainExtract() + { + return Context.Set().FirstOrDefault(x => x.IsMainExtract); + } + } +} diff --git a/src/Dwapi.SettingsManagement.Infrastructure/Seed/CentralRegistries.csv b/src/Dwapi.SettingsManagement.Infrastructure/Seed/CentralRegistries.csv index 8d673b47..b033f5fa 100644 --- a/src/Dwapi.SettingsManagement.Infrastructure/Seed/CentralRegistries.csv +++ b/src/Dwapi.SettingsManagement.Infrastructure/Seed/CentralRegistries.csv @@ -5,4 +5,5 @@ a6223bc6-0e85-11e8-ba89-0ed5f89f718b|1983aeda-6a96-11e8-adc0-fa7ae01bbebc|https: a6224bc6-0e85-11e8-ba89-0ed5f89f718b|1983aeda-1a96-30e9-adc0-fa7ae01bbebc|https://data.kenyahmis.org:7773|HTS Registry|DWAPI|HTS a6225bc6-0e85-11e8-ba89-0ed5f89f718b|1983aeda-6a96-11e8-adc0-fa7ae02bbebc|https://data.kenyahmis.org:6763|MGS Registry|DWAPI|MGS a6226bc6-0e85-11e8-ba89-0ed5f89f718b|1983aeda-6a96-11e8-adc0-fa7ae02bbebc|https://data.kenyahmis.org:444/mnch|MNCH Registry|DWAPI|MNCH - +a6227bc6-0e85-11e8-ba89-0ed5f89f718b|1983aeda-6a96-11e8-adc0-fa7ae02bbebc|https://data.kenyahmis.org:444/prep|PREP Registry|DWAPI|PREP +a6228bc6-0e85-11e8-ba89-0ed5f89f718b|1983aeda-6a96-11e8-adc0-fa7ae02bbebc|https://data.kenyahmis.org:444/crs|Client Registry Service|DWAPI|CRS \ No newline at end of file diff --git a/src/Dwapi.SettingsManagement.Infrastructure/Seed/Dockets.csv b/src/Dwapi.SettingsManagement.Infrastructure/Seed/Dockets.csv index 5323eb25..31669f97 100644 --- a/src/Dwapi.SettingsManagement.Infrastructure/Seed/Dockets.csv +++ b/src/Dwapi.SettingsManagement.Infrastructure/Seed/Dockets.csv @@ -6,3 +6,5 @@ HTS|HIV Testing Services MGS|Migration Services MTS|Metrics Services MNCH|MNCH Services +PREP|PREP Services +CRS|Client Registry Services diff --git a/src/Dwapi.SettingsManagement.Infrastructure/Seed/EmrSystems.csv b/src/Dwapi.SettingsManagement.Infrastructure/Seed/EmrSystems.csv index 38d98db1..6da6b166 100644 --- a/src/Dwapi.SettingsManagement.Infrastructure/Seed/EmrSystems.csv +++ b/src/Dwapi.SettingsManagement.Infrastructure/Seed/EmrSystems.csv @@ -1,7 +1,7 @@ Id|Name|Version|IsMiddleware|IsDefault|EmrSetup -a62216ee-0e85-11e8-ba89-0ed5f89f718b|IQCare|2.2.1|0|1|0 -a6221856-0e85-11e8-ba89-0ed5f89f718b|KenyaEMR|17.3.5|0|0|0 -a6221857-0e85-11e8-ba89-0ed5f89f718b|AMRS|1|0|0|1 +a62216ee-0e85-11e8-ba89-0ed5f89f718b|IQCare|2.2.1|0|0|0 +a6221856-0e85-11e8-ba89-0ed5f89f718b|KenyaEMR|18.0.1|0|1|0 +a6221857-0e85-11e8-ba89-0ed5f89f718b|AMRS|1|0|0|0 a6221858-0e85-11e8-ba89-0ed5f89f718b|ECare|1|0|0|0 a6221859-0e85-11e8-ba89-0ed5f89f718b|FACES|1|0|0|1 926f49b8-305d-11ea-978f-2e728ce88125|CHAK|1|0|0|0 diff --git a/src/Dwapi.SettingsManagement.Infrastructure/Seed/Extracts.csv b/src/Dwapi.SettingsManagement.Infrastructure/Seed/Extracts.csv index 795f213f..92e4057a 100644 --- a/src/Dwapi.SettingsManagement.Infrastructure/Seed/Extracts.csv +++ b/src/Dwapi.SettingsManagement.Infrastructure/Seed/Extracts.csv @@ -124,9 +124,10 @@ FROM '' AS SatelliteName, 0 AS FacilityId,d.unique_patient_no as PatientID, d.patient_id as PatientPK, + d.national_unique_patient_identifier as NUPI, pkv.PKV as Pkv, - (select FacilityName from kenyaemr_etl.etl_default_facility_info) as FacilityName, - (select siteCode from kenyaemr_etl.etl_default_facility_info) as SiteCode, + i.siteCode as SiteCode, + i.facilityName as FacilityName, case d.gender when 'M' then 'Male' when 'F' then 'Female' end as Gender, d.dob as DOB, CAST(min(hiv.visit_date) as Date) as RegistrationDate, @@ -245,7 +246,7 @@ FROM from kenyaemr_etl.etl_patient_program group by Patient_Id,program ) as prg on prg.patient_id = d.patient_id - left join kenyaemr_etl.etl_contact c on c.client_id = d.patient_id and prg.status='Active' and prg.program='KP' + left join kenyaemr_etl.etl_contact c on c.client_id = d.patient_id and prg.status='Active' and prg.program='KP' join kenyaemr_etl.etl_default_facility_info i where unique_patient_no is not null group by d.patient_id order by d.patient_id;"|dwhstage|1|PatientExtract|1|a6221aa4-0e85-11e8-ba89-0ed5f89f718b @@ -562,35 +563,82 @@ group by e.patient_id) p_dates on p_dates.patient_id=fup.patient_id left outer join kenyaemr_etl.etl_laboratory_extract l on l.patient_id=fup.patient_id and l.lab_test in (5497,730) where d.unique_patient_no is not null group by fup.patient_id order by m6cd4date desc"|dwhstage|0|PatientBaselineExtract|3|a6221aa4-0e85-11e8-ba89-0ed5f89f718b -38742EB0-5856-E811-8E16-9CB6D0DA773C|Patient Status|NDWH|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select - '' AS SatelliteName, - 0 AS FacilityId, - d.unique_patient_no as PatientID, - d.patient_id as PatientPK, - (select siteCode from kenyaemr_etl.etl_default_facility_info) as SiteCode, - (select FacilityName from kenyaemr_etl.etl_default_facility_info) as FacilityName, - '' as ExitDescription, - 'KenyaEMR' as Emr, - 'Kenya HMIS II' as Project, - max(date(disc.visit_date)) AS ExitDate, - mid(max(concat(visit_date,(case discontinuation_reason - when 159492 then 'Transfer Out' - when 160034 then 'Died' - when 5240 then 'LTFU' - when 819 then 'Stopped Treatment' - else '' end), '' )),20) as ExitReason, - if(e.latest_enrolment_date > greatest(coalesce(max(disc.effective_discontinuation_date),'0000-00-00'),coalesce(max(disc.visit_date),'0000-00-00')),e.latest_enrolment_date,null ) as ReEnrollmentDate, - (case mid(max(concat(date(disc.visit_date),disc.trf_out_verified)),11) when 1065 then 'Yes' when 1066 then 'No' end) as TOVerified, - mid(max(concat(date(disc.visit_date),disc.trf_out_verification_date)),11) as TOVerifiedDate, - disc.date_created as Date_Created, - disc.date_last_modified as Date_Last_Modified - from kenyaemr_etl.etl_patient_program_discontinuation disc - left join (select e.patient_id as patient_id, max(e.visit_date) as latest_enrolment_date, mid(max(concat(e.visit_date,e.patient_type)),11) as patient_type from kenyaemr_etl.etl_hiv_enrollment e - group by e.patient_id) e on e.patient_id = disc.patient_id - join kenyaemr_etl.etl_patient_demographics d on d.patient_id=disc.patient_id - where d.unique_patient_no is not null and disc.program_name='HIV' - group by PatientID - order by disc.visit_date ASC;"|dwhstage|0|PatientStatusExtract|4|a6221aa4-0e85-11e8-ba89-0ed5f89f718b +38742EB0-5856-E811-8E16-9CB6D0DA773C|Patient Status|NDWH|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select '' AS SatelliteName, + 0 AS FacilityId, + d.unique_patient_no as PatientID, + d.patient_id as PatientPK, + i.siteCode as SiteCode, + i.FacilityName as FacilityName, + '' as ExitDescription, + 'KenyaEMR' as Emr, + 'Kenya HMIS II' as Project, + max(date(disc.visit_date)) AS ExitDate, + max(date(disc.effective_discontinuation_date)) AS EffectiveDiscontinuationDate, + mid(max(concat(visit_date, (case discontinuation_reason + when 159492 then 'Transfer Out' + when 160034 then 'Died' + when 5240 then 'LTFU' + when 819 then 'Stopped Treatment' + else '' end), '')), 20) as ExitReason, + if(e.latest_enrolment_date > greatest(coalesce(max(date(disc.effective_discontinuation_date)), '0000-00-00'), + coalesce(max(date(disc.visit_date)), '0000-00-00')), e.latest_enrolment_date, + null) as ReEnrollmentDate, + (case mid(max(concat(date(disc.visit_date), disc.death_reason)), 11) + when 163324 then 'HIV disease resulting in TB' + when 116030 then 'HIV disease resulting in cancer' + when 160159 then 'HIV disease resulting in other infectious and parasitic diseases' + when 160158 then 'Other HIV disease resulting in other diseases or conditions leading to death' + when 133478 then 'Other natural causes not directly related to HIV' + when 145439 then 'Non-communicable diseases such as Diabetes and hypertension' + when 123812 then 'Non-natural causes' + when 42917 then 'Unknown cause' + else '' end) as ReasonForDeath, + (case mid(max(concat(date(disc.visit_date), disc.specific_death_cause)), 11) + when 156673 then 'HIV disease resulting in mycobacterial infection' + when 155010 then 'HIV disease resulting in Kaposis sarcoma' + when 156667 then 'HIV disease resulting in Burkitts lymphoma' + when 115195 then 'HIV disease resulting in other types of non-Hodgkin lymphoma' + when 157593 + then 'HIV disease resulting in other malignant neoplasms of lymphoid and haematopoietic and related tissue' + when 156672 then 'HIV disease resulting in multiple malignant neoplasms' + when 159988 then 'HIV disease resulting in other malignant neoplasms' + when 5333 then 'HIV disease resulting in other bacterial infections' + when 116031 then 'HIV disease resulting in unspecified malignant neoplasms' + when 123122 then 'HIV disease resulting in other viral infections' + when 156669 then 'HIV disease resulting in cytomegaloviral disease' + when 156668 then 'HIV disease resulting in candidiasis' + when 5350 then 'HIV disease resulting in other mycoses' + when 882 + then 'HIV disease resulting in Pneumocystis jirovecii pneumonia - HIV disease resulting in Pneumocystis carinii pneumonia' + when 156671 then 'HIV disease resulting in multiple infections' + when 160159 then 'HIV disease resulting in other infectious and parasitic diseases' + when 171 + then 'HIV disease resulting in unspecified infectious or parasitic disease - HIV disease resulting in infection NOS' + when 156670 + then 'HIV disease resulting in other specified diseases including encephalopathy or lymphoid interstitial pneumonitis or wasting syndrome and others' + when 160160 + then 'HIV disease resulting in other conditions including acute HIV infection syndrome or persistent generalized lymphadenopathy or hematological and immunological abnormalities and others' + when 161548 then 'HIV disease resulting in Unspecified HIV disease' + end) as SpecificDeathReason, + (case mid(max(concat(date(disc.visit_date), disc.trf_out_verified)), 11) + when 1065 then 'Yes' + when 1066 then 'No' end) as TOVerified, + mid(max(concat(date(disc.visit_date), disc.trf_out_verification_date)), 11) as TOVerifiedDate, + mid(max(concat(disc.visit_date, disc.date_died)), 11) as DeathDate, + disc.date_created as Date_Created, + disc.date_last_modified as Date_Last_Modified + from kenyaemr_etl.etl_patient_program_discontinuation disc + left join (select e.patient_id as patient_id, + max(e.visit_date) as latest_enrolment_date, + mid(max(concat(e.visit_date, e.patient_type)), 11) as patient_type + from kenyaemr_etl.etl_hiv_enrollment e + group by e.patient_id) e on e.patient_id = disc.patient_id + join kenyaemr_etl.etl_patient_demographics d on d.patient_id = disc.patient_id + join kenyaemr_etl.etl_default_facility_info i + where d.unique_patient_no is not null + and disc.program_name = 'HIV' + group by PatientID + order by disc.visit_date ASC;"|dwhstage|0|PatientStatusExtract|4|a6221aa4-0e85-11e8-ba89-0ed5f89f718b 3D742EB0-5856-E811-8E16-9CB6D0DA773C|Patient Labs|NDWH|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select distinct '' AS SatelliteName, 0 AS FacilityId, d.unique_patient_no as PatientID, d.patient_id as PatientPK, l.encounter_id as VisitId, CAST(l.visit_date AS DATE) as OrderedByDate,CAST(l.visit_date AS DATE) as ReportedByDate, (select FacilityName from kenyaemr_etl.etl_default_facility_info) as FacilityName, @@ -617,71 +665,101 @@ order by m6cd4date desc"|dwhstage|0|PatientBaselineExtract|3|a6221aa4-0e85-11e8- join concept_name cn on cn.concept_id=l.lab_test and cn.concept_name_type='FULLY_SPECIFIED'and cn.locale='en' join concept c on c.concept_id = l.lab_test left outer join concept_name cn2 on cn2.concept_id=l.test_result and cn2.concept_name_type='FULLY_SPECIFIED' - and cn2.locale='en' where d.unique_patient_no is not null;"|dwhstage|0|PatientLabExtract|5|a6221aa4-0e85-11e8-ba89-0ed5f89f718b -3F742EB0-5856-E811-8E16-9CB6D0DA773C|Patient Pharmacy|NDWH|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select distinct - 'Government' AS Provider, - '' AS SatelliteName, - (select siteCode from kenyaemr_etl.etl_default_facility_info) as FacilityId, - d.unique_patient_no as PatientID, - d.patient_id as PatientPK, - (select FacilityName from kenyaemr_etl.etl_default_facility_info) as FacilityName, - (select siteCode from kenyaemr_etl.etl_default_facility_info) as SiteCode, - ph.visit_id as VisitID, - -- if(cn2.name is not null, cn2.name,cn.name) as Drug, - case - when is_arv=1 then ph.drugreg - else if(cn2.name is not null, cn2.name,cn.name) END as Drug, - ph.visit_date as DispenseDate, - ph.duration AS Duration, - ph.duration AS PeriodTaken, - fup.next_appointment_date as ExpectedReturn, - 'KenyaEMR' as Emr, - 'Kenya HMIS II' as Project, - CASE WHEN is_arv=1 THEN 'ARV' - WHEN is_ctx=1 OR is_dapsone= 1 THEN 'Prophylaxis' END AS TreatmentType, - ph.RegimenLine, - CASE WHEN is_ctx=1 THEN 'CTX' - WHEN is_dapsone =1 THEN 'DAPSON' END AS ProphylaxisType, - ph.date_created as Date_Created, - ph.RegimenChangedSwitched as RegimenChangedSwitched, - ph.RegimenChangeSwitchReason as RegimenChangeSwitchReason, - ph.StopRegimenReason as StopRegimenReason, - ph.StopRegimenDate as StopRegimenDate, - GREATEST(COALESCE(ph.date_last_modified, d.date_last_modified), COALESCE(d.date_last_modified, ph.date_last_modified)) as Date_Last_Modified - from (SELECT * FROM ( - ( select patient_id, visit_id,visit_date,encounter_id,drug,is_arv, is_ctx,is_dapsone,drug_name as drugreg,frequency, - '' as DispenseDate,duration, duration PeriodTaken, - ''ExpectedReturn, CASE WHEN is_ctx=1 OR is_dapsone= 1 THEN 'Prophylaxis' END AS TreatmentType,'' as RegimenLine,'' as regimen, - CASE WHEN is_ctx=1 THEN 'CTX' - WHEN is_dapsone =1 THEN 'DAPSON' END AS ProphylaxisType,'' as previousRegimen,'' as RegimenChangedSwitched,'' as RegimenChangeSwitchReason, '' as StopRegimenReason,'' as StopRegimenDate,'' as prev_Regimen,/*'' as regimen,*/ - ph.date_created, ph.date_last_modified from kenyaemr_etl.etl_pharmacy_extract ph - left outer join concept_name cn2 on cn2.concept_id=ph.drug and cn2.concept_name_type='SHORT' - and cn2.locale='en' where is_ctx=1 OR is_dapsone= 1 - order by patient_id,DispenseDate) - UNION - (SELECT e.patient_id as patient_id,'' as visit_id,e.visit_date,e.encounter_id,regimen drug,1 as is_arv, 0 as is_ctx, 0 as is_dapsone, regimen_name as drugreg, '' frequency, date_started as DispenseDate,''duration,''PeriodTaken,''ExpectedReturn, 'ARV' AS TreatmentType,e.regimen_line as regimen_line, - e.regimen as regimen,'' as ProphylaxisType, - @prev_regimen previousRegimen,coalesce(@s := (if(ifnull(@prev_regimen_line,'')<>regimen_line and discontinued=1,'Change',NULL)),(if(@prev_regimen<>regimen and discontinued=1,'Switch',NULL))) as RegimenChangedSwitched, - (case reason_discontinued when 160559 then 'Risk of pregnancy' when 160561 then 'New drug available' - when 160567 then 'New diagnosis of Tuberculosis' when 160569 then 'Virological failure' - when 159598 then 'Non-compliance with treatment or therapy' when 1754 then 'Drugs out of stock' - when 1434 then 'Pregnancy' when 1253 then 'Completed PMTCT' when 843 then 'Clinical treatment failure' - when 160566 then 'Immunological failure' - when 5622 then 'Other'else '' end) as RegimenChangeSwitchReason, - if(regimen_stopped = 1260, (case reason_discontinued when 102 then 'Drug toxicity' end),null) as StopRegimenReason,if(regimen_stopped= 1260,date_discontinued,NULL) as StopRegimenDate, - @prev_regimen := e.regimen prev_regimen,'' as date_created, ''as date_last_modified - FROM kenyaemr_etl.etl_drug_event e , (SELECT @s := 0,@prev_regimen := -1, @x :=0 ,@prev_regimen_line := -1) s - ORDER BY e.patient_id,e.date_started) - )A order by A.DispenseDate,A.patient_id)ph - join kenyaemr_etl.etl_patient_demographics d on d.patient_id=ph.patient_id - left outer join concept_name cn on cn.concept_id=ph.drug and cn.concept_name_type='FULLY_SPECIFIED' - and cn.locale='en' - left outer join concept_name cn2 on cn2.concept_id=ph.drug and cn2.concept_name_type='SHORT' - and cn.locale='en' - left outer join kenyaemr_etl.etl_patient_hiv_followup fup on fup.encounter_id=ph.encounter_id - and fup.patient_id=ph.patient_id - where unique_patient_no is not null and (is_arv=1 OR is_ctx=1 OR is_dapsone =1 ) and drugreg is not null - order by ph.patient_id,ph.DispenseDate;"|dwhstage|0|PatientPharmacyExtract|6|a6221aa4-0e85-11e8-ba89-0ed5f89f718b + and cn2.locale='en' where d.unique_patient_no is not null;"|dwhstage|0|PatientLabExtract|5|a6221aa4-0e85-11e8-ba89-0ed5f89f718b +3F742EB0-5856-E811-8E16-9CB6D0DA773C|Patient Pharmacy|NDWH|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select 'Government' AS Provider, + '' AS SatelliteName, + (select siteCode from kenyaemr_etl.etl_default_facility_info) as FacilityId, + d.unique_patient_no as PatientID, + d.patient_id as PatientPK, + (select FacilityName from kenyaemr_etl.etl_default_facility_info) as FacilityName, + (select siteCode from kenyaemr_etl.etl_default_facility_info) as SiteCode, + ph.visit_id as VisitID, + Drug, + ph.visit_date as DispenseDate, + ph.duration AS Duration, + ph.duration AS PeriodTaken, + fup.next_appointment_date as ExpectedReturn, + 'KenyaEMR' as Emr, + 'Kenya HMIS II' as Project, + CASE WHEN is_arv=1 THEN 'ARV' + WHEN is_ctx=1 OR is_dapsone= 1 THEN 'Prophylaxis' END AS TreatmentType, + ph.RegimenLine, + CASE WHEN is_ctx=1 THEN 'CTX' + WHEN is_dapsone =1 THEN 'DAPSON' END AS ProphylaxisType, + CAST(now() as Date) AS DateExtracted, + ph.date_created, + ph.RegimenChangedSwitched as RegimenChangedSwitched, + ph.RegimenChangeSwitchReason as RegimenChangeSwitchReason, + ph.StopRegimenReason as StopRegimenReason, + ph.StopRegimenDate as StopRegimenDate, + GREATEST(COALESCE(ph.date_last_modified, d.date_last_modified), COALESCE(d.date_last_modified, ph.date_last_modified)) as Date_Last_Modified + from (SELECT * FROM ( + ( select patient_id, visit_id,visit_date,encounter_id,cast(cn2.name AS CHAR CHARACTER SET latin1) as drug,is_arv, is_ctx,is_dapsone,drug_name as drugreg,frequency, + '' as DispenseDate,duration_in_days as duration, '' as PeriodTaken, + '' ExpectedReturn, CASE WHEN is_ctx=1 OR is_dapsone= 1 THEN 'Prophylaxis' END AS TreatmentType,'' as RegimenLine,'' as regimen, + CASE WHEN is_ctx=1 THEN 'CTX' + WHEN is_dapsone =1 THEN 'DAPSON' END AS ProphylaxisType,'' as previousRegimen,'' as RegimenChangedSwitched,'' as RegimenChangeSwitchReason, '' as StopRegimenReason,'' as StopRegimenDate,'' as prev_Regimen, + ph.date_created, ph.date_last_modified from kenyaemr_etl.etl_pharmacy_extract ph + left outer join concept_name cn2 on cn2.concept_id=ph.drug and cn2.concept_name_type='SHORT' + and cn2.locale='en' where is_arv=1 + order by patient_id,DispenseDate) + UNION ALL + (SELECT e.patient_id as patient_id,'' as visit_id,e.visit_date,e.encounter_id,regimen drug,1 as is_arv, 0 as is_ctx, 0 as is_dapsone, regimen_name as drugreg, '' frequency, date_started as DispenseDate,''duration,''PeriodTaken,''ExpectedReturn, 'ARV' AS TreatmentType,e.regimen_line as regimen_line, + e.regimen as regimen,'' as ProphylaxisType, + @prev_regimen previousRegimen,coalesce(@s := (if(ifnull(@prev_regimen_line,'')<>regimen_line and discontinued=1,'Switch',NULL)),(if(@prev_regimen<>regimen and discontinued=1,'Substitution',NULL))) as RegimenChangedSwitched, + (case reason_discontinued when 160559 then 'Risk of pregnancy' when 160561 then 'New drug available' + when 160567 then 'New diagnosis of Tuberculosis' when 160569 then 'Virological failure' + when 159598 then 'Non-compliance with treatment or therapy' when 1754 then 'Drugs out of stock' + when 1434 then 'Pregnancy' when 1253 then 'Completed PMTCT' when 843 then 'Clinical treatment failure' + when 160566 then 'Immunological failure' + when 102 then 'Drug toxicity' + when 5622 then 'Other'else '' end) as RegimenChangeSwitchReason, + if(regimen_stopped = 1260, (case reason_discontinued + when 102 then 'Drug toxicity' + when 160567 then 'New diagnosis of Tuberculosis' + when 160569 then 'Virologic failure' + when 159598 then 'Non-compliance with treatment or therapy' + when 1754 then 'Medications unavailable' + when 160016 then 'Planned Treatment interruption' + when 1434 then 'Currently pregnant' + when 1253 then 'Completed PMTCT' + when 843 then 'Regimen failure' + when 5622 then 'Other' + when 160559 then 'Risk of pregnancy' + when 160561 then 'New drug available' + else '' end),'') as StopRegimenReason, + if(discontinued = 1, date_discontinued, NULL) as StopRegimenDate, + @prev_regimen := e.regimen prev_regimen,'' as date_created, ''as date_last_modified + FROM kenyaemr_etl.etl_drug_event e , (SELECT @s := 0,@prev_regimen := -1, @x :=0 ,@prev_regimen_line := -1) s + where e.program = 'HIV' + ORDER BY e.patient_id,e.date_started) + UNION ALL + (select patient_id,visit_id,visit_date,encounter_id, drug_short_name as drug, 1 as is_arv, '' as is_ctx, + '' as is_dapsone, drug_name as drugreg, frequency, + visit_date as DispenseDate, + (case duration_units + when 'DAYS' then duration + when 'MONTHS' then duration * 30 + when 'WEEKS' then duration * 7 end) as duration, + '' as PeriodTaken,'' as ExpectedReturn, + '' AS TreatmentType,'' as RegimenLine, + drug_name as regimen,'' AS ProphylaxisType, + '' as previousRegimen,'' as RegimenChangedSwitched, + '' as RegimenChangeSwitchReason,'' as StopRegimenReason,'' as StopRegimenDate, + '' as prev_Regimen,do.date_created, + do.date_last_modified + from kenyaemr_etl.etl_drug_order do + order by do.patient_id, DispenseDate) + ) A order by A.DispenseDate,A.patient_id)ph + join kenyaemr_etl.etl_patient_demographics d on d.patient_id=ph.patient_id + left outer join concept_name cn on cn.concept_id=ph.drug and cn.concept_name_type='FULLY_SPECIFIED' + and cn.locale='en' + left outer join concept_name cn2 on cn2.concept_id=ph.drug and cn2.concept_name_type='SHORT' + and cn.locale='en' + left outer join kenyaemr_etl.etl_patient_hiv_followup fup on fup.encounter_id=ph.encounter_id + and fup.patient_id=ph.patient_id + where unique_patient_no is not null and drugreg is not null + order by ph.patient_id,ph.DispenseDate;"|dwhstage|0|PatientPharmacyExtract|6|a6221aa4-0e85-11e8-ba89-0ed5f89f718b 40742EB0-5856-E811-8E16-9CB6D0DA773C|Patient Visit|NDWH|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select distinct '' AS SatelliteName, 0 AS FacilityId, d.unique_patient_no as PatientID, @@ -738,7 +816,7 @@ order by m6cd4date desc"|dwhstage|0|PatientBaselineExtract|3|a6221aa4-0e85-11e8- when 1065 then 'Yes' when 1066 then 'No' when 1175 then 'N/A' end) as EverHadMenses, - null as Breastfeeding, + if(d.gender = 'F',(case fup.breastfeeding when 1065 then 'Yes' when 1066 then 'No' end),'N/A') as Breastfeeding, (case menopausal when 113928 then 'Yes' end) as Menopausal, (case prophylaxis_given when 105281 then 'Cotrimoxazole' @@ -882,6 +960,8 @@ order by m6cd4date desc"|dwhstage|0|PatientBaselineExtract|3|a6221aa4-0e85-11e8- case when fup.next_appointment_date < '1990-01-01' then null else CAST(fup.next_appointment_date AS DATE) end AS NextAppointmentDate, + case when fup.refill_date < '1990-01-01' then null + else CAST(fup.refill_date AS DATE) end AS RefillDate, 'KenyaEMR' as Emr, 'Kenya HMIS II' as Project, CAST(fup.substitution_first_line_regimen_date AS DATE) AS SubstitutionFirstlineRegimenDate, @@ -925,7 +1005,7 @@ from kenyaemr_etl.etl_patient_demographics d where de.discontinued is null group by de.patient_id)de on fup.patient_id = de.patient_id where d.unique_patient_no is not null - and fup.visit_date > '1990-01-01' + and fup.visit_date > '1990-01-01' and fup.next_appointment_date is not null and fup.visit_id is not null;"|dwhstage|0|PatientVisitExtract|7|a6221aa4-0e85-11e8-ba89-0ed5f89f718b 48742EB0-5856-E811-8E16-9CB6D0DA773C|Master Patient Index|CBS|a62216ee-0e85-11e8-ba89-0ed5f89f718b|"SELECT DISTINCT *, LEFT([Gender],1)+[sxFirstName]+[sxLastName]+LTRIM(RTRIM(STR(YEAR(X.DOB)))) AS [sxPKValue], @@ -1560,6 +1640,8 @@ on h.PatientPK=p.PatientPK order by KeyPopulationType"|DWHStage|1|HtsClient|1|A6221983-0E85-11E8-BA89-0ED5F89F718B 8578ad00-c34b-11e9-9cb5-2a2ae2dbcce4|Hts Clients|HTS|A6221856-0E85-11E8-BA89-0ED5F89F718B|"SELECT distinct d.patient_id as PatientPK, + d.national_unique_patient_identifier as NUPI, + pkv.PKV as Pkv, (select FacilityName from kenyaemr_etl.etl_default_facility_info) as FacilityName, (select siteCode from kenyaemr_etl.etl_default_facility_info) as SiteCode, 'KenyaEMR' as Emr, @@ -1578,8 +1660,42 @@ FROM kenyaemr_etl.etl_patient_demographics d INNER JOIN kenyaemr_etl.etl_hts_test t ON d.patient_id=t.patient_id -LEFT JOIN - location_attribute SC ON SC.location_id = t.encounter_location AND SC.attribute_type_id=1 +inner join (select x.patient_id as patient_id, +x.sxFirstName, +x.sxLastname, +x.sxMiddleName, +x.dmFirstName, +x.dmLastName, +x.dmMiddleName, +x.Gender, +x.DOB, +CASE +WHEN locate(';', dmLastName) > 0 THEN CONCAT( +CAST(LEFT(Gender, 1) AS CHAR CHARACTER SET utf8), +CAST(sxFirstName AS CHAR CHARACTER SET utf8), CAST( +SUBSTRING(dmLastName, locate(';', dmLastName) + 1, LENGTH(dmLastName)) +AS +CHAR CHARACTER SET utf8), +CAST(LTRIM(RTRIM(DATE_FORMAT(DOB, '%Y'))) AS CHAR CHARACTER SET utf8) +) +ELSE CONCAT( +CAST(LEFT(Gender, 1)AS CHAR CHARACTER SET utf8), +CAST(sxFirstName AS CHAR CHARACTER SET utf8), +CAST(dmLastName AS CHAR CHARACTER SET utf8), +CAST(LTRIM(RTRIM(DATE_FORMAT(DOB, '%Y'))) AS CHAR CHARACTER SET utf8) +) +END AS PKV +from (SELECT patient_id, +SOUNDEX(UPPER(REPLACE(given_name, '0', 'O'))) AS sxFirstName, +SOUNDEX(UPPER(REPLACE(family_name, '0', 'O'))) AS sxLastName, +SOUNDEX(UPPER(REPLACE(middle_name, '0', 'O'))) AS sxMiddleName, +fn_getPatientNameDoubleMetaphone(UPPER(REPLACE(given_name, '0', 'O'))) AS dmFirstName, +fn_getPatientNameDoubleMetaphone(UPPER(REPLACE(family_name, '0', 'O'))) AS dmLastName, +fn_getPatientNameDoubleMetaphone(UPPER(REPLACE(middle_name, '0', 'O'))) AS dmMiddleName, +Gender, +DOB +FROM kenyaemr_etl.etl_patient_demographics)x)pkv on pkv.patient_id = d.patient_id +LEFT JOIN location_attribute SC ON SC.location_id = t.encounter_location AND SC.attribute_type_id=1 LEFT JOIN location SN ON SN.location_id =t.encounter_location LEFT JOIN person_address A ON A.person_id=d.patient_id @@ -1929,6 +2045,109 @@ left join concept_name pnsApprocah ON pnsApprocah.concept_id = ohpc.pns_approach +7bb8b081-c206-49ba-aac0-48bf14fdc84e|Hts Eligibility Screening|HTS|A6221856-0E85-11E8-BA89-0ED5F89F718B|"SELECT t.patient_id as PatientPK, + (select siteCode from kenyaemr_etl.etl_default_facility_info) as SiteCode, + (select FacilityName from kenyaemr_etl.etl_default_facility_info) as FacilityName, + 'KenyaEMR' as Emr, + 'Kenya HMIS II' as Project, + demographics.openmrs_id as HtsNumber, + t.visit_id as VisitID, + t.encounter_id as EncounterId, + t.visit_date as VisitDate, + '' as ForcedSex, + case t.population_type + when 164928 then 'General Population' + when 164929 then 'Key Population' + when 138643 + then 'Priority Population' end as PopulationType, + t.key_population_type as KeyPopulation, + t.priority_population_type as PriorityPopulation, + case t.department + when 160542 then 'OPD:Out-patient department' + when 5485 then 'IPD:In-patient department' + when 160473 then 'Emergency' + when 160538 then 'PMTCT' + when 159940 + then 'VCT' end as Department, + case t.patient_type + when 164163 then 'HP:Hospital Patient' + when 164953 + then 'NP:Non-Hospital Patient' end as PatientType, + case t.is_health_worker when 1065 then 'Yes' when 1066 then 'No' end as IsHealthWorker, + t.relationship_with_contact as RelationshipWithContact, + case t.mother_hiv_status when 703 then 'Positive' when 664 then 'Negative' when 1067 then 'Unknown' end as MothersStatus, + case t.tested_hiv_before when 1065 then 'Yes' when 1066 then 'No' end as TestedHIVBefore, + case t.who_performed_test + when 5619 then 'HTS Provider' + when 164952 + then 'Self Tested' end as WhoPerformedTest, + (case t.test_results + when 703 then 'Positive' + when 664 then 'Negative' + when 1067 then 'Unknown' + else '' end) as ResultOfHIV, + if(t.who_performed_test = 164952,t.date_tested,null) as DateTestedSelf, + if(t.who_performed_test = 164952,case t.test_results + when 703 then 'Positive' + when 664 then 'Negative' + when 1067 then 'Unknown' + else '' end,null) as ResultOfHIVSelf, + if(t.who_performed_test = 5619,t.date_tested, null) as DateTestedProvider, + case t.started_on_art when 1065 then 'Yes' when 1066 then 'No' end as StartedOnART, + t.upn_number as CCCNumber, + case t.ever_had_sex when 1 then 'Yes' when 0 then 'No' end as EverHadSex, + case t.sexually_active when 1065 then 'Yes' when 1066 then 'No' end as SexuallyActive, + case t.new_partner when 1065 then 'Yes' when 1066 then 'No' end as NewPartner, + (case t.partner_hiv_status + when 703 then 'Positive' + when 664 then 'Negative' + when 1067 then 'Unknown' + else '' end) as PartnerHIVStatus, + case t.couple_discordant when 1065 then 'Yes' when 1066 then 'No' end as CoupleDiscordant, + case t.multiple_partners when 1 then 'Yes' when 0 then 'No' end as MultiplePartners, + t.number_partners as NumberOfPartners, + case t.alcohol_sex + when 1066 then 'Not at all' + when 1385 then 'Sometimes' + when 165027 + then 'Always' end as AlcoholSex, + case t.money_sex when 1065 then 'Yes' when 1066 then 'No' end as MoneySex, + case t.condom_burst when 1065 then 'Yes' when 1066 then 'No' end as CondomBurst, + case t.unknown_status_partner when 1065 then 'Yes' when 1066 then 'No' end as UnknownStatusPartner, + case t.known_status_partner when 163289 then 'Yes' when 1066 then 'No' end as KnownStatusPartner, + case t.pregnant when 1065 then 'Yes' when 1066 then 'No' end as Pregnant, + case t.breastfeeding_mother when 1065 then 'Yes' when 1066 then 'No' end as BreastfeedingMother, + case t.experienced_gbv when 1065 then 'Yes' when 1066 then 'No' end as ExperiencedGBV, + t.type_of_gbv as TypeGBV, + t.service_received as ReceivedServices, + case t.currently_on_prep when 1065 then 'Yes' when 1066 then 'No' end as CurrentlyOnPrEP, + case t.recently_on_pep when 1 then 'Yes' when 0 then 'No' end as CurrentlyOnPEP, + case t.recently_had_sti when 1065 then 'Yes' when 1066 then 'No' end as CurrentlyHasSTI, + case t.tb_screened when 1065 then 'Yes' when 1066 then 'No' end ScreenedTB, + case t.cough when 159799 then 'Yes' when 1066 then 'No' end as Cough, + case t.fever when 1494 then 'Yes' when 1066 then 'No' end as Fever, + case t.weight_loss when 832 then 'Yes' when 1066 then 'No' end as WeightLoss, + case t.night_sweats when 133027 then 'Yes' when 1066 then 'No' end as NightSweats, + case t.contact_with_tb_case when 124068 then 'Yes' when 1066 then 'No' end as ContactWithTBCase, + case t.lethargy when 116334 then 'Yes' when 1066 then 'No' end as Lethargy, + case t.tb_status when 1660 then 'No TB signs' when 142177 then 'Presumed TB' when 1662 then 'TB Confirmed' end as TBStatus, + case t.shared_needle when 1065 then 'Yes' when 1066 then 'No' end as SharedNeedle, + case t.needle_stick_injuries when 153574 then 'Yes' when 1066 then 'No' end as NeedleStickInjuries, + case t.traditional_procedures when 1065 then 'Yes' when 1066 then 'No' end as TraditionalProcedures, + t.child_reasons_for_ineligibility as ChildReasonsForIneligibility, + '' as AssessmentOutcome, + case t.eligible_for_test when 1065 then 'Yes' when 1066 then 'No' end as EligibleForTest, + t.reasons_for_ineligibility as ReasonsForIneligibility, + t.specific_reason_for_ineligibility as SpecificReasonForIneligibility, + case t.referred_for_testing when 1065 then 'Yes' when 1066 then 'No' end as ReferredForTesting, + t.date_created as DateCreated, + t.date_last_modified as DateLastModified + FROM kenyaemr_etl.etl_hts_eligibility_screening t + inner join kenyaemr_etl.etl_patient_demographics demographics on t.patient_id = demographics.patient_id + LEFT JOIN openmrs.location_attribute SC ON SC.location_id = t.location_id AND SC.attribute_type_id = 1 + LEFT JOIN openmrs.location SN ON SN.location_id = t.location_id group by t.encounter_id;"|DWHStage|1|HtsEligibilityExtract|8|A6221AA4-0E85-11E8-BA89-0ED5F89F718B + + 290bd21c-3089-11ea-978f-2e728ce88125|Master Patient Index|CBS|926f49b8-305d-11ea-978f-2e728ce88125|"SELECT * , LEFT([Gender],1)+[sxFirstName]+[sxLastName]+LTRIM(RTRIM(STR(YEAR(X.DOB)))) AS [sxPKValue] @@ -4724,6 +4943,7 @@ UNION join kenyaemr_etl.etl_default_facility_info s where d.disc_patient is null or d.Outcome_date < e.latest_enrolment_date;"|dwhstage|0|DepressionScreeningExtract|13|a6221aa4-0e85-11e8-ba89-0ed5f89f718b 2bbeec23-7754-11eb-9439-0242ac130002|Contact Listing|NDWH|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select v.patient_related_to as PatientPK, + v.patient_id as ContactPatientPK, s.siteCode as SiteCode, de.unique_patient_no as PatientID, 'KenyaEMR' as Emr,'Kenya HMIS II' as Project, @@ -4842,75 +5062,109 @@ from kenyaemr_etl.etl_otz_activity a 7c2e4f6e-8728-11eb-8dcd-0242ac130003|Patient Pharmacy|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|"select * from NDWH_Patients_PHARMACY_EXTRACT"|dwhstage|0|PatientPharmacyExtract|6|a6221aa7-0E85-11E8-BA89-0ED5F89F718B 7c2e51ee-8728-11eb-8dcd-0242ac130003|Patient Visits|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|"select * from NDWH_Patients_VISIT_Extract"|dwhstage|0|PatientVisitExtract|7|a6221aa7-0E85-11E8-BA89-0ED5F89F718B 7c2e52c0-8728-11eb-8dcd-0242ac130003|Patient Adverse Events|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|"select * from NDWH_Patients_Adverse_Events"|dwhstage|0|PatientAdverseEventExtract|8|a6221aa7-0E85-11E8-BA89-0ED5F89F718B +7c2e63c0-8728-11eb-8dcd-0242ac130003|Allergies Chronic Illness|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|SELECT * from NDWH_AllergiesChronicIllness|dwhstage|0|AllergiesChronicIllnessExtract|11.0|a6221aa7-0e85-11e8-ba89-0ed5f89f718b +7c2e53c0-8728-11eb-8dcd-0242ac130003|IPT|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|SELECT * from NDWH_TPT|dwhstage|0|IptExtract|12.0|a6221aa7-0e85-11e8-ba89-0ed5f89f718b +7c2e54c0-8728-11eb-8dcd-0242ac130003|Depression Screening|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|SELECT * from NDWH_DepressionScreening|dwhstage|0|DepressionScreeningExtract|13.0|a6221aa7-0e85-11e8-ba89-0ed5f89f718b +7c2e55c0-8728-11eb-8dcd-0242ac130003|Contact Listing|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|SELECT * from NDWH_ContactListing|dwhstage|0|ContactListingExtract|14.0|a6221aa7-0e85-11e8-ba89-0ed5f89f718b +7c2e56c0-8728-11eb-8dcd-0242ac130003|GBV Screening|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|SELECT * from NDWH_GBVScreening|dwhstage|0|GbvScreeningExtract|15.0|a6221aa7-0e85-11e8-ba89-0ed5f89f718b +7c2e57c0-8728-11eb-8dcd-0242ac130003|Enhanced Adherence Counselling|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|SELECT * from NDWH_EnAdhCounselling|dwhstage|0|EnhancedAdherenceCounsellingExtract|16.0|a6221aa7-0e85-11e8-ba89-0ed5f89f718b +7c2e58c0-8728-11eb-8dcd-0242ac130003|Drug and Alcohol Screening|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|SELECT * from NDWH_DrugAlcoholScr|dwhstage|0|DrugAlcoholScreeningExtract|17.0|a6221aa7-0e85-11e8-ba89-0ed5f89f718b +7c2e59c0-8728-11eb-8dcd-0242ac130003|OVC|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|SELECT * from NDWH_OVC|dwhstage|0|OvcExtract|18.0|a6221aa7-0e85-11e8-ba89-0ed5f89f718b +7c2e60c0-8728-11eb-8dcd-0242ac130003|OTZ|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|SELECT * from NDWH_OTZ|dwhstage|0|OtzExtract|19.0|a6221aa7-0e85-11e8-ba89-0ed5f89f718b +7c2e61c0-8728-11eb-8dcd-0242ac130003|Covid|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|SELECT * from NDWH_COVID|dwhstage|0|CovidExtract|20.0|a6221aa7-0e85-11e8-ba89-0ed5f89f718b +7c2e62c0-8728-11eb-8dcd-0242ac130003|Defaulter Tracing|NDWH|a6221861-0e85-11e8-ba89-0ed5f89f718b|SELECT * from NDWH_DefaulterTracing|dwhstage|0|DefaulterTracingExtract|21.0|a6221aa7-0e85-11e8-ba89-0ed5f89f718b +A926B327-D042-4459-963B-523879C47347|Hts Clients|HTS|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsClient|1.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +0C82AA9F-C58D-4BEA-996B-00EE33286CAD|Hts Test Kits|HTS|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsTestKits|4.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +EEE41260-E92F-47CB-8AC8-E47281B8A8C4|Hts Client Linkage|HTS|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsClientLinkage|3.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +A72B9001-7109-4D66-8938-9F41D1779D95|Hts Partner Notification Services|HTS|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsPartnerNotificationServices|7.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +79527CF5-6DA1-439E-B32C-49F7677E0A0F|Hts Client Tracing|HTS|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsClientTracing|5.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +838E36EF-812D-4953-88E6-3F1DD5EC4531|Hts Partner Tracing|HTS|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsPartnerTracing|6.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +88C4C1CF-703F-473B-8A4C-44B94A8DD17C|Hts Client Tests|HTS|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsClientTests|2.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +3B3894F4-04B0-4141-896D-FA9F206C0DD1|Migration|MGS|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|MgsStage|1|MetricMigrationExtract|1.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +4B7B10F2-FF7E-452C-A67D-76A37E16B3EB|Hei|MNCH|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|TempHeiExtract|0|HeiExtract|28.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +F14362A9-C5EF-4BAE-91B6-67D4AA808EBC|Mnch Enrolment|MNCH|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|TempMnchEnrolmentExtract|0|MnchEnrolmentExtract|20.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +42CFECA5-4ACF-48A1-B72B-AE0B32A09503|Pnc Visit|MNCH|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|TempPncVisitExtract|0|PncVisitExtract|24.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +25E0B476-C284-4BBD-81D2-1AB3DF59A094|Mnch Art|MNCH|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|TempMnchArtExtract|0|MnchArtExtract|21.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +69474AB7-EACB-4531-8A32-B70F34874688|Mother Baby Pair|MNCH|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|TempMotherBabyPairExtract|0|MotherBabyPairExtract|25.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +2775CDFE-A796-41DE-AACC-EDC7EE5A18D9|Anc Visit|MNCH|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|TempAncVisitExtract|0|AncVisitExtract|22.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +A91D30FB-40C1-4453-903D-4E687FF5E20D|Mnch Patient|MNCH|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|TempPatientMnchExtract|1|PatientMnchExtract|19.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +84AB9AE3-6225-4937-9DBB-0B4B257AE676|Cwc Enrolment|MNCH|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|TempCwcEnrolmentExtract|0|CwcEnrolmentExtract|26.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +2D5489D0-2721-4D03-A869-5A10700ABD19|Cwc Visit|MNCH|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|TempCwcVisitExtract|0|CwcVisitExtract|27.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +5FF64729-FDA7-4065-A909-E059B8DD5A1A|Mnch Labs|MNCH|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|TempMnchLabExtract|0|MnchLabExtract|29.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +830568D9-2C97-46F4-B5FB-3AA83480BFBF|Mat Visit|MNCH|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|TempMatVisitExtract|0|MatVisitExtract|23.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B +DD2E320D-D68F-4F81-819E-2D6E32836105|Indicators|MTS|A6221861-0E85-11E8-BA89-0ED5F89F718B|""|Indicator|1|IndicatorExtract|1.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B - -82650e9a-9db2-11eb-a8b3-0242ac130003|Mnch Patient|MNCH|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select distinct * from - (select pkv.pkv as Pkv, - d.patient_id as PatientPK, - i.siteCode as SiteCode, - d.openmrs_id as PatientMnchID, - d.hei_no as PatientHeiID, - 'KenyaEMR' as Emr, - 'Kenya HMIS II' as Project, - i.FacilityName as FacilityName, - 0 as FacilityId, - (case d.Gender when 'F' then 'Female' when 'M' then 'Male' end) as Gender, - d.DOB as DOB, - coalesce(c.first_hei_enrolment_date, m.first_mch_enrolment_date) as FirstEnrollmentAtMnch, - d.occupation as Occupation, - d.marital_status as MaritalStatus, - d.education_level as EducationLevel, - a.county as PatientResidentCounty, - a.sub_county as PatientResidentSubCounty, - a.ward as PatientResidentWard, - (case e.in_school when 1 then 'Yes' when 2 then 'No' end) as Inschool - from kenyaemr_etl.etl_patient_demographics d - left join (select m.patient_id, min(m.visit_date) as first_mch_enrolment_date - from kenyaemr_etl.etl_mch_enrollment m - group by m.patient_id)m on d.patient_id = m.patient_id - left join (select c.patient_id, min(c.visit_date) as first_hei_enrolment_date - from kenyaemr_etl.etl_hei_enrollment c - group by c.patient_id)c on d.patient_id = c.patient_id - left join (select a.patient_id,max(a.county) county, max(a.sub_county) sub_county, max(a.ward) ward from kenyaemr_etl.etl_person_address a group by patient_id)a - on d.patient_id = a.patient_id - left join (select * from kenyaemr_etl.etl_hiv_enrollment e)e on d.patient_id = e.patient_id - inner join (select x.patient_id as patient_id, - x.sxFirstName, - x.sxLastname, - x.sxMiddleName, - x.dmFirstName, - x.dmLastName, - x.dmMiddleName, - x.Gender, - x.DOB, - CASE - WHEN locate(';', dmLastName) > 0 THEN CONCAT( - CAST(LEFT(Gender, 1) AS CHAR CHARACTER SET utf8), - CAST(sxFirstName AS CHAR CHARACTER SET utf8), CAST( - SUBSTRING(dmLastName, locate(';', dmLastName) + 1, LENGTH(dmLastName)) - AS - CHAR CHARACTER SET utf8), - CAST(LTRIM(RTRIM(DATE_FORMAT(DOB, '%Y'))) AS CHAR CHARACTER SET utf8) - ) - ELSE CONCAT( - CAST(LEFT(Gender, 1)AS CHAR CHARACTER SET utf8), - CAST(sxFirstName AS CHAR CHARACTER SET utf8), - CAST(dmLastName AS CHAR CHARACTER SET utf8), - CAST(LTRIM(RTRIM(DATE_FORMAT(DOB, '%Y'))) AS CHAR CHARACTER SET utf8) - ) - END AS PKV - from (SELECT patient_id, - SOUNDEX(UPPER(REPLACE(given_name, '0', 'O'))) AS sxFirstName, - SOUNDEX(UPPER(REPLACE(family_name, '0', 'O'))) AS sxLastName, - SOUNDEX(UPPER(REPLACE(middle_name, '0', 'O'))) AS sxMiddleName, - fn_getPatientNameDoubleMetaphone(UPPER(REPLACE(given_name, '0', 'O'))) AS dmFirstName, - fn_getPatientNameDoubleMetaphone(UPPER(REPLACE(family_name, '0', 'O'))) AS dmLastName, - fn_getPatientNameDoubleMetaphone(UPPER(REPLACE(middle_name, '0', 'O'))) AS dmMiddleName, - Gender, - DOB - FROM kenyaemr_etl.etl_patient_demographics)x)pkv on pkv.patient_id = d.patient_id - join kenyaemr_etl.etl_default_facility_info i - where m.patient_id is not null or c.patient_id is not null)x"|TempPatientMnchExtract|1|PatientMnchExtract|19|a6221aa4-0e85-11e8-ba89-0ed5f89f718b +82650e9a-9db2-11eb-a8b3-0242ac130003|Mnch Patient|MNCH|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select pkv.pkv as PKV, + d.patient_id as PatientPK, + d.national_unique_patient_identifier as NUPI, + i.siteCode as SiteCode, + d.openmrs_id as PatientMNCHID, + d.hei_no as PatientHEIID, + 'KenyaEMR' as Emr, + 'Kenya HMIS II' as Project, + i.FacilityName as FacilityName, + 0 as FacilityId, + (case d.Gender when 'F' then 'Female' when 'M' then 'Male' end) as Gender, + d.DOB as DOB, + coalesce(c.hei_enrolment_date, m.mch_enrolment_date) as FirstEnrollmentAtMnch, + coalesce(c.hei_encounter_id, m.mch_encounter_id) as EncounterId, + d.occupation as Occupation, + d.marital_status as MaritalStatus, + d.education_level as EducationLevel, + a.county as PatientResidentCounty, + a.sub_county as PatientResidentSubCounty, + a.ward as PatientResidentWard, + (case e.in_school when 1 then 'Yes' when 2 then 'No' end) as Inschool, + d.date_created as Date_Created, + d.date_last_modified as Date_Last_Modified + from kenyaemr_etl.etl_patient_demographics d + left join (select m.patient_id, min(date(m.visit_date)) as mch_enrolment_date,mid(min(concat(date(m.visit_date),m.encounter_id)),11) as mch_encounter_id + from kenyaemr_etl.etl_mch_enrollment m group by m.patient_id)m on d.patient_id = m.patient_id + left join (select c.patient_id, min(date(c.visit_date)) as hei_enrolment_date, mid(min(concat(date(c.visit_date),c.encounter_id)),11) as hei_encounter_id + from kenyaemr_etl.etl_hei_enrollment c group by c.patient_id)c on d.patient_id = c.patient_id + left join (select a.patient_id, a.county, a.sub_county, a.ward from kenyaemr_etl.etl_person_address a)a + on d.patient_id = a.patient_id + left join (select e.patient_id as patient_id, e.in_school as in_school from kenyaemr_etl.etl_hiv_enrollment e)e + on d.patient_id = e.patient_id + inner join (select x.patient_id as patient_id, + x.sxFirstName, + x.sxLastname, + x.sxMiddleName, + x.dmFirstName, + x.dmLastName, + x.dmMiddleName, + x.Gender, + x.DOB, + CASE + WHEN locate(';', dmLastName) > 0 THEN CONCAT( + CAST(LEFT(Gender, 1) AS CHAR CHARACTER SET utf8), + CAST(sxFirstName AS CHAR CHARACTER SET utf8), CAST( + SUBSTRING(dmLastName, locate(';', dmLastName) + 1, LENGTH(dmLastName)) + AS + CHAR CHARACTER SET utf8), + CAST(LTRIM(RTRIM(DATE_FORMAT(DOB, '%Y'))) AS CHAR CHARACTER SET utf8) + ) + ELSE CONCAT( + CAST(LEFT(Gender, 1)AS CHAR CHARACTER SET utf8), + CAST(sxFirstName AS CHAR CHARACTER SET utf8), + CAST(dmLastName AS CHAR CHARACTER SET utf8), + CAST(LTRIM(RTRIM(DATE_FORMAT(DOB, '%Y'))) AS CHAR CHARACTER SET utf8) + ) + END AS PKV + from (SELECT patient_id, + SOUNDEX(UPPER(REPLACE(given_name, '0', 'O'))) AS sxFirstName, + SOUNDEX(UPPER(REPLACE(family_name, '0', 'O'))) AS sxLastName, + SOUNDEX(UPPER(REPLACE(middle_name, '0', 'O'))) AS sxMiddleName, + fn_getPatientNameDoubleMetaphone(UPPER(REPLACE(given_name, '0', 'O'))) AS dmFirstName, + fn_getPatientNameDoubleMetaphone(UPPER(REPLACE(family_name, '0', 'O'))) AS dmLastName, + fn_getPatientNameDoubleMetaphone(UPPER(REPLACE(middle_name, '0', 'O'))) AS dmMiddleName, + Gender, + DOB + FROM kenyaemr_etl.etl_patient_demographics)x)pkv on pkv.patient_id = d.patient_id + join kenyaemr_etl.etl_default_facility_info i + where m.patient_id is not null + or c.patient_id is not null + group by EncounterId;"|TempPatientMnchExtract|1|PatientMnchExtract|19|a6221aa4-0e85-11e8-ba89-0ed5f89f718b 82651214-9db2-11eb-a8b3-0242ac130003|Mnch Enrolment|MNCH|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select d.patient_id as PatientPK, i.siteCode as SiteCode, d.openmrs_id as PatientMnchID, @@ -5980,3 +6234,966 @@ from kenyaemr_etl.etl_otz_activity a when 1304 then 'POOR SAMPLE QUALITY' end), l.test_result))))) as test_result from kenyaemr_etl.etl_laboratory_extract l)l on d.patient_id = l.patient_id join kenyaemr_etl.etl_default_facility_info i;"|TempMnchLabExtract|0|MnchLabExtract|29|a6221aa4-0e85-11e8-ba89-0ed5f89f718b + + +d563f4e4-ae47-11eb-8529-0242ac130003|Allergies Chronic Illness|NDWH|A6221857-0E85-11E8-BA89-0ED5F89F718B|"SELECT PatientPK,SiteCode,PatientID,FacilityID,Emr,Project,FacilityName,VisitID,VisitDate,ChronicIllness,ChronicOnsetDate,knownAllergies,AllergyCausativeAgent,AllergicReaction,AllergySeverity,AllergyOnsetDate,Skin,Eyes,ENT,Chest,CVS,Abdomen,CNS,Genitourinary + FROM ndwr.ndwr_patient_allergies_chronic_illness;"|dwhstage|0|AllergiesChronicIllnessExtract|11|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +d563f58e-ae47-11eb-8529-0242ac130003|IPT|NDWH|A6221857-0E85-11E8-BA89-0ED5F89F718B|"SELECT PatientPK,SiteCode,PatientID,FacilityID,Emr,Project,FacilityName,VisitID,VisitDate,OnTBDrugs,OnIPT,EverOnIPT,Cough,Fever,NoticeableWeightLoss,NightSweats,Lethergy,ICFActionTaken,TestResult,TBClinicalDiagnosis,ContactsInvited,EvaluatedForIPT,StartAntiTBs, + TBRxStartDate,TBScreening,IPTClientWorkUp,StartIPT,IndicationForIPT + FROM ndwr.ndwr_patient_ipt_extract;"|dwhstage|0|IptExtract|12|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +d563f642-ae47-11eb-8529-0242ac130003|Depression Screening|NDWH|A6221857-0E85-11E8-BA89-0ED5F89F718B|"SELECT PatientPK,SiteCode,PatientID,FacilityID,Emr,Project,VisitID,VisitDate, + CASE + WHEN PHQ9_1 = 0 THEN 'Not at all' + WHEN PHQ9_1 = 1 THEN 'Several days' + WHEN PHQ9_1 = 2 THEN 'More than half' + WHEN PHQ9_1 = 3 THEN 'Nearly everyday' + ELSE NULL + END AS 'PHQ9-1', + CASE + WHEN PHQ9_2 = 0 THEN 'Not at all' + WHEN PHQ9_2 = 1 THEN 'Several days' + WHEN PHQ9_2 = 2 THEN 'More than half' + WHEN PHQ9_3 = 3 THEN 'Nearly everyday' + ELSE NULL + END AS 'PHQ9-2', + CASE + WHEN PHQ9_3 = 0 THEN 'Not at all' + WHEN PHQ9_3 = 1 THEN 'Several days' + WHEN PHQ9_3 = 2 THEN 'More than half' + WHEN PHQ9_3 = 3 THEN 'Nearly everyday' + ELSE NULL + END AS 'PHQ9-3', + CASE + WHEN PHQ9_4 = 0 THEN 'Not at all' + WHEN PHQ9_4 = 1 THEN 'Several days' + WHEN PHQ9_4 = 2 THEN 'More than half' + WHEN PHQ9_4 = 3 THEN 'Nearly everyday' + ELSE NULL + END AS 'PHQ9-4', + CASE + WHEN PHQ9_5 = 0 THEN 'Not at all' + WHEN PHQ9_5 = 1 THEN 'Several days' + WHEN PHQ9_5 = 2 THEN 'More than half' + WHEN PHQ9_5 = 3 THEN 'Nearly everyday' + ELSE NULL + END AS 'PHQ9-5', + CASE + WHEN PHQ9_6 = 0 THEN 'Not at all' + WHEN PHQ9_6 = 1 THEN 'Several days' + WHEN PHQ9_6 = 2 THEN 'More than half' + WHEN PHQ9_6 = 3 THEN 'Nearly everyday' + ELSE NULL + END AS 'PHQ9-6', + CASE + WHEN PHQ9_7 = 0 THEN 'Not at all' + WHEN PHQ9_7 = 1 THEN 'Several days' + WHEN PHQ9_7 = 2 THEN 'More than half' + WHEN PHQ9_7 = 3 THEN 'Nearly everyday' + ELSE NULL + END AS 'PHQ9-7', + CASE + WHEN PHQ9_8 = 0 THEN 'Not at all' + WHEN PHQ9_8 = 1 THEN 'Several days' + WHEN PHQ9_8 = 2 THEN 'More than half' + WHEN PHQ9_8 = 3 THEN 'Nearly everyday' + ELSE NULL + END AS 'PHQ9-8', + CASE + WHEN PHQ9_9 = 0 THEN 'Not at all' + WHEN PHQ9_9 = 1 THEN 'Several days' + WHEN PHQ9_9 = 2 THEN 'More than half' + WHEN PHQ9_9 = 3 THEN 'Nearly everyday' + ELSE NULL + END AS 'PHQ9-9', + CASE + WHEN PHQ9Score >= 0 AND PHQ9Score <= 4 THEN 'Depression unlikely' + WHEN PHQ9Score >= 5 AND PHQ9Score <= 9 THEN 'Mild depression' + WHEN PHQ9Score >= 10 AND PHQ9Score <= 14 THEN 'Moderate depression' + WHEN PHQ9Score >= 15 AND PHQ9Score <= 19 THEN 'Moderate severe depression' + WHEN PHQ9Score >= 20 AND PHQ9Score <= 27 THEN 'Severe depression' + ELSE NULL + END AS 'PHQ9Score', + PHQ9Rating AS 'PHQ9 Rating' +FROM + ndwr.ndwr_patient_depression_screening; +"|dwhstage|0|DepressionScreeningExtract|13|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +d563f7dc-ae47-11eb-8529-0242ac130003|Contact Listing|NDWH|A6221857-0E85-11E8-BA89-0ED5F89F718B|"SELECT PatientPK,SiteCode,PatientID,FacilityName,Emr,Project,PartnerPersonID,ContactAge, + CASE + WHEN ContactSex = 1 THEN 'Male' + WHEN ContactSex = 2 THEN 'Female' + ELSE NULL + END AS 'ContactSex', + CASE + WHEN ContactMaritalStatus = 5555 THEN 'Married monogamous' + WHEN ContactMaritalStatus = 6290 THEN 'Married polygamous' + WHEN ContactMaritalStatus = 1058 THEN 'Divorced' + WHEN ContactMaritalStatus = 1059 THEN 'Widowed' + WHEN ContactMaritalStatus = 1057 THEN 'Single' + WHEN ContactMaritalStatus = 1175 THEN 'N/A (Child)' + ELSE NULL + END AS 'ContactMaritalStatus', + CASE + WHEN RelationshipWithPatient = 970 THEN 'Mother' + WHEN RelationshipWithPatient = 971 THEN 'Father' + WHEN RelationshipWithPatient = 972 THEN 'Sibling' + WHEN RelationshipWithPatient = 1565 THEN 'Child' + WHEN RelationshipWithPatient = 1669 THEN 'Sexual partner-spouse' + WHEN RelationshipWithPatient = 1670 THEN 'Sexual partner-other' + WHEN RelationshipWithPatient = 7246 THEN 'Co-wife' + WHEN RelationshipWithPatient = 105 THEN 'Injectable drug user' + ELSE NULL + END AS 'RelationshipWithPatient', + CASE + WHEN ScreenedForIpv = 1 THEN 'Yes' + WHEN ScreenedForIpv = 0 THEN 'No' + ELSE NULL + END AS 'ScreenedForIpv', + CASE + WHEN IpvScreening = 9303 THEN 'Sexual' + WHEN IpvScreening = 1789 THEN 'Physical' + WHEN IpvScreening = 7020 THEN 'Emotional' + WHEN IpvScreening = 1107 THEN 'No IPV' + WHEN IpvScreening = 1175 THEN 'N/A (Child)' + ELSE NULL + END AS 'IpvScreening', + CASE + WHEN IpvScreeningOutcome = 9303 THEN 'Sexual' + WHEN IpvScreeningOutcome = 1789 THEN 'Physical' + WHEN IpvScreeningOutcome = 7020 THEN 'Emotional' + WHEN IpvScreeningOutcome = 1107 THEN 'No IPV' + WHEN IpvScreeningOutcome = 1175 THEN 'N/A (Child)' + ELSE NULL + END AS 'IpvScreeningOutcome', + CASE + WHEN CurrentlyLivingWithIndexClient = 1 THEN 'Yes' + WHEN CurrentlyLivingWithIndexClient = 0 THEN 'No' + ELSE NULL + END AS 'CurrentlyLivingWithIndexClient', + CASE + WHEN KnowledgeOfHivStatus = 1 THEN 'Yes' + WHEN KnowledgeOfHivStatus = 0 THEN 'No' + ELSE NULL + END AS 'KnowledgeOfHivStatus', + CASE + WHEN PnsApproach = 11734 THEN 'Dual referral' + WHEN PnsApproach = 11733 THEN 'Provider referral' + WHEN PnsApproach = 9025 THEN 'Contract referral' + WHEN PnsApproach = 10648 THEN 'Passive referral' + ELSE NULL + END AS 'PnsApproach' + FROM + ndwr.ndwr_patient_contact_listing;"|dwhstage|0|ContactListingExtract|14|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +d563f890-ae47-11eb-8529-0242ac130003|GBV Screening|NDWH|A6221857-0E85-11E8-BA89-0ED5F89F718B|"SELECT + PatientPK, + SiteCode, + PatientID, + Emr, + Project, + FacilityName, + PartnerPersonID, + VisitID, + VisitDate, + CASE + WHEN IPV = 1 THEN 'Yes' + WHEN IPV = 0 THEN 'NO' + ELSE NULL + END AS 'IPV', + CASE + WHEN PhysicalIPV = 1 THEN 'Yes' + WHEN PhysicalIPV = 0 THEN 'NO' + ELSE NULL + END AS 'PhysicalIPV', + CASE + WHEN EmotionalIPV = 1 THEN 'Yes' + WHEN EmotionalIPV = 0 THEN 'NO' + ELSE NULL + END AS 'EmotionalIPV', + CASE + WHEN SexualIPV = 1 THEN 'Yes' + WHEN SexualIPV = 0 THEN 'NO' + ELSE NULL + END AS 'SexualIPV', + CASE + WHEN IPVRelationship = 1 THEN 'Yes' + WHEN IPVRelationship = 0 THEN 'NO' + ELSE NULL + END AS 'IPVRelationship', + DateCreated + FROM + ndwr.ndwr_gbv_screening"|dwhstage|0|GbvScreeningExtract|15|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +d563f93a-ae47-11eb-8529-0242ac130003|Enhanced Adherence Counselling|NDWH|A6221857-0E85-11E8-BA89-0ED5F89F718B|" SELECT PatientPK,SiteCode,PatientID,Emr,Project,FacilityName,VisitID,VisitDate, + SessionNumber, + FirstSessionDate, + PillCountAdherence, + MMAS4_1 as 'MMAS4-1', + MMAS4_2 as 'MMAS4-2', + MMAS4_3 as 'MMAS4-3', + MMAS4_4 as 'MMAS4_4', + MMSA8_1, + MMSA4_2, + MMSA4_3, + MMSA4_4, + MMSAScore, + EACRecievedVL, + EACVL, + EACVLConcerns, + EACVLThoughts, + EACWayForward, + EACCognitiveBarrier, + EACBehaviouralBarrier_1, + EACBehaviouralBarrier_2, + EACBehaviouralBarrier_3, + EACBehaviouralBarrier_4, + EACBehaviouralBarrier_5, + EACEmotionalBarriers_1, + EACEmotionalBarriers_2, + EACEconBarrier_1, + EACEconBarrier_2, + EACEconBarrier_3, + EACEconBarrier_4, + EACEconBarrier_5, + EACEconBarrier_6, + EACEconBarrier_7, + EACEconBarrier_8, + EACReviewImprovement, + EACReviewMissedDoses, + EACReviewStrategy, + EACReferral, + EACReferralApp, + EACReferralExperience, + EACHomevisit, + EACAdherencePlan, + EACFollowupDate, + FROM + ndwr.ndwr_patient_eac;"|dwhstage|0|EnhancedAdherenceCounsellingExtract|16|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +d563faac-ae47-11eb-8529-0242ac130003|Drug and Alcohol Screening|NDWH|A6221857-0E85-11E8-BA89-0ED5F89F718B|" SELECT PatientPK, + SiteCode,PatientID, + Emr, + Project, + FacilityName, + VisitID, + VisitDate, + DrinkAlcohol, + Smoking, + DrugUse + FROM + ndwr.ndwr_drug_alcohol_screening;"|dwhstage|0|DrugAlcoholScreeningExtract|17|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +d563fb6a-ae47-11eb-8529-0242ac130003|OVC|NDWH|A6221857-0E85-11E8-BA89-0ED5F89F718B|"SELECT PatientPK,SiteCode,PatientID, + Emr, + Project, + FacilityName, + VisitID, + VisitDate, + OVCEnrollmentDate, + RelationshiptoClient, + EnrolledinCPIMS, + CPIMSUniqueidentifier, + PartnerOfferingOVCServices, + OVCExitReason, + ExitDate + FROM + ndwr.ndwr_ovc_patient_visits;"|dwhstage|0|OvcExtract|18|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +d563fc28-ae47-11eb-8529-0242ac130003|OTZ|NDWH|A6221857-0E85-11E8-BA89-0ED5F89F718B|" SELECT PatientPK,SiteCode,PatientID, + Emr, + Project, + FacilityName, + VisitID, + VisitDate, + OTZEnrollmentDate, + TransferInStatus, + Modulespreviouslycovered, + Modulescompletedtoday, + SupportGroupInvolvement, + Remarks, + TransitionattritionReason, + OutcomeDate + FROM + ndwr.ndwr_otz_patient_visits;"|dwhstage|0|OtzExtract|19|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +d568fc28-ae47-11eb-8529-0242ac130003|Covid|NDWH|A6221857-0E85-11E8-BA89-0ED5F89F718B|"SELECT + PatientPK, + SiteCode, + PatientID, + Emr, + Project, + FacilityName, + FacilityId, + VisitID, + Covid19AssessmentDate, + ReceivedCOVID19Vaccine, + DateGivenFirstDose, + FirstDoseVaccineAdministered, + DateGivenSecondDose, + SecondDoseVaccineAdministered, + VaccinationStatus, + VaccineVerification, + VaccineVerificationSecondDose, + BoosterGiven, + BoosterDose, + BoosterDoseDate, + Sequence, + COVID19TestResult, + BoosterDoseVerified, + COVID19TestDate, + PatientStatus, + AdmissionStatus, + AdmissionUnit, + MissedAppointmentDueToCOVID19, + COVID19PositiveSinceLasVisit, + COVID19TestDateSinceLastVisit, + PatientStatusSinceLastVisit, + AdmissionStatusSinceLastVisit, + AdmissionStartDate, + AdmissionEndDate, + AdmissionUnitSinceLastVisit, + SupplementalOxygenReceived, + PatientVentilated, + EverCOVID19Positive, + TracingFinalOutcome, + CauseOfDeath + FROM + ndwr.ndwr_covid_extract;"|dwhstage|0|CovidExtract|20|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +d569fc28-ae47-11eb-8529-0242ac130003|Defaulter Tracing|NDWH|A6221857-0E85-11E8-BA89-0ED5F89F718B|"SELECT + PatientPK, + SiteCode, + PatientID, + Emr, + Project, + FacilityName, + FacilityId, + VisitID, + VisitDate, + EncounterId, + TracingType, + TracingOutcome, + AttemptNumber, + IsFinalTrace, + TrueStatus, + CauseOfDeath, + Comments, + BookingDate + FROM + ndwr.ndwr_defaulter_tracing_extract;"|dwhstage|0|DefaulterTracingExtract|21|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +d5640010-ae47-11eb-8529-0242ac130003|Indicators|MTS|A6221857-0E85-11E8-BA89-0ED5F89F718B||Indicator|1|IndicatorExtract|1|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +A7F13D1F-8E82-4414-BB56-BB40A10F01F3|Hei|MNCH|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|TempHeiExtract|0|HeiExtract|28.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +C37BE5B9-C518-477D-BDA6-C7FAD68262D2|Mnch Enrolment|MNCH|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|TempMnchEnrolmentExtract|0|MnchEnrolmentExtract|20.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +5621AE05-2A66-49EF-829F-B0A2A071941D|Pnc Visit|MNCH|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|TempPncVisitExtract|0|PncVisitExtract|24.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +027D9EE7-C222-4F9C-ACC5-1DD5B183CC28|Mnch Art|MNCH|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|TempMnchArtExtract|0|MnchArtExtract|21.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +1EB37D09-F1AC-4F51-ABCF-94019EBA072B|Mother Baby Pair|MNCH|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|TempMotherBabyPairExtract|0|MotherBabyPairExtract|25.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +9A427425-B1F3-4CC2-9233-705E00792497|Anc Visit|MNCH|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|TempAncVisitExtract|0|AncVisitExtract|22.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +DCAE23B5-8B52-4196-AB29-61C3CDFD6A6B|Mnch Patient|MNCH|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|TempPatientMnchExtract|1|PatientMnchExtract|19.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +3EF83C9E-3A73-4ABE-8981-A838F89B4ABC|Cwc Enrolment|MNCH|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|TempCwcEnrolmentExtract|0|CwcEnrolmentExtract|26.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +792C41D4-20D4-4844-93E7-3698C9E2FFA4|Cwc Visit|MNCH|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|TempCwcVisitExtract|0|CwcVisitExtract|27.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +65BC8BA3-25A4-44D4-B902-1AA2CD4B9AFE|Mnch Labs|MNCH|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|TempMnchLabExtract|0|MnchLabExtract|29.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +07A92DAB-E1D0-4550-9B71-5CF7F63A28BD|Mat Visit|MNCH|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|TempMatVisitExtract|0|MatVisitExtract|23.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +46D92EC7-97F2-41E4-9FF2-44FE92AB13CB|Hts Clients|HTS|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsClient|1.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +1E0DD61C-4E31-4707-B808-E9FC0649651D|Hts Test Kits|HTS|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsTestKits|4.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +43F8E14C-5481-43A3-B76E-82FFFA9DFC5B|Hts Client Linkage|HTS|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsClientLinkage|3.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +3E51A4D6-5DD6-4B8E-97EA-4D1D40F50DC4|Hts Partner Notification Services|HTS|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsPartnerNotificationServices|7.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +E2EFAE43-2B09-41A6-83B5-A2E5CF5EDDF7|Hts Client Tracing|HTS|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsClientTracing|5.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +C2294906-D283-4E43-818D-E047047BD6BF|Hts Partner Tracing|HTS|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsPartnerTracing|6.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +5F402C12-6846-4087-9C9B-7D5CF15B7B2D|Hts Client Tests|HTS|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|DWHStage|1|HtsClientTests|2.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +3BF8ACD9-8E99-430A-AE5C-535B46877C7A|Master Patient Index|CBS|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|MPI|1|MasterPatientIndex|1.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B +5823F29C-D01E-4479-897B-720343FDD876|Migration|MGS|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|MgsStage|1|MetricMigrationExtract|1.00|A6221AA5-0E85-11E8-BA89-0ED5F89F718B + +399E96EE-3C82-400D-B5EF-8C320F865B81|Master Patient Index|CBS|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|MPI|1|MasterPatientIndex|1.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +CD478F6B-22FA-4262-AC8A-C8DF680F4381|Hts Clients|HTS|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|DWHStage|1|HtsClient|1.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +2A5E6765-CE9E-4BF8-B64A-089230FBD09F|Hts Test Kits|HTS|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|DWHStage|1|HtsTestKits|4.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +D75B29CB-8745-4DF7-9A39-C33FC95F9F0F|Hts Client Linkage|HTS|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|DWHStage|1|HtsClientLinkage|3.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +A0D0C17E-2315-46AE-AAA9-B33572A3BEA1|Hts Partner Notification Services|HTS|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|DWHStage|1|HtsPartnerNotificationServices|7.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +B0B42B32-D0B6-48D8-B5C8-A5E085DD391A|Hts Client Tracing|HTS|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|DWHStage|1|HtsClientTracing|5.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +C523F23D-3806-4C4D-8A27-75DC813DA0F3|Hts Partner Tracing|HTS|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|DWHStage|1|HtsPartnerTracing|6.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +9CB06077-AFB2-4072-BA6E-76D8E6003CC3|Hts Client Tests|HTS|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|DWHStage|1|HtsClientTests|2.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +CDE7E836-57A7-4F2F-8A5A-F9B66FB2C9A0|Migration|MGS|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|MgsStage|1|MetricMigrationExtract|1.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +16DB7A26-9D2E-4DB9-9E4E-C58B6239E032|Hei|MNCH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|TempHeiExtract|0|HeiExtract|28.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +7C60F063-6CA1-4560-A34A-A7F3A3E64896|Mnch Enrolment|MNCH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|TempMnchEnrolmentExtract|0|MnchEnrolmentExtract|20.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +4469549E-BD31-4C99-8FE0-CA9BE614E6EF|Pnc Visit|MNCH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|TempPncVisitExtract|0|PncVisitExtract|24.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +405B749C-5E73-4D36-8698-BD5334F1AC26|Mnch Art|MNCH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|TempMnchArtExtract|0|MnchArtExtract|21.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +6F825B4F-4179-42D4-B32D-F473162A266B|Mother Baby Pair|MNCH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|TempMotherBabyPairExtract|0|MotherBabyPairExtract|25.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +C4076AFF-98BB-4EA7-B4CD-01F845C9C611|Anc Visit|MNCH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|TempAncVisitExtract|0|AncVisitExtract|22.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +ED45ABA8-F5C2-4EA6-85EC-836CFBA4211E|Mnch Patient|MNCH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|TempPatientMnchExtract|1|PatientMnchExtract|19.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +F8D4B2D3-9A4D-4B2A-BE45-5B4A3492B0F9|Cwc Enrolment|MNCH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|TempCwcEnrolmentExtract|0|CwcEnrolmentExtract|26.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +D15D7235-C4C4-4219-8364-C585BA708B81|Cwc Visit|MNCH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|TempCwcVisitExtract|0|CwcVisitExtract|27.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +1CD97F9F-8659-4444-8DC8-4FBA08B88E0B|Mnch Labs|MNCH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|TempMnchLabExtract|0|MnchLabExtract|29.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +846DE4FD-A8D9-46F3-9902-01C1657923AD|Mat Visit|MNCH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|TempMatVisitExtract|0|MatVisitExtract|23.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +497E84D7-5819-47BA-9117-50108935E718|Indicators|MTS|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|Indicator|1|IndicatorExtract|1.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +2328A891-F0CF-436C-A68E-69DFFD0AF7BC|Allergies Chronic Illness|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|AllergiesChronicIllnessExtract|11.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +9A7686D9-4F29-40B6-B8D1-98B9EE5FDA70|IPT|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|IptExtract|12.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +3384309B-C4DF-4DFE-A013-21366CB3FDBB|Depression Screening|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|DepressionScreeningExtract|13.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +D1743670-8125-4904-AE02-0D62093C72B2|Contact Listing|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|ContactListingExtract|14.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +8A7F44AF-9A28-48F6-966B-0214E6E54000|GBV Screening|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|GbvScreeningExtract|15.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +84E023EB-4DA9-45DC-B2A0-76DBAB0A6B44|Enhanced Adherence Counselling|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|EnhancedAdherenceCounsellingExtract|16.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +EB6036E5-DC82-4E00-B639-2922F40B2AF7|Drug and Alcohol Screening|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|DrugAlcoholScreeningExtract|17.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +77E3567C-35B6-412D-9232-95CE921C0ABE|OVC|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|OvcExtract|18.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +3F4F860A-6FB3-4B82-B78A-3C435932285C|OTZ|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|OtzExtract|19.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +583AB3B7-7CE4-4A7B-A99A-89DEBF5AD54C|Patient Adverse Events|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|PatientAdverseEventExtract|8.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +82F6CED2-234D-40CF-8B5C-7A6E074A8A0B|Patient Status|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|PatientStatusExtract|4.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +FC60FEB6-6DA6-48FE-ACC0-E9F148AD64F6|ART Patients|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|PatientArtExtract|2.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +698FC2EA-1333-4D97-9521-E6AA73609BC4|All Patients|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|1|PatientExtract|1.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +E3EDC78A-A0DF-4C35-98C6-AA83B6679781|Patient Baselines|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|PatientBaselineExtract|3.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +C2A18340-03D0-41FD-B2C5-7507D9653BDF|Patient Labs|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|PatientLabExtract|5.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +9FC67989-2E8D-49FC-82D0-C15BB1789565|Patient Pharmacy|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|PatientPharmacyExtract|6.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +A4498816-5690-43CB-A15E-DA02DB82262D|Patient Visit|NDWH|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|dwhstage|0|PatientVisitExtract|7.00|a6221982-0e86-11e8-ba89-0ed5f89f718b +CF1F7642-C5B2-456D-975A-8BC83F86F8E5|Smart Card|PSMART|a6221858-0e85-11e8-ba89-0ed5f89f718b|""|PSmartStage|1|pSmart|1.00|a6221982-0e86-11e8-ba89-0ed5f89f718b + + +2bbeec30-7754-11eb-9439-0242ac130002|Covid|NDWH|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select d.patient_id PatientPK, + i.siteCode SiteCode, + d.unique_patient_no PatientID, + 'KenyaEMR' Emr, + 'Kenya HMIS II' Project, + i.facilityName FacilityName, + 0 as FacilityId, + a.visit_id VisitID, + a.visit_date Covid19AssessmentDate, + if(a.final_vaccination_status in (166192, 5585), 'Yes', 'No') as ReceivedCOVID19Vaccine, + a.first_dose_date as DateGivenFirstDose, + (case a.first_vaccine_type + when 166156 then 'Astrazeneca' + when 166355 then 'Johnson and Johnson' + when 166154 then 'Moderna' + when 166155 then 'Pfizer' + when 166157 then 'Sputnik' + when 166379 then 'Sinopharm' + when 1067 then 'Unknown' + when 5622 + then 'Other' end) as FirstDoseVaccineAdministered, + a.second_dose_date as DateGivenSecondDose, + (case a.second_vaccine_type + when 166156 then 'Astrazeneca' + when 166355 then 'Johnson and Johnson' + when 166154 then 'Moderna' + when 166155 then 'Pfizer' + when 166157 then 'Sputnik' + when 166379 then 'Sinopharm' + when 1067 then 'Unknown' + when 5622 + then 'Other' end) as SecondDoseVaccineAdministered, + (case a.final_vaccination_status + when 166192 then 'Partially Vaccinated' + when 5585 then 'Fully Vaccinated' + else 'Not Vaccinated' end) as VaccinationStatus, + (case a.first_vaccination_verified when 164134 then 'Yes' else 'No' end) as VaccineVerification, + (case a.second_vaccination_verified when 164134 then 'Yes' else 'No' end) as VaccineVerificationSecondDose, + (case a.ever_received_booster + when 1065 then 'Yes' + when 1066 then 'No' end) as BoosterGiven, + (case a.booster_vaccine_taken + when 166156 then 'Astrazeneca' + when 166355 then 'Johnson and Johnson' + when 166154 then 'Moderna' + when 166155 then 'Pfizer' + when 166157 then 'Sputnik' + when 166379 then 'Sinopharm' + when 1067 then 'Unknown' + when 5622 then 'Other(Specify)' end) as BoosterDose, + a.date_taken_booster_vaccine as BoosterDoseDate, + a.booster_sequence as Sequence, + (case a.ever_tested_covid_19_positive + when 703 then 'Yes' + when 664 then 'No' + when 1067 then 'Unknown' end) as EverCOVID19Positive, + (case a.ever_tested_covid_19_positive + when 703 then 'Yes' + when 664 then 'No' + when 1067 then 'Unknown' end) as COVID19TestResult, + (case booster_dose_verified when 164134 then 'Yes' end) as BoosterDoseVerified, + a.date_tested_positive as COVID19TestDate, + (case a.symptomatic + when 1068 then 'Symptomatic' + when 165912 then 'Asymptomatic' END) as PatientStatus, + (case a.hospital_admission + when 1065 then 'Yes' + when 1066 then 'No' end) as AdmissionStatus, + a.admission_unit as AdmissionUnit, + '' as MissedAppointmentDueToCOVID19, + '' as COVID19PositiveSinceLasVisit, + '' as COVID19TestDateSinceLastVisit, + '' as PatientStatusSinceLastVisit, + '' as AdmissionStatusSinceLastVisit, + '' as AdmissionStartDate, + '' as AdmissionEndDate, + '' as AdmissionUnitSinceLastVisit, + (case a.on_oxygen_supplement when 1065 then 'Yes' when 1066 then 'No' end) as SupplementalOxygenReceived, + (case a.on_ventillator when 1065 then 'Yes' when 1066 then 'No' end) as PatientVentilated, + a.date_created as Date_Created, + a.date_last_modified as Date_Last_Modified, + '' as TracingFinalOutcome, + '' as CauseOfDeath +from kenyaemr_etl.etl_patient_demographics d + join kenyaemr_etl.etl_covid19_assessment a on d.patient_id = a.patient_id + join kenyaemr_etl.etl_default_facility_info i + group by a.visit_id;"|dwhstage|0|CovidExtract|20|a6221aa4-0e85-11e8-ba89-0ed5f89f718b +2bbeec31-7754-11eb-9439-0242ac130002|Defaulter Tracing|NDWH|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select d.patient_id PatientPK, + i.siteCode SiteCode, + d.unique_patient_no PatientID, + 'KenyaEMR' Emr, + 'Kenya HMIS II' Project, + i.facilityName FacilityName, + 0 as FacilityId, + f.visit_id VisitID, + f.visit_date VisitDate, + f.encounter_id as EncounterId, + (case f.tracing_type + when 1650 then 'Client Called' + when 164965 then 'Physical Tracing' + when 161642 then 'Treatment supporter' end) as TracingType, + (case f.tracing_outcome + when 1267 then 'Contact' + when 1118 then 'No contact' end) as TracingOutcome, + f.attempt_number as AttemptNumber, + (case f.is_final_trace when 1267 then 'Yes' when 163339 then 'No' end) as IsFinalTrace, + (case f.tracing_outcome + when 165610 then 'COVID19 Positive' + when 160432 then 'Dead' + when 1693 then 'Receiving ART from another clinic/Transferred' + when 160037 then 'Still in care at CCC' + when 5240 then 'Lost to follow up' + when 164435 then 'Stopped treatment' end) as TrueStatus, + (case f.cause_of_death + when 165609 then 'Infection due to COVID-19' + when 162574 then 'Death related to HIV infection' + when 116030 then 'Cancer' + when 164500 then 'TB' + when 151522 then 'Other infectious and parasitic diseases' + when 133481 then 'Natural cause' + when 1603 then 'Unnatural Cause' + when 5622 then 'Unknown cause' end) as CauseOfDeath, + f.comments as Comments, + date(f.booking_date) as BookingDate, + f.date_created as Date_Created, + f.date_last_modified as Date_Last_Modified + from kenyaemr_etl.etl_patient_demographics d + join kenyaemr_etl.etl_ccc_defaulter_tracing f on d.patient_id = f.patient_id + join kenyaemr_etl.etl_default_facility_info i + group by f.visit_id;"|dwhstage|0|DefaulterTracingExtract|21|a6221aa4-0e85-11e8-ba89-0ed5f89f718b + +82651dea-9db2-11eb-a8b3-0242ac130003|Patient Prep|PREP|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select d.patient_id as PatientPK, + i.siteCode as SiteCode, + i.facilityName as FacilityName, + d.unique_prep_number as PrepNumber, + d.national_unique_patient_identifier as NUPI, + + d.openmrs_id as HtsNumber, + 'KenyaEMR' as Emr, + 'HMIS' as Project, + min(date(e.visit_date)) as PrepEnrollmentDate, + case d.gender when 'M' then 'Male' when 'F' then 'Female' end as Sex, + d.dob as DateOfBirth, + d.birth_place as CountyOfBirth, + pa.county as County, + pa.sub_county as SubCounty, + pa.location as Location, + pa.land_mark as LandMark, + pa.ward as Ward, + e.patient_type as ClientType, + e.transfer_in_entry_point as ReferralPoint, + d.marital_status as MaritalStatus, + case e.in_school when 1 then 'Yes' when 2 then 'No' else null end as Inschool, + (case e.population_type + when 164928 then 'General Population' + when 6096 then 'Discordant Couple' + when 164929 then 'Key Population' + else NULL end) as PopulationType, + case e.kp_type when 162277 then 'People in prison and other closed settings' when 165100 then 'Transgender' + when 105 then 'PWID' when 160578 then 'MSM' when 165084 then 'MSW' when 160579 then 'FSW' end as KeyPopulationType, + e.referred_from as Refferedfrom, + if(e.transfer_in_date is not null, 'Yes', 'No') as TransferIn, + date(e.transfer_in_date) as TransferInDate, + e.transfer_from as TransferFromFacility, + e.date_started_prep_trf_facility as DatefirstinitiatedinPrepCare, + e.date_started_prep_trf_facility as DateStartedPrEPattransferringfacility, + e.previously_on_prep as ClientPreviouslyonPrep, + e.regimen as PrevPrepReg, + e.prep_last_date as DateLastUsedPrev, + e.date_created as Date_Created, + e.date_last_modified as Date_Last_Modified + from kenyaemr_etl.etl_prep_enrolment e + left join kenyaemr_etl.etl_person_address pa on e.patient_id = pa.patient_id + inner join kenyaemr_etl.etl_patient_demographics d on e.patient_id = d.patient_id + inner join kenyaemr_etl.etl_prep_behaviour_risk_assessment r on e.patient_id = r.patient_id + join kenyaemr_etl.etl_default_facility_info i +group by e.patient_id;"|TempPatientPrepExtract|1|PatientPrepExtract|30|a6221aa4-0e85-11e8-ba89-0ed5f89f718b + +82651f02-9db2-11eb-a8b3-0242ac130003|Prep Behaviour Risk|PREP|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select d.patient_id as PatientPK, + i.siteCode as SiteCode, + d.unique_prep_number as PrepNumber, + d.openmrs_id as HtsNumber, + 'KenyaEMR' as Emr, + 'HMIS' as Project, + h.visit_date as VisitDate, + h.visit_id as VisitId, + h.sexual_partner_hiv_status as SexPartnerHIVStatus, + h.sexual_partner_on_art as IsHIVPositivePartnerCurrentonART, + (case h.high_risk_partner when 'High risk partner' then 'Yes' else 'No' end) as IsPartnerHighRisk, + h.risk as PartnerARTRisk, + concat_ws(',', case sex_with_multiple_partners when 'Yes' then 'Has Sex with more than one partner' end, + case ipv_gbv when 'Yes' then 'Ongoing IPVor/and GBV' end, + case transactional_sex when 'Yes' then 'Transactional sex' end, + case recent_sti_infected when 'Yes' then 'Recent STI in the last 6 months' end, + case recurrent_pep_use when 'Yes' then 'Recurrent use of PEP' end, + case recurrent_sex_under_influence + when 'Yes' then 'Recurrent sex under influence of alcohol/recreational drugs' + end, + case inconsistent_no_condom_use when 'Yes' then 'Inconsistent or no condom use' end, + case sharing_drug_needles + when 'Yes' then 'IDU with shared needles and/or syringes' + end, other_reason_specify) as ClientAssessments, + h.assessment_outcome as ClientRisk, + h.willing_to_take_prep as ClientWillingToTakePrEP, + h.reason_not_willing as PrEPDeclineReason, + h.risk_edu_offered as RiskReductionEducationOffered, + h.referral_for_prevention_services as ReferralToOtherPrevServices, + date(h.time_partner_hiv_positive_known) as FirstEstablishPartnerStatus, + h.partner_enrolled_ccc as PartnerEnrolledToCCC, + h.partner_ccc_number as HIVPartnerCCCNumber, + h.partner_art_start_date as HIVPartnerARTStartDate, + h.HIV_serodiscordant_duration_months as MonthsKnownHIVSeroDiscordant, + h.recent_unprotected_sex_with_positive_partner as SexWithoutCondom, + h.children_with_hiv_positive_partner as NumberofchildrenWithPartner, + h.date_created as Date_Created, + h.date_last_modified as Date_Last_Modified + from kenyaemr_etl.etl_prep_behaviour_risk_assessment h + inner join kenyaemr_etl.etl_prep_enrolment e on h.patient_id = e.patient_id + inner join kenyaemr_etl.etl_patient_demographics d on e.patient_id = d.patient_id + join kenyaemr_etl.etl_default_facility_info i;"|TempPrepBehaviourRiskExtract|0|PrepBehaviourRiskExtract|31|a6221aa4-0e85-11e8-ba89-0ed5f89f718b +8265201a-9db2-11eb-a8b3-0242ac130003|Prep Visit|PREP|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select d.patient_id as PatientPK, + i.siteCode as SiteCode, + d.unique_prep_number as PrepNumber, + d.openmrs_id as HtsNumber, + f.encounter_id as EncounterId, + 'KenyaEMR' as Emr, + 'HMIS' as Project, + f.visit_date as VisitDate, + f.visit_id as VisitID, + concat_ws('/', t.systolic_pressure, t.diastolic_pressure) as BloodPressure, + t.temperature as Temperature, + t.weight as Weight, + t.height as Height, + f.sti_screened as STIScreening, + concat_ws(',', f.genital_ulcer_disease, + f.vaginal_discharge, + f.cervical_discharge, + f.pid, + f.urethral_discharge, + f.anal_discharge, + f.other_sti_symptoms) as STISymptoms, + f.sti_treated as STITreated, + f.vmmc_status as Circumcised, + f.vmmc_referred as VMMCReferral, + f.lmp as LMP, + f.menopausal_status as MenopausalStatus, + f.pregnant as PregnantAtThisVisit, + f.edd as EDD, + f.wanted_pregnancy as PlanningToGetPregnant, + f.planned_pregnancy as PregnancyPlanned, + f.ended_pregnancy as PregnancyEnded, + f.outcome_date as PregnancyEndDate, + f.pregnancy_outcome as PregnancyOutcome, + f.defects as BirthDefects, + f.breastfeeding as BreastFeeding, + f.fp_status as FamilyPlanningStatus, + f.fp_method as FPMethods, + f.adherence_counselled as AdherenceDone, + f.adherence_outcome as AdherenceOutcome, + f.prep_contraindications as ContraindicationsPrep, + f.treatment_plan as PrepTreatmentPlan, + f.prescribed_PrEP as PrepPrescribed, + f.regimen_prescribed as RegimenPrescribed, + f.months_prescribed_regimen as MonthsPrescribed, + f.condoms_issued as CondomsIssued, + f.appointment_given as Tobegivennextappointment, + f.reason_no_appointment as Reasonfornotgivingnextappointment, + f.appointment_date as NextAppointment, + f.clinical_notes as ClinicalNotes, + '' as AdherenceReasons, + '' as BMI, + '' as HepatitisBPositiveResult, + '' as HepatitisCPositiveResult, + '' as SymptomsAcuteHIV, + case f.hepatitisB_vaccinated when 1065 then 'Yes' when 1066 then 'No' end as VaccinationForHepBStarted, + case f.hepatitisB_treated when 1065 then 'Yes' when 1066 then 'No' when 1788 then 'Referred' end as TreatedForHepB, + case f.hepatitisC_vaccinated when 1065 then 'Yes' when 1066 then 'No' end as VaccinationForHepCStarted, + case f.hepatitisC_treated when 1065 then 'Yes' when 1066 then 'No' when 1788 then 'Referred' end as TreatedForHepC, + f.date_created as Date_Created, + f.date_last_modified as Date_Last_Modified + from kenyaemr_etl.etl_prep_followup f + left join kenyaemr_etl.etl_patient_triage t on f.patient_id = t.patient_id and f.visit_date = t.visit_date + inner join kenyaemr_etl.etl_prep_enrolment e on f.patient_id = e.patient_id + inner join kenyaemr_etl.etl_patient_demographics d on e.patient_id = d.patient_id + join kenyaemr_etl.etl_default_facility_info i;"|TempPrepVisitExtract|0|PrepVisitExtract|32|a6221aa4-0e85-11e8-ba89-0ed5f89f718b +8265213c-9db2-11eb-a8b3-0242ac130003|Prep Labs|PREP|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select distinct '' AS SatelliteName, 0 AS FacilityId, + d.unique_prep_number as PrepNumber, d.patient_id as PatientPK, + d.openmrs_id as HtsNumber,l.encounter_id as VisitID, + CAST(l.visit_date AS DATE) as OrderedByDate,CAST(l.visit_date AS DATE) as TestResultDate, + i.siteCode as SiteCode, + i.facilityName as FacilityName, + cn.name as TestName, + l.date_test_requested as SampleDate, + (case l.order_reason when 843 then 'Confirmation of treatment failure (repeat VL)' + when 1434 then 'Pregnancy' when 162080 then 'Baseline VL (for infants diagnosed through EID)' + when 1259 then 'Single Drug Substitution' when 159882 then 'Breastfeeding' + when 163523 then 'Clinical failure' when 161236 then 'Routine' + when 160032 then 'Confirmation of persistent low level Viremia (PLLV)' end) as Reason, + case + when c.datatype_id=2 then cn2.name + else + l.test_result + end as TestResult, + NULL as EnrollmentTest,'' as SampleType, + 'KenyaEMR' as Emr, + 'Kenya HMIS II' as Project, + l.date_created as Date_Created, + GREATEST(COALESCE(l.date_last_modified, d.date_last_modified), COALESCE(d.date_last_modified, l.date_last_modified)) as Date_Last_Modified + from kenyaemr_etl.etl_laboratory_extract l + join kenyaemr_etl.etl_patient_demographics d on d.patient_id=l.patient_id + join concept_name cn on cn.concept_id=l.lab_test and cn.concept_name_type='FULLY_SPECIFIED'and cn.locale='en' + join concept c on c.concept_id = l.lab_test + join kenyaemr_etl.etl_default_facility_info i + join (select p.patient_id from kenyaemr_etl.etl_prep_enrolment p)p on l.patient_id = p.patient_id + left outer join concept_name cn2 on cn2.concept_id=l.test_result and cn2.concept_name_type='FULLY_SPECIFIED' + and cn2.locale='en' where p.patient_id is not null;"|TempPrepLabExtract|0|PrepLabExtract|33|a6221aa4-0e85-11e8-ba89-0ed5f89f718b +82652272-9db2-11eb-a8b3-0242ac130003|Prep Pharmacy|PREP|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select d.patient_id as PatientPK, + i.siteCode as SiteCode, + d.unique_prep_number as PrepNumber, + d.openmrs_id as HtsNumber, + 0 as FacilityID, + 'KenyaEMR' as Emr, + 'HMIS' as Project, + f.visit_id as VisitID, + f.regimen_prescribed as RegimenPrescribed, + f.visit_date as DispenseDate, + f.months_prescribed_regimen as Duration, + f.date_created as Date_Created, + f.date_last_modified as Date_Last_Modified + from kenyaemr_etl.etl_prep_followup f + join kenyaemr_etl.etl_patient_demographics d on d.patient_id = f.patient_id + join kenyaemr_etl.etl_default_facility_info i + where f.prescribed_PrEP = 'Yes';"|TempPrepPharmacyExtract|0|PrepPharmacyExtract|34|a6221aa4-0e85-11e8-ba89-0ed5f89f718b +82652358-9db2-11eb-a8b3-0242ac130003|Prep Adverse Events|PREP|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select a.patient_id as PatientPK, + s.siteCode as SiteCode, + de.unique_prep_number as PrepNumber, + 0 AS FacilityId, + 'KenyaEMR' as Emr, + 'Kenya HMIS II' as Project, + s.FacilityName as FacilityName, + a.visit_date as VisitDate, + group_concat(case a.cause + when 70056 then 'Abicavir' + when 162298 then 'ACE inhibitors' + when 70878 then 'Allopurinol' + when 155060 then 'Aminoglycosides' + when 162299 then 'ARBs (angiotensin II receptor blockers)' + when 103727 then 'Aspirin' + when 71647 then 'Atazanavir' + when 72822 then 'Carbamazepine' + when 162301 then 'Cephalosporins' + when 73300 then 'Chloroquine' + when 73667 then 'Codeine' + when 74807 then 'Didanosine' + when 75523 then 'Efavirenz' + when 162302 then 'Erythromycins' + when + 75948 then 'Ethambutol' + when 77164 then 'Griseofulvin' + when 162305 then 'Heparins' + when 77675 then 'Hydralazine' + when 78280 then 'Isoniazid' + when 794 then 'Lopinavir/ritonavir' + when 80106 then 'Morphine' + when 80586 then 'Nevirapine' + when 80696 then 'Nitrofurans' + when 162306 then 'Non-steroidal anti-inflammatory drugs' + when 81723 then 'Penicillamine' + when 81724 then 'Penicillin' + when 81959 then 'Phenolphthaleins' + when 82023 then 'Phenytoin' + when + 82559 then 'Procainamide' + when 82900 then 'Pyrazinamide' + when 83018 then 'Quinidine' + when 767 then 'Rifampin' + when 162307 then 'Statins' + when 84309 then 'Stavudine' + when 162170 then 'Sulfonamides' + when 84795 then 'Tenofovir' + when 84893 then 'Tetracycline' + when 86663 then 'Zidovudine' + when 5622 then 'Other' end SEPARATOR '|') as AdverseEventCause, + group_concat(case a.adverse_event + when 1067 then 'Unknown' + when 121629 then 'Anaemia' + when 148888 then 'Anaphylaxis' + when 148787 then 'Angioedema' + when 120148 then 'Arrhythmia' + when 108 then 'Bronchospasm' + when 143264 then 'Cough' + when 142412 then 'Diarrhea' + when 118773 then 'Dystonia' + when 140238 then 'Fever' + when 140039 then 'Flushing' + when 139581 then 'GI upset' + when 139084 then 'Headache' + when 159098 then 'Hepatotoxicity' + when 111061 then 'Hives' + when 117399 then 'Hypertension' + when 879 then 'Itching' + when 121677 then 'Mental status change' + when 159347 then 'Musculoskeletal pain' + when 121 then 'Myalgia' + when 512 then 'Rash' + when 5622 then 'Other' end SEPARATOR '|') as AdverseEvent, + group_concat(case a.severity + when 1498 then 'Mild' + when 1499 then 'Moderate' + when 1500 then 'Severe' + when 162819 then 'Fatal' + when 1067 then 'Unknown' end SEPARATOR '|') as Severity, + group_concat(a.start_date SEPARATOR '|') as AdverseEventStartDate, + '' as AdverseEventEndDate, + group_concat(case a.action_taken + when 1257 then 'CONTINUE REGIMEN' + when 1259 then 'SWITCHED REGIMEN' + when 981 then 'CHANGED DOSE' + when 1258 then 'SUBSTITUTED DRUG' + when 1107 then 'NONE' + when 1260 then 'STOP' + when 5622 then 'Other' end SEPARATOR '|') as AdverseEventActionTaken, + '' as AdverseEventClinicalOutcome, + '' as AdverseEventIsPregnant, + '' as AdverseEventRegimen, + a.date_created as Date_Created, + a.date_last_modified as Date_Last_Modified + from kenyaemr_etl.etl_adverse_events a + left join (select pe.patient_id, max(pe.visit_date) as prep_latest_enrolment_date + from kenyaemr_etl.etl_prep_enrolment pe + group by pe.patient_id) pe on a.patient_id = pe.patient_id + left join kenyaemr_etl.etl_prep_followup p on a.encounter_id = p.encounter_id + left join (select d.patient_id as PrEP_disc_patient, + max(date(d.visit_date)) PrEP_Outcome_date + from kenyaemr_etl.etl_prep_discontinuation d + group by d.patient_id) pd on pd.PrEP_disc_patient = a.patient_id + inner join kenyaemr_etl.etl_patient_demographics de on a.patient_id = de.patient_id + join kenyaemr_etl.etl_default_facility_info s + where a.form in ('prep-initial','prep-consultation') + and (pd.PrEP_disc_patient is null or pd.PrEP_Outcome_date < pe.prep_latest_enrolment_date) + group by a.patient_id,a.visit_date;"|TempPrepAdverseEventExtract|0|PrepAdverseEventExtract|35|a6221aa4-0e85-11e8-ba89-0ed5f89f718b +82652470-9db2-11eb-a8b3-0242ac130003|Prep Care Termination|PREP|a6221856-0e85-11e8-ba89-0ed5f89f718b|"select d.patient_id as PatientPK, + i.siteCode as SiteCode, + d.unique_prep_number as PrepNumber, + d.openmrs_id as HtsNumber, + 'KenyaEMR' as Emr, 'HMIS' as Project, + f.visit_date as ExitDate, + f.discontinue_reason as ExitReason, + CAST(f.last_prep_dose_date AS DATE) as DateOfLastPrepDose, + f.date_created as DateCreated, + f.date_last_modified as DateModified + from kenyaemr_etl.etl_prep_discontinuation f + join kenyaemr_etl.etl_patient_demographics d on d.patient_id = f.patient_id + join kenyaemr_etl.etl_default_facility_info i;"|TempPrepCareTerminationExtract|0|PrepCareTerminationExtract|35|a6221aa4-0e85-11e8-ba89-0ed5f89f718b +2F8A4A81-FEFB-49BF-AB07-C9F529F6EA13|Client Registry Service|CRS|A6221856-0E85-11E8-BA89-0ED5F89F718B|"SELECT dm.patient_id AS PatientPK, + dm.unique_patient_no AS CCCNumber, + dm.national_id_no AS NationalId, + dm.passport_no AS Passport, + dm.huduma_no AS HudumaNumber, + dm.birth_certificate_no AS BirthCertificateNumber, + dm.alien_no AS AlienIdNo, + dm.driving_license_no AS DrivingLicenseNumber, + dm.patient_clinic_number AS PatientClinicNumber, + dm.given_name AS FirstName, + dm.middle_name AS MiddleName, + dm.family_name AS LastName, + dm.DOB AS DateOfBirth, + (case dm.Gender when 'F' then 'Female' when 'M' then 'Male' else '' end) AS Sex, + (case dm.marital_status when 'Never married' then 'Single' + when 'Married' then 'Married-monogamous' + + when 'Polygamous' then 'Married-polygamous' + + when 'Living with partner' then 'Cohabiting' else dm.marital_status end) AS MaritalStatus, + dm.occupation AS Occupation, + dm.education_level AS HighestLevelOfEducation, + dm.phone_number AS PhoneNumber, + '' AS AlternativePhoneNumber, + '' AS SpousePhoneNumber, + dm.next_of_kin AS NameOfNextOfKin, + dm.next_of_kin_relationship AS NextOfKinRelationship, + dm.next_of_kin_phone AS NextOfKinTelNo, + pa.county AS County, + pa.sub_county AS SubCounty, + pa.ward AS Ward, + pa.location AS Location, + pa.village AS Village, + pa.land_mark AS Landmark, + (select FacilityName from kenyaemr_etl.etl_default_facility_info) as FacilityName, + (select siteCode from kenyaemr_etl.etl_default_facility_info) as MFLCode, + (select siteCode from kenyaemr_etl.etl_default_facility_info) as SiteCode, + 0 as FacilityId, + 'KHMIS' as Project, + 'KenyaEMR' as Emr, + hiv.date_confirmed_hiv_positive as DateOfHIVdiagnosis, + if(hiv.date_started_art_at_transferring_facility is not null, hiv.date_started_art_at_transferring_facility, + reg.date_started) as DateOfInitiation, + reg.last_regimen as LastRegimen, + reg.last_regimen_line as LastRegimenLine, + disc.ExitReason AS TreatmentOutcome, + reg.latest_vis_date AS DateOfLastEncounter, + lab.lastViralLoadDate AS DateOfLastViralLoad, + lab.lastViralLoadResult AS LastViralLoadResult, + reg.latest_tca AS NextAppointmentDate, + if(cc.patient_id IS NOT NULL, 'YES', 'NO') as CurrentOnART + from kenyaemr_etl.etl_hiv_enrollment hiv + join kenyaemr_etl.etl_patient_demographics dm on dm.patient_id = hiv.patient_id + left join kenyaemr_etl.etl_person_address pa on pa.patient_id = hiv.patient_id + left join (select d.patient_id, + coalesce(max(date(d.effective_discontinuation_date)), + max(date(d.visit_date))) as ExitDate, + (case mid(max(concat(d.visit_date, d.discontinuation_reason)), 11) + when 159492 then 'Transfer Out' + when 160034 then 'Died' + when 5240 then 'LTFU' + when 819 then 'Stopped Treatment' + else '' end) as ExitReason, + max(d.date_last_modified) as date_last_modified + from kenyaemr_etl.etl_patient_program_discontinuation d + where d.program_name = 'HIV' + group by d.patient_id) disc on disc.patient_id = dm.patient_id + left join (select lb.patient_id, + mid(max(concat(visit_date, lb.date_test_requested)), 11) as lastViralLoadDate, + if(mid(max(concat(visit_date, lab_test)), 11) = 856, + mid(max(concat(visit_date, test_result)), 11), if( + mid(max(concat(visit_date, lab_test)), 11) = 1305 and + mid(max(concat(visit_date, test_result)), 11) = 1302, + 'LDL', '')) as lastViralLoadResult + from kenyaemr_etl.etl_laboratory_extract lb + where lb.lab_test in (1305, 856) + group by lb.patient_id) lab on lab.patient_id = dm.patient_id + left join (select e.patient_id, + e.regimen, + e.regimen_line, + e.alternative_regimen, + max(fup.next_appointment_date) as latest_tca, + last_art_date, + last_regimen, + last_regimen_line, + max(fup.visit_date) as latest_vis_date, + e.date_started + from (select e.patient_id, + min(e.date_started) as date_started, + max(e.date_started) as last_art_date, + mid(min(concat(e.date_started, e.regimen_name)), 11) as regimen, + mid(min(concat(e.date_started, e.regimen_line)), 11) as regimen_line, + mid(max(concat(e.date_started, e.regimen_name)), 11) as last_regimen, + mid(max(concat(e.date_started, e.regimen_line)), 11) as last_regimen_line, + max(if(discontinued, 1, 0)) as alternative_regimen + from kenyaemr_etl.etl_drug_event e + group by e.patient_id) e + left outer join kenyaemr_etl.etl_patient_hiv_followup fup on fup.patient_id = e.patient_id + group by e.patient_id) reg on reg.patient_id = hiv.patient_id + left join (select ca.patient_id + from kenyaemr_etl.etl_current_in_care ca + where ca.started_on_drugs is not null + ) cc on cc.patient_id = dm.patient_id + group by hiv.patient_id;"|CRS|1|ClientRegistryExtract|1.00|a6221aa4-0e85-11e8-ba89-0ed5f89f718b +3F6C522C-BA8C-46FA-8151-CDBA393C392D|Client Registry Service|CRS|A6221857-0E85-11E8-BA89-0ED5F89F718B|""|CRS|1|ClientRegistryExtract|1.00|a6221aa4-0e85-11e8-ba89-0ed5f89f718b +8B29B02B-B508-42EF-8FBE-48E1DB23DD6D|Client Registry Service|CRS|A6221858-0E85-11E8-BA89-0ED5F89F718B|""|CRS|1|ClientRegistryExtract|1.00|a6221aa4-0e85-11e8-ba89-0ed5f89f718b +e5e097ed-ec17-4b51-bd0c-b047a09b8b1f|Client Registry Service|CRS|a6221861-0e85-11e8-ba89-0ed5f89f718b|"select * from NDWH_Patients_UPI"|CRS|1|ClientRegistryExtract|1.00|A6221AA7-0E85-11E8-BA89-0ED5F89F718B diff --git a/src/Dwapi.SettingsManagement.Infrastructure/Seed/IntegrityChecks.csv b/src/Dwapi.SettingsManagement.Infrastructure/Seed/IntegrityChecks.csv index 30f7893c..10d22b7d 100644 --- a/src/Dwapi.SettingsManagement.Infrastructure/Seed/IntegrityChecks.csv +++ b/src/Dwapi.SettingsManagement.Infrastructure/Seed/IntegrityChecks.csv @@ -1,5 +1,5 @@ Id,Name,Description,Message,LogicType,Logic,Stage,Docket,EmrSystemId -d05864e8-678a-11eb-ae93-0242ac130002,AppVersion,DWAPI Application Version,You are using the latest version of DWAPI|You are using an outdated version of DWAPI. Please update your software to the latest version {1},1,2.6.0.0,0,NDWH,a6221856-0e85-11e8-ba89-0ed5f89f718b +d05864e8-678a-11eb-ae93-0242ac130002,AppVersion,DWAPI Application Version,You are using the latest version of DWAPI|You are using an outdated version of DWAPI. Please update your software to the latest version {1},1,2.7.2.5,0,NDWH,a6221856-0e85-11e8-ba89-0ed5f89f718b d0586c5e-678a-11eb-ae93-0242ac130002,EMR_ETL_Refresh,Last EMR ETL Refresh date,Your last EMR refresh date was {1} days ago|Please refresh your ETL Tables before loading the data. It has been {1} days since you last refreshed them.,3,5,0,NDWH,a6221856-0e85-11e8-ba89-0ed5f89f718b d0586d6c-678a-11eb-ae93-0242ac130002,TX_CURR,Current on ART,Your current on ART is {0}|Your current on ART is <0. Please confirm that you are loading a recently updated database,2,0,0,NDWH,a6221856-0e85-11e8-ba89-0ed5f89f718b d0586e3e-678a-11eb-ae93-0242ac130002,LAST_ENCOUNTER_CREATE_DATE,Last EMR Encounter create date,Your last EMR encounter date was {1} days ago|You may be uploading an old database. The last EMR encounter create date is {1} days ago. Please confirm you have the latest database. ,3,5,0,NDWH,a6221856-0e85-11e8-ba89-0ed5f89f718b diff --git a/src/Dwapi.SettingsManagement.Infrastructure/SettingsContext.cs b/src/Dwapi.SettingsManagement.Infrastructure/SettingsContext.cs index 6c648306..95aa8f13 100644 --- a/src/Dwapi.SettingsManagement.Infrastructure/SettingsContext.cs +++ b/src/Dwapi.SettingsManagement.Infrastructure/SettingsContext.cs @@ -26,6 +26,7 @@ public SettingsContext(DbContextOptions options) : base(options public DbSet IntegrityCheckRuns { get; set; } public DbSet IndicatorKeys { get; set; } + public DbSet TransportLogs { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); @@ -40,6 +41,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(IntegrityChecks)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(IntegrityCheckRuns)}"); DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(IndicatorKeys)}"); + DapperPlusManager.Entity().Key(x => x.Id).Table($"{nameof(TransportLogs)}"); } public override void EnsureSeeded() diff --git a/src/Dwapi.SharedKernel.Infrastructure/Repository/BaseRepository.cs b/src/Dwapi.SharedKernel.Infrastructure/Repository/BaseRepository.cs index 1081eca2..3b2fdd14 100644 --- a/src/Dwapi.SharedKernel.Infrastructure/Repository/BaseRepository.cs +++ b/src/Dwapi.SharedKernel.Infrastructure/Repository/BaseRepository.cs @@ -28,6 +28,7 @@ protected BaseRepository(DbContext context) { Context = context; DbSet = context.Set(); + Dapper.SqlMapper.Settings.CommandTimeout = 0; } public virtual T Get(TId id) diff --git a/src/Dwapi.SharedKernel/DTOs/CombinedSendManifestDto.cs b/src/Dwapi.SharedKernel/DTOs/CombinedSendManifestDto.cs index a3169a76..4e899feb 100644 --- a/src/Dwapi.SharedKernel/DTOs/CombinedSendManifestDto.cs +++ b/src/Dwapi.SharedKernel/DTOs/CombinedSendManifestDto.cs @@ -5,10 +5,11 @@ public class CombinedSendManifestDto public SendManifestPackageDTO DwhPackage { get; set; } public SendManifestPackageDTO MpiPackage { get; set; } public bool SendMpi { get; set; } + public string JobId { get; set; } public bool IsValid() { return (null != DwhPackage && DwhPackage.IsValid()); } } -} \ No newline at end of file +} diff --git a/src/Dwapi.SharedKernel/DTOs/CrsSearchPackageDto.cs b/src/Dwapi.SharedKernel/DTOs/CrsSearchPackageDto.cs new file mode 100644 index 00000000..94d8b890 --- /dev/null +++ b/src/Dwapi.SharedKernel/DTOs/CrsSearchPackageDto.cs @@ -0,0 +1,155 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; + +namespace Dwapi.SharedKernel.DTOs +{ + public class CrsSearchPackageDto + { + + public CrsSearchPackageDto(Registry destination, CrsSearch crsSearch) + { + Destination = destination; + CrsSearch = crsSearch; + } + + public CrsSearchPackageDto() + { + } + + public Registry Destination { get; set; } + public CrsSearch CrsSearch { get; set; } + public string Endpoint { get; set; } + + public bool IsValid() + { + ValidationContext context = new ValidationContext(this); + List results = new List(); + return Validator.TryValidateObject(this, context, results, true); + } + + public string GetUrl(string endPoint = "") + { + Endpoint = string.IsNullOrWhiteSpace(endPoint) ? string.Empty : endPoint.HasToStartWith("/"); + var url = $"{Destination.Url}{Endpoint}"; + return url; + } + + } + + public class CrsSearch + { + public CrsSearch(string firstName, string middleName, string lastName, DateTime dateOfBirth, string sex, string county, string phoneNumber, string nationalId, string nextOfKinRelationship, + string cccNumber, string passport, string hudumaNumber, string birthCertificateNumber, string alienIdNo, string drivingLicenseNumber, string patientClinicNumber, string maritalStatus, + string occupation, string highestLevelOfEducation, string alternativePhoneNumber, string spousePhoneNumber, string nameOfNextOfKin, + string nextOfKinTelNo, string subCounty, string ward, string location, string village, string landmark, string facilityName, + string mflCode, DateTime dateOfInitiation, string treatmentOutcome, DateTime dateOfLastEncounter, DateTime dateOfLastViralLoad, + DateTime nextAppointmentDate, int patientPK, string siteCode, int facilityId, string emr, string project, string lastRegimen, + string lastRegimenLine, string lastViralLoadResult, DateTime dateOfHIVdiagnosis) + { + FirstName = firstName; + MiddleName = middleName; + LastName = lastName; + DateOfBirth = dateOfBirth; + Sex = sex; + County = county; + PhoneNumber = phoneNumber; + NationalId = nationalId; + NextOfKinRelationship = nextOfKinRelationship; + CCCNumber = cccNumber; + Passport = passport; + HudumaNumber = hudumaNumber; + BirthCertificateNumber = birthCertificateNumber; + AlienIdNo = alienIdNo; + DrivingLicenseNumber = drivingLicenseNumber; + PatientClinicNumber = patientClinicNumber; + + MaritalStatus = maritalStatus; + Occupation = occupation; + HighestLevelOfEducation = highestLevelOfEducation; + AlternativePhoneNumber = alternativePhoneNumber; + SpousePhoneNumber = spousePhoneNumber; + NameOfNextOfKin = nameOfNextOfKin; + NextOfKinTelNo = nextOfKinTelNo; + SubCounty = subCounty; + Ward = ward; + Location = location; + Village = village; + Landmark = landmark; + FacilityName = facilityName; + MFLCode = mflCode; + DateOfInitiation = dateOfInitiation; + TreatmentOutcome = treatmentOutcome; + DateOfLastEncounter = dateOfLastEncounter; + DateOfLastViralLoad = dateOfLastViralLoad; + NextAppointmentDate = nextAppointmentDate; + PatientPK = patientPK; + SiteCode = siteCode; + FacilityId = facilityId; + Emr = emr; + Project = project; + LastRegimen = lastRegimen; + LastRegimenLine = lastRegimenLine; + LastViralLoadResult = lastViralLoadResult; + DateOfHIVdiagnosis = dateOfHIVdiagnosis; + } + + public CrsSearch() + { + } + + [Required] + public string FirstName { get; set; } + public string MiddleName { get; set; } + [Required] + public string LastName { get; set; } + [Required] + public DateTime DateOfBirth { get; set; } + [Required] + public string Sex { get; set; } + public string County { get; set; } + public string PhoneNumber { get; set; } + public string NationalId { get; set; } + public string NextOfKinRelationship { get; set; } + + public string CCCNumber { get; set; } + public string Passport { get; set; } + public string HudumaNumber { get; set; } + public string BirthCertificateNumber { get; set; } + public string AlienIdNo { get; set; } + public string DrivingLicenseNumber { get; set; } + public string PatientClinicNumber { get; set; } + + public string MaritalStatus { get; set; } + public string Occupation { get; set; } + public string HighestLevelOfEducation { get; set; } + public string AlternativePhoneNumber { get; set; } + public string SpousePhoneNumber { get; set; } + public string NameOfNextOfKin { get; set; } + public string NextOfKinTelNo { get; set; } + public string SubCounty { get; set; } + public string Ward { get; set; } + public string Location { get; set; } + public string Village { get; set; } + public string Landmark { get; set; } + public string FacilityName { get; set; } + public string MFLCode { get; set; } + public DateTime? DateOfInitiation { get; set; } + public string TreatmentOutcome { get; set; } + public DateTime? DateOfLastEncounter { get; set; } + public DateTime? DateOfLastViralLoad { get; set; } + public DateTime? NextAppointmentDate { get; set; } + public int? PatientPK { get; set; } + public string SiteCode { get; set; } + public int? FacilityId { get; set; } + public string Emr { get; set;} + public string Project { get; set;} + public string LastRegimen { get; set; } + public string LastRegimenLine { get; set; } + DateTime? DateOfHIVdiagnosis { get; set;} + string LastViralLoadResult { get; set;} + } +} \ No newline at end of file diff --git a/src/Dwapi.SharedKernel/DTOs/CrsSearchResultDto.cs b/src/Dwapi.SharedKernel/DTOs/CrsSearchResultDto.cs new file mode 100644 index 00000000..eda3eaad --- /dev/null +++ b/src/Dwapi.SharedKernel/DTOs/CrsSearchResultDto.cs @@ -0,0 +1,51 @@ +using System; +using System.ComponentModel.DataAnnotations.Schema; + +namespace Dwapi.SharedKernel.DTOs +{ + public class CrsSearchResultDto + { + public string CCCNumber { get; set; } + public string NationalId { get; set; } + public string Passport { get; set; } + public string HudumaNumber { get; set; } + public string BirthCertificateNumber { get; set; } + public string AlienIdNo { get; set; } + public string DrivingLicenseNumber { get; set; } + public string PatientClinicNumber { get; set; } + public string FirstName { get; set; } + public string MiddleName { get; set; } + public string LastName { get; set; } + public DateTime? DateOfBirth { get; set; } + public string Sex { get; set; } + public string MaritalStatus { get; set; } + public string Occupation { get; set; } + public string HighestLevelOfEducation { get; set; } + public string PhoneNumber { get; set; } + public string AlternativePhoneNumber { get; set; } + public string SpousePhoneNumber { get; set; } + public string NameOfNextOfKin { get; set; } + public string NextOfKinRelationship { get; set; } + public string NextOfKinTelNo { get; set; } + public string County { get; set; } + public string SubCounty { get; set; } + public string Ward { get; set; } + public string Location { get; set; } + public string Village { get; set; } + public string Landmark { get; set; } + public string FacilityName { get; set; } + public string MFLCode { get; set; } + public DateTime? DateOfInitiation { get; set; } + public string TreatmentOutcome { get; set; } + public DateTime? DateOfLastEncounter { get; set; } + public DateTime? DateOfLastViralLoad { get; set; } + public DateTime? NextAppointmentDate { get; set; } + public int? PatientPK { get; set; } + public string SiteCode { get; set; } + public int? FacilityID { get; set; } + public string Emr { get; set;} + public string Project { get; set;} + public string LastRegimen { get; set; } + public string LastRegimenLine { get; set; } + } +} \ No newline at end of file diff --git a/src/Dwapi.SharedKernel/DTOs/SendManifestPackageDTO.cs b/src/Dwapi.SharedKernel/DTOs/SendManifestPackageDTO.cs index 1a635570..15befe8d 100644 --- a/src/Dwapi.SharedKernel/DTOs/SendManifestPackageDTO.cs +++ b/src/Dwapi.SharedKernel/DTOs/SendManifestPackageDTO.cs @@ -33,11 +33,14 @@ public bool IsValid() return null != Destination && !string.IsNullOrWhiteSpace(Destination.Url); } - public string GetUrl(string endPoint = "") + public string GetUrl(string endPoint = "",string version="") { Endpoint = string.IsNullOrWhiteSpace(endPoint) ? string.Empty : endPoint.HasToStartWith("/"); var url = $"{Destination.Url}{Endpoint}"; - return url; + if(string.IsNullOrWhiteSpace(version)) + return url; + + return url.Replace("/api/", $"/api/v{version}/"); } public EmrDto GetEmrDto() diff --git a/src/Dwapi.SharedKernel/Enum/ExtractType.cs b/src/Dwapi.SharedKernel/Enum/ExtractType.cs index 37d52fec..8a2498fe 100644 --- a/src/Dwapi.SharedKernel/Enum/ExtractType.cs +++ b/src/Dwapi.SharedKernel/Enum/ExtractType.cs @@ -19,6 +19,8 @@ public enum ExtractType DrugAlcoholScreening, Ovc, Otz, + Covid, + DefaulterTracing, PatientMnch, AncVisit, @@ -30,7 +32,14 @@ public enum ExtractType MnchEnrollment, MnchLab, MotherBabyPair, - PncVisit + PncVisit, + PatientPrep, + PrepAdverseEvent, + PrepBehaviourRisk, + PrepCareTermination, + PrepLab, + PrepPharmacy, + PrepVisit } } diff --git a/src/Dwapi.SharedKernel/Events/IHandler.cs b/src/Dwapi.SharedKernel/Events/IHandler.cs index d09a0dc3..0f868cf1 100644 --- a/src/Dwapi.SharedKernel/Events/IHandler.cs +++ b/src/Dwapi.SharedKernel/Events/IHandler.cs @@ -1,7 +1,9 @@ -namespace Dwapi.SharedKernel.Events +using System.Threading.Tasks; + +namespace Dwapi.SharedKernel.Events { public interface IHandler where T : IDomainEvent { - void Handle(T domainEvent); + Task Handle(T domainEvent); } -} \ No newline at end of file +} diff --git a/src/Dwapi.SharedKernel/Exchange/DwhManifest.cs b/src/Dwapi.SharedKernel/Exchange/DwhManifest.cs index 40e09166..12e03cc0 100644 --- a/src/Dwapi.SharedKernel/Exchange/DwhManifest.cs +++ b/src/Dwapi.SharedKernel/Exchange/DwhManifest.cs @@ -78,7 +78,7 @@ public static IEnumerable Create(IEnumerable pr list.Add(manifest); } - return list; + return list.OrderByDescending(x=>x.PatientPks.Count); } public void AddCargo(Metric metric) diff --git a/src/Dwapi.SharedKernel/Exchange/ISourceBag.cs b/src/Dwapi.SharedKernel/Exchange/ISourceBag.cs new file mode 100644 index 00000000..c4cf3907 --- /dev/null +++ b/src/Dwapi.SharedKernel/Exchange/ISourceBag.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using Dwapi.SharedKernel.Enum; + +namespace Dwapi.Contracts.Exchange +{ + public interface ISourceBag + { + string JobId { get; set; } + EmrSetup EmrSetup { get; set; } + UploadMode Mode { get; set; } + string DwapiVersion { get; set; } + int SiteCode { get; set; } + string Facility { get; set; } + Guid? ManifestId { get; set; } + Guid? SessionId { get; set; } + Guid? FacilityId { get; set; } + string Tag { get; set; } + List Extracts { get; set; } + } +} diff --git a/src/Dwapi.SharedKernel/Exchange/ManifestResponse.cs b/src/Dwapi.SharedKernel/Exchange/ManifestResponse.cs new file mode 100644 index 00000000..9345f136 --- /dev/null +++ b/src/Dwapi.SharedKernel/Exchange/ManifestResponse.cs @@ -0,0 +1,19 @@ +using System; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.SharedKernel.Exchange +{ + public class ManifestResponse + { + public int Code { get; set; } + public string Name { get; set; } + public string ManifestId { get; set; } + public string SessionId { get; set; } + public string JobId { get; set; } + public Guid FacilityId { get; set; } + public override string ToString() + { + return $"{Code}-{Name} M:{ManifestId}|J:{JobId}|F:[{FacilityId}]"; + } + } +} diff --git a/src/Dwapi.SharedKernel/Exchange/SendDhwManifestResponse.cs b/src/Dwapi.SharedKernel/Exchange/SendDhwManifestResponse.cs index 143c99e4..7efcde20 100644 --- a/src/Dwapi.SharedKernel/Exchange/SendDhwManifestResponse.cs +++ b/src/Dwapi.SharedKernel/Exchange/SendDhwManifestResponse.cs @@ -3,7 +3,7 @@ public class SendDhwManifestResponse { public string MasterFacility { get; set; } - + public ManifestResponse ManifestResponse{ get; set; } public SendDhwManifestResponse() { } @@ -13,6 +13,12 @@ public SendDhwManifestResponse(string masterFacility) MasterFacility = masterFacility; } + public SendDhwManifestResponse(ManifestResponse manifestResponse) + { + ManifestResponse = manifestResponse; + } + + public bool IsValid() { return !string.IsNullOrWhiteSpace(MasterFacility); @@ -22,4 +28,4 @@ public override string ToString() return $"{MasterFacility}"; } } -} \ No newline at end of file +} diff --git a/src/Dwapi.SharedKernel/Model/DbExtract.cs b/src/Dwapi.SharedKernel/Model/DbExtract.cs index 0f726628..6911b95d 100644 --- a/src/Dwapi.SharedKernel/Model/DbExtract.cs +++ b/src/Dwapi.SharedKernel/Model/DbExtract.cs @@ -37,7 +37,7 @@ private string GetName() if (Name.IsSameAs("HtsClient")) return "HtsClientsExtract"; - + return Name; } @@ -67,6 +67,7 @@ private string GetTempName() return "TempHtsPartnerNotificationServicesExtract"; if (Name.IsSameAs("HtsClientLinkage")) return "TempHtsClientsLinkageExtract"; + return $"Temp{TableName}"; } diff --git a/src/Dwapi.SharedKernel/Utility/Common.cs b/src/Dwapi.SharedKernel/Utility/Common.cs index 443b831e..9a791a6f 100644 --- a/src/Dwapi.SharedKernel/Utility/Common.cs +++ b/src/Dwapi.SharedKernel/Utility/Common.cs @@ -6,7 +6,10 @@ public static class Common { public static int GetProgress(int count, int total) { - return (int) Math.Round((double) (100 * count) / total); + var res=(int) Math.Round((double) (100 * count) / total); + if (res < 0) + return 100; + return res; } } } diff --git a/src/Dwapi.SharedKernel/Utility/DataRecordExtender.cs b/src/Dwapi.SharedKernel/Utility/DataRecordExtender.cs index a06badc1..a55dd243 100644 --- a/src/Dwapi.SharedKernel/Utility/DataRecordExtender.cs +++ b/src/Dwapi.SharedKernel/Utility/DataRecordExtender.cs @@ -27,7 +27,6 @@ public static string GetStringOrDefault(this IDataRecord reader, string columnNa return o; return null; } - return null; } diff --git a/src/Dwapi.UploadManagement.Core/Dwapi.UploadManagement.Core.csproj b/src/Dwapi.UploadManagement.Core/Dwapi.UploadManagement.Core.csproj index ea20c617..b832da3c 100644 --- a/src/Dwapi.UploadManagement.Core/Dwapi.UploadManagement.Core.csproj +++ b/src/Dwapi.UploadManagement.Core/Dwapi.UploadManagement.Core.csproj @@ -3,7 +3,7 @@ netcoreapp2.1 - + diff --git a/src/Dwapi.UploadManagement.Core/Event/Crs/CrsExtractSentEvent.cs b/src/Dwapi.UploadManagement.Core/Event/Crs/CrsExtractSentEvent.cs new file mode 100644 index 00000000..95c0d2a8 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Event/Crs/CrsExtractSentEvent.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.UploadManagement.Core.Event.Crs +{ + public class CrsExtractSentEvent : IDomainEvent + { + public List SentItems { get; } + + public CrsExtractSentEvent(List sentIds,SendStatus status, string statusInfo="") + { + SentItems = sentIds.Select(x => new SentItem(x,status, statusInfo)).ToList(); + } + public CrsExtractSentEvent(List sentItems) + { + + SentItems = sentItems; + } + } +} \ No newline at end of file diff --git a/src/Dwapi.UploadManagement.Core/Event/Prep/PrepExtractSentEvent.cs b/src/Dwapi.UploadManagement.Core/Event/Prep/PrepExtractSentEvent.cs new file mode 100644 index 00000000..387dad65 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Event/Prep/PrepExtractSentEvent.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.UploadManagement.Core.Event.Prep +{ + public class PrepExtractSentEvent : IDomainEvent + { + public List SentItems { get; } + + public PrepExtractSentEvent(List sentIds,SendStatus status,string extract, string statusInfo="") + { + SentItems = sentIds.Select(x => new SentItem(x,status, statusInfo,extract)).ToList(); + } + + public PrepExtractSentEvent(List sentItems) + { + + SentItems = sentItems; + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exceptions/HandshakeException.cs b/src/Dwapi.UploadManagement.Core/Exceptions/HandshakeException.cs new file mode 100644 index 00000000..551ad619 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exceptions/HandshakeException.cs @@ -0,0 +1,16 @@ +using System; + +namespace Dwapi.UploadManagement.Core.Exceptions +{ + public class HandshakeException : Exception + { + public HandshakeException() + { + } + + public HandshakeException(string msg) + : base(msg) + { + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Crs/CrsMessage.cs b/src/Dwapi.UploadManagement.Core/Exchange/Crs/CrsMessage.cs new file mode 100644 index 00000000..5881c9a9 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Crs/CrsMessage.cs @@ -0,0 +1,35 @@ +using System.Collections.Generic; +using System.Linq; +using Dwapi.SharedKernel.Utility; +using Dwapi.UploadManagement.Core.Model.Cbs.Dtos; +using Dwapi.UploadManagement.Core.Model.Crs; +using Dwapi.UploadManagement.Core.Model.Crs.Dtos; + +namespace Dwapi.UploadManagement.Core.Exchange.Crs +{ + public class CrsMessage + { + public List ClientRegistryExtracts { get; set; } + + public CrsMessage() + { + } + + public CrsMessage(List clientRegistryExtracts) + { + ClientRegistryExtracts = clientRegistryExtracts; + } + + public static List Create(List clientRegistryExtracts) + { + var list=new List(); + var chunks = clientRegistryExtracts.ToList().ChunkBy(500); + foreach (var chunk in chunks) + { + list.Add(new CrsMessage(chunk)); + } + + return list; + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Crs/CrsMessageBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Crs/CrsMessageBag.cs new file mode 100644 index 00000000..4c2e32a3 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Crs/CrsMessageBag.cs @@ -0,0 +1,25 @@ +using System.Collections.Generic; +using Dwapi.UploadManagement.Core.Model.Crs; +using Dwapi.UploadManagement.Core.Model.Crs.Dtos; + +namespace Dwapi.UploadManagement.Core.Exchange.Crs +{ + public class CrsMessageBag + { + public List Messages { get; set; } = new List(); + + public CrsMessageBag() + { + } + + public CrsMessageBag(List messages) + { + Messages = messages; + } + + public static CrsMessageBag Create(List clientRegistryExtracts) + { + return new CrsMessageBag(CrsMessage.Create(clientRegistryExtracts)); + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Crs/SendCrsResponse.cs b/src/Dwapi.UploadManagement.Core/Exchange/Crs/SendCrsResponse.cs new file mode 100644 index 00000000..afaaecae --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Crs/SendCrsResponse.cs @@ -0,0 +1,16 @@ +namespace Dwapi.UploadManagement.Core.Exchange.Crs +{ + public class SendCrsResponse + { + public string BatchKey { get; set; } + + public bool IsValid() + { + return !string.IsNullOrWhiteSpace(BatchKey); + } + public override string ToString() + { + return $"{BatchKey}"; + } + } +} \ No newline at end of file diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/AdverseEventsMessageBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/AdverseEventsMessageBag.cs index 8c5f9209..1529f323 100644 --- a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/AdverseEventsMessageBag.cs +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/AdverseEventsMessageBag.cs @@ -11,7 +11,7 @@ namespace Dwapi.UploadManagement.Core.Exchange.Dwh { public class AdverseEventsMessageBag:IAdverseEventsMessageBag { - private int stake = 5; + private int stake = 2; public string EndPoint => "PatientAdverseEvents"; public IMessage Message { get; set; } public List> Messages { get; set; } diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/CovidsMessage.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/CovidsMessage.cs new file mode 100644 index 00000000..790434c4 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/CovidsMessage.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using Dwapi.UploadManagement.Core.Interfaces.Exchange; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Dwh; +using Dwapi.UploadManagement.Core.Model.Dwh; +using Newtonsoft.Json; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh +{ + public class CovidsMessage:ICovidMessage + { + public Facility Facility + { + get + { + var facility = Demographic?.GetFacility(); + if (null != facility) + return facility; + return new Facility(); + } + } + public PatientExtractView Demographic { get; set; } + [JsonProperty(PropertyName = "CovidExtracts")] + public List Extracts { get; } = new List(); + + public List SendIds => GetIds(); + public List PatientIds { get; } + + [JsonProperty(PropertyName = "PCovidExtracts")] + public List CovidExtracts { get; set; } = new List(); + public bool HasContents => null != CovidExtracts && CovidExtracts.Any(); + + public CovidsMessage() + { + } + + public CovidsMessage(CovidExtractView patient) + { + patient.PatientExtractView.CovidExtracts=new List(); + Demographic = patient.PatientExtractView; + Extracts.Add(patient); + CovidExtracts.Add(patient); + } + + public CovidsMessage(PatientExtractView patient) + { + Demographic = patient; + Extracts = patient.CovidExtracts.ToList(); + CovidExtracts = patient.CovidExtracts.ToList(); + } + + public IMessage Generate(CovidExtractView extract) + { + return new CovidsMessage(extract); + } + + public List> GenerateMessages(List extracts) + { + var messages = new List>(); + extracts.ForEach(e => messages.Add(Generate(e))); + return messages; + } + + private List GetIds() + { + if (Extracts.Any()) + return Extracts.Select(x => x.Id).ToList(); + + return new List(); + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/CovidsMessageBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/CovidsMessageBag.cs new file mode 100644 index 00000000..fc4e133f --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/CovidsMessageBag.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; +using System.Linq; + using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; + using Dwapi.SharedKernel.Enum; + using Dwapi.UploadManagement.Core.Interfaces.Exchange; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Dwh; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh +{ + public class CovidsMessageBag:ICovidMessageBag + { + private int stake = 1; + public string EndPoint => "Covid"; + public IMessage Message { get; set; } + public List> Messages { get; set; } + public List SendIds => GetIds(); + public string ExtractName => "CovidExtract"; + public ExtractType ExtractType => ExtractType.Covid; + public string Docket => "NDWH"; + public string DocketExtract => nameof(CovidExtract); + + public int GetProgress(int count, int total) + { + if (total == 0) + return stake; + + var percentageStake= ((float)count / (float)total) * stake; + return (int) percentageStake; + } + + public CovidsMessageBag() + { + } + + public CovidsMessageBag(IMessage message) + { + Message = message; + } + + public CovidsMessageBag(List> messages) + { + Messages = messages; + } + + public CovidsMessageBag(CovidsMessage message) + { + Message = message; + } + + public static CovidsMessageBag Create(PatientExtractView patient) + { + var message = new CovidsMessage(patient); + return new CovidsMessageBag(message); + } + + + public IMessageBag Generate(List extracts) + { + var messages = new List>(); + foreach (var artExtractView in extracts) + { + var message = new CovidsMessage(artExtractView); + messages.Add(message); + } + + return new CovidsMessageBag(messages); + } + + private List GetIds() + { + var ids= Messages.SelectMany(x => x.SendIds).ToList(); + return ids; + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/DefaulterTracingsMessage.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/DefaulterTracingsMessage.cs new file mode 100644 index 00000000..273f9738 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/DefaulterTracingsMessage.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using Dwapi.UploadManagement.Core.Interfaces.Exchange; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Dwh; +using Dwapi.UploadManagement.Core.Model.Dwh; +using Newtonsoft.Json; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh +{ + public class DefaulterTracingsMessage:IDefaulterTracingMessage + { + public Facility Facility + { + get + { + var facility = Demographic?.GetFacility(); + if (null != facility) + return facility; + return new Facility(); + } + } + public PatientExtractView Demographic { get; set; } + [JsonProperty(PropertyName = "DefaulterTracingExtracts")] + public List Extracts { get; } = new List(); + + public List SendIds => GetIds(); + public List PatientIds { get; } + + [JsonProperty(PropertyName = "PDefaulterTracingExtracts")] + public List DefaulterTracingExtracts { get; set; } = new List(); + public bool HasContents => null != DefaulterTracingExtracts && DefaulterTracingExtracts.Any(); + + public DefaulterTracingsMessage() + { + } + + public DefaulterTracingsMessage(DefaulterTracingExtractView patient) + { + patient.PatientExtractView.DefaulterTracingExtracts=new List(); + Demographic = patient.PatientExtractView; + Extracts.Add(patient); + DefaulterTracingExtracts.Add(patient); + } + + public DefaulterTracingsMessage(PatientExtractView patient) + { + Demographic = patient; + Extracts = patient.DefaulterTracingExtracts.ToList(); + DefaulterTracingExtracts = patient.DefaulterTracingExtracts.ToList(); + } + + public IMessage Generate(DefaulterTracingExtractView extract) + { + return new DefaulterTracingsMessage(extract); + } + + public List> GenerateMessages(List extracts) + { + var messages = new List>(); + extracts.ForEach(e => messages.Add(Generate(e))); + return messages; + } + + private List GetIds() + { + if (Extracts.Any()) + return Extracts.Select(x => x.Id).ToList(); + + return new List(); + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/DefaulterTracingsMessageBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/DefaulterTracingsMessageBag.cs new file mode 100644 index 00000000..029a7d3c --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/DefaulterTracingsMessageBag.cs @@ -0,0 +1,77 @@ +using System; +using System.Collections.Generic; +using System.Linq; + using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; + using Dwapi.SharedKernel.Enum; + using Dwapi.UploadManagement.Core.Interfaces.Exchange; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Dwh; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh +{ + public class DefaulterTracingsMessageBag:IDefaulterTracingMessageBag + { + private int stake = 5; + public string EndPoint => "DefaulterTracing"; + public IMessage Message { get; set; } + public List> Messages { get; set; } + public List SendIds => GetIds(); + public string ExtractName => "DefaulterTracingExtract"; + public ExtractType ExtractType => ExtractType.DefaulterTracing; + public string Docket => "NDWH"; + public string DocketExtract => nameof(DefaulterTracingExtract); + + public int GetProgress(int count, int total) + { + if (total == 0) + return stake; + + var percentageStake= ((float)count / (float)total) * stake; + return (int) percentageStake; + } + + public DefaulterTracingsMessageBag() + { + } + + public DefaulterTracingsMessageBag(IMessage message) + { + Message = message; + } + + public DefaulterTracingsMessageBag(List> messages) + { + Messages = messages; + } + + public DefaulterTracingsMessageBag(DefaulterTracingsMessage message) + { + Message = message; + } + + public static DefaulterTracingsMessageBag Create(PatientExtractView patient) + { + var message = new DefaulterTracingsMessage(patient); + return new DefaulterTracingsMessageBag(message); + } + + + public IMessageBag Generate(List extracts) + { + var messages = new List>(); + foreach (var artExtractView in extracts) + { + var message = new DefaulterTracingsMessage(artExtractView); + messages.Add(message); + } + + return new DefaulterTracingsMessageBag(messages); + } + + private List GetIds() + { + var ids= Messages.SelectMany(x => x.SendIds).ToList(); + return ids; + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/SendCTResponse.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/SendCTResponse.cs index 8935d8ae..98b44814 100644 --- a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/SendCTResponse.cs +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/SendCTResponse.cs @@ -1,19 +1,21 @@ using System.Collections.Generic; using System.Linq; -namespace Dwapi.UploadManagement.Core.Exchange.Dwh -{ - public class SendCTResponse - { - public List BatchKey { get; set; } + namespace Dwapi.UploadManagement.Core.Exchange.Dwh + { + public class SendCTResponse + { + public string JobId { get; set; } + public List BatchKey { get; set; } - public bool IsValid() - { - return BatchKey.Any(); - } - public override string ToString() - { - return $"{BatchKey}"; - } - } -} + public bool IsValid() + { + return BatchKey.Any(); + } + + public override string ToString() + { + return $"{BatchKey}"; + } + } + } diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/AdverseEventMessageSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/AdverseEventMessageSourceBag.cs new file mode 100644 index 00000000..19266544 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/AdverseEventMessageSourceBag.cs @@ -0,0 +1,15 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class AdverseEventMessageSourceBag : MessageSourceBag + { + public override string EndPoint => "PatientAdverseEvents"; + public override string ExtractName => $"PatientAdverseEventExtract"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.PatientAdverseEvent; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/AllergiesChronicIllnessMessageSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/AllergiesChronicIllnessMessageSourceBag.cs new file mode 100644 index 00000000..c7d7212c --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/AllergiesChronicIllnessMessageSourceBag.cs @@ -0,0 +1,15 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class AllergiesChronicIllnessMessageSourceBag : MessageSourceBag + { + public override string EndPoint => "AllergiesChronicIllness"; + public override string ExtractName => $"AllergiesChronicIllnessExtract"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.AllergiesChronicIllness; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/ArtMessageSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/ArtMessageSourceBag.cs new file mode 100644 index 00000000..d92006d6 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/ArtMessageSourceBag.cs @@ -0,0 +1,15 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class ArtMessageSourceBag : MessageSourceBag + { + public override string EndPoint => "PatientArt"; + public override string ExtractName => $"PatientArtExtract"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.PatientArt; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/BaselineMessageSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/BaselineMessageSourceBag.cs new file mode 100644 index 00000000..fdde2465 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/BaselineMessageSourceBag.cs @@ -0,0 +1,15 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class BaselineMessageSourceBag : MessageSourceBag{ + public override string EndPoint => "PatientBaselines"; + public override string ExtractName => $"PatientBaselineExtract"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.PatientBaseline; + + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/ContactListingMessageSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/ContactListingMessageSourceBag.cs new file mode 100644 index 00000000..56a010f5 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/ContactListingMessageSourceBag.cs @@ -0,0 +1,15 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class ContactListingMessageSourceBag : MessageSourceBag{ + public override string EndPoint => "ContactListing"; + public override string ExtractName => $"{nameof(ContactListingExtract)}"; + + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.ContactListing; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/CovidMessageSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/CovidMessageSourceBag.cs new file mode 100644 index 00000000..fef33596 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/CovidMessageSourceBag.cs @@ -0,0 +1,14 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class CovidMessageSourceBag : MessageSourceBag{ + public override string EndPoint => "Covid"; + public override string ExtractName => $"{nameof(CovidExtract)}"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.Covid; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/DefaulterTracingSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/DefaulterTracingSourceBag.cs new file mode 100644 index 00000000..426f7f38 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/DefaulterTracingSourceBag.cs @@ -0,0 +1,14 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class DefaulterTracingMessageSourceBag : MessageSourceBag{ + public override string EndPoint => "DefaulterTracing"; + public override string ExtractName => $"{nameof(DefaulterTracingExtract)}"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.DefaulterTracing; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/DepressionScreeningSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/DepressionScreeningSourceBag.cs new file mode 100644 index 00000000..e574957c --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/DepressionScreeningSourceBag.cs @@ -0,0 +1,14 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class DepressionScreeningMessageSourceBag : MessageSourceBag{ + public override string EndPoint => "DepressionScreening"; + public override string ExtractName => $"{nameof(DepressionScreeningExtract)}"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.DepressionScreening; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/DrugAlcoholScreeningSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/DrugAlcoholScreeningSourceBag.cs new file mode 100644 index 00000000..2a379713 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/DrugAlcoholScreeningSourceBag.cs @@ -0,0 +1,14 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class DrugAlcoholScreeningMessageSourceBag : MessageSourceBag{ + public override string EndPoint => "DrugAlcoholScreening"; + public override string ExtractName => $"{nameof(DrugAlcoholScreeningExtract)}"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.DrugAlcoholScreening; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/EnhancedAdherenceCounsellingSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/EnhancedAdherenceCounsellingSourceBag.cs new file mode 100644 index 00000000..5ffea0f5 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/EnhancedAdherenceCounsellingSourceBag.cs @@ -0,0 +1,14 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class EnhancedAdherenceCounsellingMessageSourceBag : MessageSourceBag{ + public override string EndPoint => "EnhancedAdherenceCounselling"; + public override string ExtractName => $"{nameof(EnhancedAdherenceCounsellingExtract)}"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.EnhancedAdherenceCounselling; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/GbvScreeningSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/GbvScreeningSourceBag.cs new file mode 100644 index 00000000..1c0cacf2 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/GbvScreeningSourceBag.cs @@ -0,0 +1,14 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class GbvScreeningMessageSourceBag : MessageSourceBag{ + public override string EndPoint => "GbvScreening"; + public override string ExtractName => $"{nameof(GbvScreeningExtract)}"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.GbvScreening; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/IptSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/IptSourceBag.cs new file mode 100644 index 00000000..b9c4dd9e --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/IptSourceBag.cs @@ -0,0 +1,14 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class IptMessageSourceBag : MessageSourceBag{ + public override string EndPoint => "Ipt"; + public override string ExtractName => $"{nameof(IptExtract)}"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.Ipt; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/LaboratorySourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/LaboratorySourceBag.cs new file mode 100644 index 00000000..9f77f149 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/LaboratorySourceBag.cs @@ -0,0 +1,14 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class LaboratoryMessageSourceBag : MessageSourceBag{ + public override string EndPoint => "PatientLabs"; + public override string ExtractName => $"PatientLabExtract"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.PatientLab; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/MessageSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/MessageSourceBag.cs new file mode 100644 index 00000000..f32c6c1f --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/MessageSourceBag.cs @@ -0,0 +1,62 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Newtonsoft.Json; + +namespace Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct +{ + public abstract class MessageSourceBag:IMessageSourceBag where T : ClientExtract + { + public virtual string JobId { get; set; } + public virtual EmrSetup EmrSetup { get; set; } + public virtual UploadMode Mode { get; set; } + public virtual string DwapiVersion { get; set; } + public virtual int SiteCode { get; set; } + public virtual string Facility { get; set; } + public virtual Guid? ManifestId { get; set; } + public virtual Guid? SessionId { get; set; } + public virtual Guid? FacilityId { get; set; } + public virtual string Tag { get; set; } + public virtual List Extracts { get; set; } = new List(); + public virtual int Stake => 100; + [JsonIgnore] + public virtual string EndPoint { get; } + [JsonIgnore] + public virtual string ExtractName { get; } + [JsonIgnore] + public virtual ExtractType ExtractType { get; } + public virtual string Docket => "NDWH"; + public virtual string DocketExtract { get; } + [JsonIgnore] + public virtual List SendIds =>GetIds(); + public int MinPk => Extracts.Min(x => x.PatientPK); + public int MaxPk => Extracts.Max(x => x.PatientPK); + + private List GetIds() + { + return Extracts + .Select(x => x.Id) + .ToList(); + } + + + public void Generate(List extracts, Guid manifestId,Guid facilityId, string jobId) + { + Extracts = extracts; + ManifestId = manifestId; + FacilityId = facilityId; + JobId = jobId; + } + + public virtual int GetProgress(int count, int total) + { + if (total == 0) + return Stake; + + var percentageStake= ((float)count / (float)total) * Stake; + return (int) percentageStake; + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/OtzSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/OtzSourceBag.cs new file mode 100644 index 00000000..1a0ce160 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/OtzSourceBag.cs @@ -0,0 +1,15 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class OtzMessageSourceBag : MessageSourceBag{ + public override string EndPoint => "Otz"; + public override string ExtractName => $"{nameof(OtzExtract)}"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.Otz; + + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/OvcSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/OvcSourceBag.cs new file mode 100644 index 00000000..93bc15af --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/OvcSourceBag.cs @@ -0,0 +1,14 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class OvcMessageSourceBag : MessageSourceBag{ + public override string EndPoint => "Ovc"; + public override string ExtractName => $"{nameof(OvcExtract)}"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.Ovc; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/PatientSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/PatientSourceBag.cs new file mode 100644 index 00000000..79f22dae --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/PatientSourceBag.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class PatientMessageSourceBag : MessageSourceBag + { + public override string EndPoint => "Patient"; + public override string ExtractName => $"{nameof(PatientExtract)}"; + + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.Patient; + + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/PharmacySourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/PharmacySourceBag.cs new file mode 100644 index 00000000..2eb4e2a7 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/PharmacySourceBag.cs @@ -0,0 +1,15 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class PharmacyMessageSourceBag : MessageSourceBag{ + public override string EndPoint => "PatientPharmacy"; + public override string ExtractName => $"PatientPharmacyExtract"; + + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.PatientPharmacy; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/StatusSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/StatusSourceBag.cs new file mode 100644 index 00000000..65a9b42e --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/StatusSourceBag.cs @@ -0,0 +1,15 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class StatusMessageSourceBag : MessageSourceBag + { + public override string EndPoint => "PatientStatus"; + public override string ExtractName => $"PatientStatusExtract"; + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.PatientStatus; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/VisitSourceBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/VisitSourceBag.cs new file mode 100644 index 00000000..ad9d3e22 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/Smart/VisitSourceBag.cs @@ -0,0 +1,16 @@ +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Exchange.Dwh.Smart +{ + public class VisitMessageSourceBag : MessageSourceBag + { + public override string EndPoint => "PatientVisits"; + public override string ExtractName => $"PatientVisitExtract"; + + public override string DocketExtract => ExtractName; + public override ExtractType ExtractType => ExtractType.PatientVisit; + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/VisitsMessageBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/VisitsMessageBag.cs index 5a728efb..6b972124 100644 --- a/src/Dwapi.UploadManagement.Core/Exchange/Dwh/VisitsMessageBag.cs +++ b/src/Dwapi.UploadManagement.Core/Exchange/Dwh/VisitsMessageBag.cs @@ -11,7 +11,7 @@ namespace Dwapi.UploadManagement.Core.Exchange.Dwh { public class VisitsMessageBag:IVisitMessageBag { - private int stake = 15; + private int stake = 12; public string EndPoint => "PatientVisits"; public IMessage Message { get; set; } public List> Messages { get; set; } diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Hts/HtsMessage.cs b/src/Dwapi.UploadManagement.Core/Exchange/Hts/HtsMessage.cs index 80d4887e..6e992388 100644 --- a/src/Dwapi.UploadManagement.Core/Exchange/Hts/HtsMessage.cs +++ b/src/Dwapi.UploadManagement.Core/Exchange/Hts/HtsMessage.cs @@ -14,6 +14,7 @@ public class HtsMessage public List PartnerNotificationServices { get; set; } = new List(); public List TestKits { get; set; } = new List(); public List ClientLinkage { get; set; } = new List(); + public List HTSEligibility { get; set; } = new List(); public HtsMessage() { @@ -47,6 +48,10 @@ public HtsMessage(List testKits) { TestKits = testKits; } + public HtsMessage(List htsEligibilityExtract) + { + HTSEligibility = htsEligibilityExtract; + } public static List Create(List clients) { @@ -129,6 +134,17 @@ public static List Create(List testkits) list.Add(new HtsMessage(chunk)); } + return list; + } + public static List Create(List htsEligibilityExtract) + { + var list = new List(); + var chunks = htsEligibilityExtract.ToList().ChunkBy(500); + foreach (var chunk in chunks) + { + list.Add(new HtsMessage(chunk)); + } + return list; } } diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Hts/HtsMessageBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Hts/HtsMessageBag.cs index d593e18c..f4cb0068 100644 --- a/src/Dwapi.UploadManagement.Core/Exchange/Hts/HtsMessageBag.cs +++ b/src/Dwapi.UploadManagement.Core/Exchange/Hts/HtsMessageBag.cs @@ -44,5 +44,9 @@ public static HtsMessageBag Create(List patientIndices) { return new HtsMessageBag(HtsMessage.Create(patientIndices)); } + public static HtsMessageBag Create(List patientIndices) + { + return new HtsMessageBag(HtsMessage.Create(patientIndices)); + } } } diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Mnch/MnchMessage.cs b/src/Dwapi.UploadManagement.Core/Exchange/Mnch/MnchMessage.cs index b48f074f..fd2a714c 100644 --- a/src/Dwapi.UploadManagement.Core/Exchange/Mnch/MnchMessage.cs +++ b/src/Dwapi.UploadManagement.Core/Exchange/Mnch/MnchMessage.cs @@ -8,7 +8,7 @@ namespace Dwapi.UploadManagement.Core.Exchange.Mnch { public class MnchMessage { - private static readonly int batch = 2; + private static readonly int batch = 200; public List PatientMnchExtracts { get; set; } = new List(); public List MnchEnrolmentExtracts { get; set; } = new List(); public List MnchArtExtracts { get; set; } = new List(); diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Prep/PrepMessage.cs b/src/Dwapi.UploadManagement.Core/Exchange/Prep/PrepMessage.cs new file mode 100644 index 00000000..96657fed --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Prep/PrepMessage.cs @@ -0,0 +1,139 @@ +using System.Collections.Generic; +using System.Linq; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Utility; +using Humanizer; + +namespace Dwapi.UploadManagement.Core.Exchange.Prep +{ + public class PrepMessage + { + private static readonly int batch = 200; + public List PatientPrepExtracts { get; set; } = new List(); + public List PrepAdverseEventExtracts { get; set; } = new List(); + public List PrepBehaviourRiskExtracts { get; set; } = new List(); + public List PrepCareTerminationExtracts { get; set; } = new List(); + public List PrepLabExtracts { get; set; } = new List(); + public List PrepPharmacyExtracts { get; set; } = new List(); + public List PrepVisitExtracts { get; set; } = new List(); + + public PrepMessage() + { + } + + public PrepMessage(List extracts) + { + PatientPrepExtracts = extracts; + } + public PrepMessage(List extracts) + { + PrepAdverseEventExtracts = extracts; + } + public PrepMessage(List extracts) + { + PrepBehaviourRiskExtracts = extracts; + } + public PrepMessage(List extracts) + { + PrepCareTerminationExtracts = extracts; + } + + public PrepMessage(List extracts) + { + PrepLabExtracts = extracts; + } + + public PrepMessage(List extracts) + { + PrepPharmacyExtracts = extracts; + } + public PrepMessage(List extracts) + { + PrepVisitExtracts = extracts; + } + + public static List Create(List extracts) + { + var list = new List(); + var chunks = extracts.ToList().ChunkBy(batch); + foreach (var chunk in chunks) + { + list.Add(new PrepMessage(chunk)); + } + + return list; + } + + public static List Create(List extracts) + { + var list = new List(); + var chunks = extracts.ToList().ChunkBy(batch); + foreach (var chunk in chunks) + { + list.Add(new PrepMessage(chunk)); + } + + return list; + } + public static List Create(List extracts) + { + var list = new List(); + var chunks = extracts.ToList().ChunkBy(batch); + foreach (var chunk in chunks) + { + list.Add(new PrepMessage(chunk)); + } + + return list; + } + + + public static List Create(List extracts) + { + var list = new List(); + var chunks = extracts.ToList().ChunkBy(batch); + foreach (var chunk in chunks) + { + list.Add(new PrepMessage(chunk)); + } + + return list; + } + + public static List Create(List extracts) + { + var list = new List(); + var chunks = extracts.ToList().ChunkBy(batch); + foreach (var chunk in chunks) + { + list.Add(new PrepMessage(chunk)); + } + + return list; + } + public static List Create(List extracts) + { + var list = new List(); + var chunks = extracts.ToList().ChunkBy(batch); + foreach (var chunk in chunks) + { + list.Add(new PrepMessage(chunk)); + } + + return list; + } + + public static List Create(List extracts) + { + var list = new List(); + var chunks = extracts.ToList().ChunkBy(batch); + foreach (var chunk in chunks) + { + list.Add(new PrepMessage(chunk)); + } + + return list; + } + + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Prep/PrepMessageBag.cs b/src/Dwapi.UploadManagement.Core/Exchange/Prep/PrepMessageBag.cs new file mode 100644 index 00000000..7deef9ef --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Prep/PrepMessageBag.cs @@ -0,0 +1,46 @@ +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; + +namespace Dwapi.UploadManagement.Core.Exchange.Prep +{ + public class PrepMessageBag + { + public List Messages { get; set; } = new List(); + + public PrepMessageBag() + { + } + public PrepMessageBag(List messages) + { + Messages = messages; + } + public static PrepMessageBag Create(List extracts) + { + return new PrepMessageBag(PrepMessage.Create(extracts)); + } + public static PrepMessageBag Create(List extracts) + { + return new PrepMessageBag(PrepMessage.Create(extracts)); + } + public static PrepMessageBag Create(List extracts) + { + return new PrepMessageBag(PrepMessage.Create(extracts)); + } + public static PrepMessageBag Create(List extracts) + { + return new PrepMessageBag(PrepMessage.Create(extracts)); + } + public static PrepMessageBag Create(List extracts) + { + return new PrepMessageBag(PrepMessage.Create(extracts)); + } + public static PrepMessageBag Create(List extracts) + { + return new PrepMessageBag(PrepMessage.Create(extracts)); + } + public static PrepMessageBag Create(List extracts) + { + return new PrepMessageBag(PrepMessage.Create(extracts)); + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Exchange/Prep/SendPrepResponse.cs b/src/Dwapi.UploadManagement.Core/Exchange/Prep/SendPrepResponse.cs new file mode 100644 index 00000000..cf83d291 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Exchange/Prep/SendPrepResponse.cs @@ -0,0 +1,16 @@ +namespace Dwapi.UploadManagement.Core.Exchange.Prep +{ + public class SendPrepResponse + { + public string BatchKey { get; set; } + + public bool IsValid() + { + return !string.IsNullOrWhiteSpace(BatchKey); + } + public override string ToString() + { + return $"{BatchKey}"; + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/Dwh/ICovidMessage.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/Dwh/ICovidMessage.cs new file mode 100644 index 00000000..9826c9e7 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/Dwh/ICovidMessage.cs @@ -0,0 +1,6 @@ +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Interfaces.Exchange.Dwh +{ + public interface ICovidMessage : IMessage{} +} diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/Dwh/ICovidMessageBag.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/Dwh/ICovidMessageBag.cs new file mode 100644 index 00000000..2a9aa105 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/Dwh/ICovidMessageBag.cs @@ -0,0 +1,6 @@ +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Interfaces.Exchange.Dwh +{ + public interface ICovidMessageBag : IMessageBag{} +} diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/Dwh/IDefaulterTracingMessage.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/Dwh/IDefaulterTracingMessage.cs new file mode 100644 index 00000000..c6e21e0c --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/Dwh/IDefaulterTracingMessage.cs @@ -0,0 +1,6 @@ +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Interfaces.Exchange.Dwh +{ + public interface IDefaulterTracingMessage : IMessage{} +} diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/Dwh/IDefaulterTracingMessageBag.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/Dwh/IDefaulterTracingMessageBag.cs new file mode 100644 index 00000000..b480fef0 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/Dwh/IDefaulterTracingMessageBag.cs @@ -0,0 +1,6 @@ +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Interfaces.Exchange.Dwh +{ + public interface IDefaulterTracingMessageBag : IMessageBag{} +} diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/IMessageSourceBag.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/IMessageSourceBag.cs new file mode 100644 index 00000000..f92406af --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Exchange/IMessageSourceBag.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using Dwapi.Contracts.Exchange; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Dwapi.SharedKernel.Enum; +using Dwapi.UploadManagement.Core.Interfaces.Exchange.Ct; +using Humanizer; + +namespace Dwapi.UploadManagement.Core.Interfaces.Exchange +{ + public interface IMessageSourceBag:ISourceBag + where T:ClientExtract + { + int Stake { get; } + string EndPoint { get; } + string ExtractName { get; } + ExtractType ExtractType { get; } + string Docket { get; } + string DocketExtract { get; } + List SendIds { get; } + int MinPk { get; } + int MaxPk { get; } + void Generate(List extracts,Guid manifestId,Guid facilityId,string jobId); + int GetProgress(int count, int total); + } +} diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Crs/ICrsPackager.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Crs/ICrsPackager.cs new file mode 100644 index 00000000..7497b9d4 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Crs/ICrsPackager.cs @@ -0,0 +1,16 @@ +using System.Collections.Generic; +using Dwapi.SharedKernel.DTOs; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Exchange; +using Dwapi.UploadManagement.Core.Model.Crs; +using Dwapi.UploadManagement.Core.Model.Crs.Dtos; + +namespace Dwapi.UploadManagement.Core.Interfaces.Packager.Crs +{ + public interface ICrsPackager + { + IEnumerable Generate(EmrDto emrDto); + IEnumerable GenerateWithMetrics(EmrDto emrDto); + IEnumerable GenerateCrs(); + } +} diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Dwh/IDwhPackager.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Dwh/IDwhPackager.cs index 6a6965df..2120f7f8 100644 --- a/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Dwh/IDwhPackager.cs +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Dwh/IDwhPackager.cs @@ -17,7 +17,9 @@ public interface IDwhPackager PatientExtractView GenerateExtracts(Guid id); IEnumerable GenerateBatchExtracts(int page,int batchSize) where T : Entity; + IEnumerable GenerateSmartBatchExtracts(int page,int batchSize) where T : Entity; IEnumerable GenerateBatchExtracts(int page,int batchSize) where T :ClientExtract; + IEnumerable GenerateSmartBatchExtracts(int page,int batchSize) where T :ClientExtract; IEnumerable GenerateDiffBatchExtracts(int page, int batchSize, string docket, string extract) where T : ClientExtract; diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Hts/IHtsPackager.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Hts/IHtsPackager.cs index 8c933556..11369988 100644 --- a/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Hts/IHtsPackager.cs +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Hts/IHtsPackager.cs @@ -1,5 +1,7 @@ using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Hts; using Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts; +using Dwapi.ExtractsManagement.Core.Model.Source.Hts; using Dwapi.SharedKernel.DTOs; using Dwapi.SharedKernel.Enum; using Dwapi.SharedKernel.Exchange; @@ -20,6 +22,8 @@ public interface IHtsPackager IEnumerable GeneratePartnerTracing(); IEnumerable GeneratePartnerNotificationServices(); IEnumerable GenerateClientLinkage(); + IEnumerable GenerateHtsEligibilityExtracts(); + } -} +} \ No newline at end of file diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Prep/IPrepPackager.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Prep/IPrepPackager.cs new file mode 100644 index 00000000..7dad7743 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Packager/Prep/IPrepPackager.cs @@ -0,0 +1,20 @@ +using System.Collections.Generic; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.DTOs; +using Dwapi.SharedKernel.Exchange; + +namespace Dwapi.UploadManagement.Core.Interfaces.Packager.Prep +{ + public interface IPrepPackager + { + IEnumerable Generate(EmrDto emrDto); + IEnumerable GenerateWithMetrics(EmrDto emrDto); + IEnumerable GeneratePatientPreps(); + IEnumerable GeneratePrepAdverseEvents(); + IEnumerable GeneratePrepBehaviourRisks(); + IEnumerable GeneratePrepCareTerminations(); + IEnumerable GeneratePrepLabs(); + IEnumerable GeneratePrepPharmacys(); + IEnumerable GeneratePrepVisits(); + } +} diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Crs/ICrsExtractReader.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Crs/ICrsExtractReader.cs new file mode 100644 index 00000000..26990167 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Crs/ICrsExtractReader.cs @@ -0,0 +1,13 @@ +using System.Collections.Generic; +using Dwapi.SharedKernel.Model; +using Dwapi.UploadManagement.Core.Model.Crs; + +namespace Dwapi.UploadManagement.Core.Interfaces.Reader.Crs +{ + public interface ICrsExtractReader + { + IEnumerable ReadAll(); + IEnumerable GetSites(); + IEnumerable GetSitePatientProfiles(); + } +} diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Dwh/IDwhExtractReader.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Dwh/IDwhExtractReader.cs index 81b9c935..c5935cd9 100644 --- a/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Dwh/IDwhExtractReader.cs +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Dwh/IDwhExtractReader.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq.Expressions; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; using Dwapi.ExtractsManagement.Core.Model.Diff; using Dwapi.SharedKernel.Model; using Dwapi.UploadManagement.Core.Model.Dwh; @@ -18,6 +19,10 @@ public interface IDwhExtractReader IEnumerable Read(int page, int pageSize) where T : Entity; IEnumerable Read(int page, int pageSize, Expression> predicate) where T : Entity; + + IEnumerable ReadSmart(int page, int pageSize) where T : ClientExtract; + IEnumerable ReadSmart(int page, int pageSize) where T : Entity; + IEnumerable ReadSmart(int page, int pageSize, Expression> predicate) where T : Entity; IEnumerable ReadMainExtract(int page, int pageSize, Expression> predicate) where T : Entity; long GetTotalRecords() where T : Entity; diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Hts/IHtsExtractReader.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Hts/IHtsExtractReader.cs index 4b75df79..a7819c26 100644 --- a/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Hts/IHtsExtractReader.cs +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Hts/IHtsExtractReader.cs @@ -13,7 +13,9 @@ public interface IHtsExtractReader IEnumerable ReadAllPartnerTracing(); IEnumerable ReadAllPartnerNotificationServices(); IEnumerable ReadAllClientsLinkage(); + IEnumerable ReadAllHtsEligibilityExtracts(); + IEnumerable GetSites(); IEnumerable GetSitePatientProfiles(); } -} +} \ No newline at end of file diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Prep/IPrepExtractReader.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Prep/IPrepExtractReader.cs new file mode 100644 index 00000000..9fae194e --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Reader/Prep/IPrepExtractReader.cs @@ -0,0 +1,19 @@ +using System.Collections.Generic; +using Dwapi.SharedKernel.Model; +using Dwapi.UploadManagement.Core.Model.Prep; + +namespace Dwapi.UploadManagement.Core.Interfaces.Reader.Prep +{ + public interface IPrepExtractReader + { + IEnumerable GetSites(); + IEnumerable GetSitePatientProfiles(); + IEnumerable ReadAllPatientPreps(); + IEnumerable ReadAllPrepAdverseEvents(); + IEnumerable ReadAllPrepBehaviourRisks(); + IEnumerable ReadAllPrepCareTerminations(); + IEnumerable ReadAllPrepLabs(); + IEnumerable ReadAllPrepPharmacys(); + IEnumerable ReadAllPrepVisits(); + } +} diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Services/Crs/ICrsSearchService.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Services/Crs/ICrsSearchService.cs new file mode 100644 index 00000000..ca269e14 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Services/Crs/ICrsSearchService.cs @@ -0,0 +1,11 @@ +using System.Collections.Generic; +using System.Threading.Tasks; +using Dwapi.SharedKernel.DTOs; + +namespace Dwapi.UploadManagement.Core.Interfaces.Services.Crs +{ + public interface ICrsSearchService + { + Task> SearchCrsAsync (CrsSearchPackageDto crsSearchPackage); + } +} \ No newline at end of file diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Services/Crs/ICrsSendService.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Services/Crs/ICrsSendService.cs new file mode 100644 index 00000000..3976cc21 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Services/Crs/ICrsSendService.cs @@ -0,0 +1,21 @@ +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using Dwapi.SharedKernel.DTOs; +using Dwapi.SharedKernel.Exchange; +using Dwapi.UploadManagement.Core.Exchange.Crs; + +namespace Dwapi.UploadManagement.Core.Interfaces.Services.Crs +{ + public interface ICrsSendService + { + HttpClient Client { get; set; } + Task> SendManifestAsync(SendManifestPackageDTO sendTo,string version); + + Task> SendCrsAsync(SendManifestPackageDTO sendTo); + Task> SendManifestAsync(SendManifestPackageDTO sendTo, ManifestMessageBag messageBag,string version); + + Task> SendCrsAsync(SendManifestPackageDTO sendTo, CrsMessageBag messageBag); + Task NotifyPostSending(SendManifestPackageDTO sendTo,string version); + } +} diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Services/Dwh/ICTSendService.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Services/Dwh/ICTSendService.cs index 6a81f1ad..817404b4 100644 --- a/src/Dwapi.UploadManagement.Core/Interfaces/Services/Dwh/ICTSendService.cs +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Services/Dwh/ICTSendService.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; @@ -14,10 +15,14 @@ public interface ICTSendService { HttpClient Client { get; set; } Task> SendManifestAsync(SendManifestPackageDTO sendTo); + Task> SendSmartManifestAsync(SendManifestPackageDTO sendTo,string version,string apiVersion=""); Task> SendManifestAsync(SendManifestPackageDTO sendTo, DwhManifestMessageBag messageBag); + Task> SendSmartManifestAsync(SendManifestPackageDTO sendTo, + DwhManifestMessageBag messageBag,string version,string apiVersion=""); + void NotifyPreSending(); Task> SendBatchExtractsAsync( @@ -26,6 +31,12 @@ Task> SendBatchExtractsAsync( IMessageBag messageBag) where T : ClientExtract; + Task> SendSmartBatchExtractsAsync( + SendManifestPackageDTO sendTo, + int batchSize, + IMessageSourceBag messageBag) + where T : ClientExtract; + Task> SendDiffBatchExtractsAsync( SendManifestPackageDTO sendTo, int batchSize, diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Services/Dwh/IDwhSendService.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Services/Dwh/IDwhSendService.cs index 6a458785..26b13604 100644 --- a/src/Dwapi.UploadManagement.Core/Interfaces/Services/Dwh/IDwhSendService.cs +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Services/Dwh/IDwhSendService.cs @@ -9,13 +9,13 @@ namespace Dwapi.UploadManagement.Core.Interfaces.Services.Dwh public interface IDwhSendService { HttpClient Client { get; set; } - Task> SendManifestAsync(SendManifestPackageDTO sendTo,string version); + Task> SendManifestAsync(SendManifestPackageDTO sendTo,string version,string apiVersion=""); - Task> SendDiffManifestAsync(SendManifestPackageDTO sendTo,string version); + Task> SendDiffManifestAsync(SendManifestPackageDTO sendTo,string version,string apiVersion=""); Task> SendManifestAsync(SendManifestPackageDTO sendTo, - DwhManifestMessageBag messageBag,string version); + DwhManifestMessageBag messageBag,string version,string apiVersion=""); Task> SendExtractsAsync(SendManifestPackageDTO sendTo); } diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Services/Hts/IHtsSendService.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Services/Hts/IHtsSendService.cs index 45770ab0..81a4058c 100644 --- a/src/Dwapi.UploadManagement.Core/Interfaces/Services/Hts/IHtsSendService.cs +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Services/Hts/IHtsSendService.cs @@ -30,6 +30,10 @@ public interface IHtsSendService Task> SendClientsLinkagesAsync(SendManifestPackageDTO sendTo); Task> SendClientsLinkagesAsync(SendManifestPackageDTO sendTo, HtsMessageBag messageBag); + + Task> SendHtsEligibilityExtractsAsync(SendManifestPackageDTO sendTo); + Task> SendHtsEligibilityExtractsAsync(SendManifestPackageDTO sendTo, HtsMessageBag messageBag); + //Task> SendClientPartnersAsync(SendManifestPackageDTO sendTo); //Task> SendClientPartnersAsync(SendManifestPackageDTO sendTo, HtsMessageBag messageBag); diff --git a/src/Dwapi.UploadManagement.Core/Interfaces/Services/Prep/IPrepSendService.cs b/src/Dwapi.UploadManagement.Core/Interfaces/Services/Prep/IPrepSendService.cs new file mode 100644 index 00000000..e59c6757 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Interfaces/Services/Prep/IPrepSendService.cs @@ -0,0 +1,40 @@ +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using Dwapi.SharedKernel.DTOs; +using Dwapi.SharedKernel.Exchange; +using Dwapi.UploadManagement.Core.Exchange.Cbs; +using Dwapi.UploadManagement.Core.Exchange.Prep; + +namespace Dwapi.UploadManagement.Core.Interfaces.Services.Prep +{ + public interface IPrepSendService + { + HttpClient Client { get; set; } + + Task> SendManifestAsync(SendManifestPackageDTO sendTo,string version); + Task> SendManifestAsync(SendManifestPackageDTO sendTo, ManifestMessageBag messageBag,string version); + + Task> SendPatientPrepsAsync(SendManifestPackageDTO sendTo); + Task> SendPatientPrepsAsync(SendManifestPackageDTO sendTo, PrepMessageBag messageBag); + + Task> SendPrepAdverseEventsAsync(SendManifestPackageDTO sendTo); + Task> SendPrepAdverseEventsAsync(SendManifestPackageDTO sendTo, PrepMessageBag messageBag); + + Task> SendPrepBehaviourRisksAsync(SendManifestPackageDTO sendTo); + Task> SendPrepBehaviourRisksAsync(SendManifestPackageDTO sendTo, PrepMessageBag messageBag); + + Task> SendPrepCareTerminationsAsync(SendManifestPackageDTO sendTo); + Task> SendPrepCareTerminationsAsync(SendManifestPackageDTO sendTo, PrepMessageBag messageBag); + Task> SendPrepLabsAsync(SendManifestPackageDTO sendTo); + Task> SendPrepLabsAsync(SendManifestPackageDTO sendTo, PrepMessageBag messageBag); + + Task> SendPrepPharmacysAsync(SendManifestPackageDTO sendTo); + Task> SendPrepPharmacysAsync(SendManifestPackageDTO sendTo, PrepMessageBag messageBag); + + Task> SendPrepVisitsAsync(SendManifestPackageDTO sendTo); + Task> SendPrepVisitsAsync(SendManifestPackageDTO sendTo, PrepMessageBag messageBag); + + Task NotifyPostSending(SendManifestPackageDTO sendTo, string version); + } +} diff --git a/src/Dwapi.UploadManagement.Core/Model/Crs/ClientRegistryExtractView.cs b/src/Dwapi.UploadManagement.Core/Model/Crs/ClientRegistryExtractView.cs new file mode 100644 index 00000000..64a2cb94 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Model/Crs/ClientRegistryExtractView.cs @@ -0,0 +1,13 @@ +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; +using Newtonsoft.Json; + +namespace Dwapi.UploadManagement.Core.Model.Crs +{ + [Table("ClientRegistryExtracts")] + public class ClientRegistryExtractView: ClientRegistryExtract + { + [JsonProperty ("SatelliteId")] + public override int? FacilityId { get; set; } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Model/Crs/Dtos/ClientRegistryExtractDto.cs b/src/Dwapi.UploadManagement.Core/Model/Crs/Dtos/ClientRegistryExtractDto.cs new file mode 100644 index 00000000..16fb2668 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Model/Crs/Dtos/ClientRegistryExtractDto.cs @@ -0,0 +1,64 @@ +using System; +using Dwapi.Contracts.Crs; + +namespace Dwapi.UploadManagement.Core.Model.Crs.Dtos +{ + public class ClientRegistryExtractDto:IClientRegistry + { + public Guid Id { get; set; } + + public DateTime DateExtracted { get; set; } = DateTime.Now; + public virtual bool? Processed { get; set; } + + public virtual string QueueId { get; set; } + public virtual string Status { get; set; } + public virtual DateTime? StatusDate { get; set; } + public bool IsSent { get; set; } + + public string CCCNumber { get; set; } + public string NationalId { get; set; } + public string Passport { get; set; } + public string HudumaNumber { get; set; } + public string BirthCertificateNumber { get; set; } + public string AlienIdNo { get; set; } + public string DrivingLicenseNumber { get; set; } + public string PatientClinicNumber { get; set; } + public string FirstName { get; set; } + public string MiddleName { get; set; } + public string LastName { get; set; } + public DateTime? DateOfBirth { get; set; } + public string Sex { get; set; } + public string MaritalStatus { get; set; } + public string Occupation { get; set; } + public string HighestLevelOfEducation { get; set; } + public string PhoneNumber { get; set; } + public string AlternativePhoneNumber { get; set; } + public string SpousePhoneNumber { get; set; } + public string NameOfNextOfKin { get; set; } + public string NextOfKinRelationship { get; set; } + public string NextOfKinTelNo { get; set; } + public string County { get; set; } + public string SubCounty { get; set; } + public string Ward { get; set; } + public string Location { get; set; } + public string Village { get; set; } + public string Landmark { get; set; } + public string FacilityName { get; set; } + public string MFLCode { get; set; } + public DateTime? DateOfInitiation { get; set; } + public string TreatmentOutcome { get; set; } + public DateTime? DateOfLastEncounter { get; set; } + public DateTime? DateOfLastViralLoad { get; set; } + public DateTime? NextAppointmentDate { get; set; } + public int? PatientPK { get; set; } + public string SiteCode { get; set; } + public int? FacilityID { get; set; } + public string Emr { get; set; } + public string Project { get; set; } + public string LastRegimen { get; set; } + public string LastRegimenLine { get; set; } + public string CurrentOnART { get; set; } + public DateTime? DateOfHIVdiagnosis { get; set; } + public string LastViralLoadResult { get; set; } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Model/Dwh/CovidExtractView.cs b/src/Dwapi.UploadManagement.Core/Model/Dwh/CovidExtractView.cs new file mode 100644 index 00000000..2f8d4da4 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Model/Dwh/CovidExtractView.cs @@ -0,0 +1,11 @@ +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; + +namespace Dwapi.UploadManagement.Core.Model.Dwh +{ + [Table("CovidExtracts")] + public class CovidExtractView : CovidExtract + { + public PatientExtractView PatientExtractView { get; set; } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Model/Dwh/DefaulterTracingExtractView.cs b/src/Dwapi.UploadManagement.Core/Model/Dwh/DefaulterTracingExtractView.cs new file mode 100644 index 00000000..0a7e0e68 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Model/Dwh/DefaulterTracingExtractView.cs @@ -0,0 +1,11 @@ +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; + +namespace Dwapi.UploadManagement.Core.Model.Dwh +{ + [Table("DefaulterTracingExtracts")] + public class DefaulterTracingExtractView : DefaulterTracingExtract + { + public PatientExtractView PatientExtractView { get; set; } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Model/Dwh/PatientExtractView.cs b/src/Dwapi.UploadManagement.Core/Model/Dwh/PatientExtractView.cs index 7e4bde1c..7b454ba9 100644 --- a/src/Dwapi.UploadManagement.Core/Model/Dwh/PatientExtractView.cs +++ b/src/Dwapi.UploadManagement.Core/Model/Dwh/PatientExtractView.cs @@ -4,6 +4,7 @@ using System.Linq; using Dwapi.Contracts.Ct; using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; +using Newtonsoft.Json; namespace Dwapi.UploadManagement.Core.Model.Dwh { @@ -48,76 +49,89 @@ public class PatientExtractView : ClientExtract,IPatient public DateTime? Date_Last_Modified { get; set; } public string Pkv { get; set; } public string Occupation { get; set; } + public string NUPI { get; set; } + [NotMapped] public int PatientPID => PatientPK; [NotMapped] public string PatientCccNumber => PatientID; [NotMapped] public int FacilityId => SiteCode; + [JsonIgnore] [NotMapped] public ICollection PatientArtExtracts { get; set; } = new List(); - + [JsonIgnore] [NotMapped] public ICollection PatientBaselinesExtracts { get; set; } = new List(); - + [JsonIgnore] [NotMapped] public ICollection PatientLaboratoryExtracts { get; set; } = new List(); - + [JsonIgnore] [NotMapped] public ICollection PatientPharmacyExtracts { get; set; } = new List(); - + [JsonIgnore] [NotMapped] public ICollection PatientStatusExtracts { get; set; } = new List(); - + [JsonIgnore] [NotMapped] public ICollection PatientVisitExtracts { get; set; } = new List(); - + [JsonIgnore] [NotMapped] public ICollection PatientAdverseEventExtracts { get; set; } = new List(); - + [JsonIgnore] [NotMapped] public ICollection AllergiesChronicIllnessExtracts { get; set; } = new List(); - + [JsonIgnore] [NotMapped] public ICollection IptExtracts { get; set; } = new List(); - + [JsonIgnore] [NotMapped] public ICollection DepressionScreeningExtracts { get; set; } = new List(); - + [JsonIgnore] [NotMapped] public ICollection ContactListingExtracts { get; set; } = new List(); - + [JsonIgnore] [NotMapped] public ICollection GbvScreeningExtracts { get; set; } = new List(); - + [JsonIgnore] [NotMapped] public ICollection EnhancedAdherenceCounsellingExtracts { get; set; } = new List(); - + [JsonIgnore] [NotMapped] public ICollection DrugAlcoholScreeningExtracts { get; set; } = new List(); + [JsonIgnore] [NotMapped] public ICollection OvcExtracts { get; set; } = new List(); + [JsonIgnore] [NotMapped] public ICollection OtzExtracts { get; set; } = new List(); + [JsonIgnore] + [NotMapped] public ICollection CovidExtracts { get; set; } = new List(); + [JsonIgnore] + [NotMapped] public ICollection DefaulterTracingExtracts { get; set; } = new List(); - - + [JsonIgnore] [NotMapped] public bool HasArt => null != PatientArtExtracts && PatientArtExtracts.Any(); + [JsonIgnore] [NotMapped] public bool HasBaseline => null != PatientBaselinesExtracts && PatientBaselinesExtracts.Any(); + [JsonIgnore] [NotMapped] public bool HasLab => null != PatientLaboratoryExtracts && PatientLaboratoryExtracts.Any(); + [JsonIgnore] [NotMapped] public bool HasPharmacy => null != PatientPharmacyExtracts && PatientPharmacyExtracts.Any(); + [JsonIgnore] [NotMapped] public bool HasStatus => null != PatientStatusExtracts && PatientStatusExtracts.Any(); + [JsonIgnore] [NotMapped] public bool HasVisit => null != PatientVisitExtracts && PatientVisitExtracts.Any(); - + [JsonIgnore] [NotMapped] public bool HasAdverse => null != PatientAdverseEventExtracts && PatientAdverseEventExtracts.Any(); public Facility GetFacility() diff --git a/src/Dwapi.UploadManagement.Core/Model/Hts/HtsEligibilityExtractView.cs b/src/Dwapi.UploadManagement.Core/Model/Hts/HtsEligibilityExtractView.cs new file mode 100644 index 00000000..1b63b502 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Model/Hts/HtsEligibilityExtractView.cs @@ -0,0 +1,10 @@ +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts; + +namespace Dwapi.UploadManagement.Core.Model.Hts +{ + [Table("HtsEligibilityExtracts")] + public class HtsEligibilityExtractView : HtsEligibilityExtract + { + } +} \ No newline at end of file diff --git a/src/Dwapi.UploadManagement.Core/Model/Prep/PatientPrepExtractView.cs b/src/Dwapi.UploadManagement.Core/Model/Prep/PatientPrepExtractView.cs new file mode 100644 index 00000000..dfba0af6 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Model/Prep/PatientPrepExtractView.cs @@ -0,0 +1,8 @@ +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Model.Prep +{ + [Table("PatientPrepExtracts")]public class PatientPrepExtractView : PatientPrepExtract{} +} diff --git a/src/Dwapi.UploadManagement.Core/Model/Prep/PrepAdverseEventExtractView.cs b/src/Dwapi.UploadManagement.Core/Model/Prep/PrepAdverseEventExtractView.cs new file mode 100644 index 00000000..5893e02b --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Model/Prep/PrepAdverseEventExtractView.cs @@ -0,0 +1,8 @@ +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Model.Prep +{ + [Table("PrepAdverseEventExtracts")]public class PrepAdverseEventExtractView : PrepAdverseEventExtract{} +} diff --git a/src/Dwapi.UploadManagement.Core/Model/Prep/PrepBehaviourRiskExtractView.cs b/src/Dwapi.UploadManagement.Core/Model/Prep/PrepBehaviourRiskExtractView.cs new file mode 100644 index 00000000..df034dc6 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Model/Prep/PrepBehaviourRiskExtractView.cs @@ -0,0 +1,8 @@ +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Model.Prep +{ + [Table("PrepBehaviourRiskExtracts")]public class PrepBehaviourRiskExtractView : PrepBehaviourRiskExtract{} +} diff --git a/src/Dwapi.UploadManagement.Core/Model/Prep/PrepCareTerminationExtractView.cs b/src/Dwapi.UploadManagement.Core/Model/Prep/PrepCareTerminationExtractView.cs new file mode 100644 index 00000000..302f785c --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Model/Prep/PrepCareTerminationExtractView.cs @@ -0,0 +1,8 @@ +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Model.Prep +{ + [Table("PrepCareTerminationExtracts")]public class PrepCareTerminationExtractView : PrepCareTerminationExtract{} +} diff --git a/src/Dwapi.UploadManagement.Core/Model/Prep/PrepLabExtractView.cs b/src/Dwapi.UploadManagement.Core/Model/Prep/PrepLabExtractView.cs new file mode 100644 index 00000000..b8f95b39 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Model/Prep/PrepLabExtractView.cs @@ -0,0 +1,8 @@ +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Model.Prep +{ + [Table("PrepLabExtracts")]public class PrepLabExtractView : PrepLabExtract{} +} diff --git a/src/Dwapi.UploadManagement.Core/Model/Prep/PrepPharmacyExtractView.cs b/src/Dwapi.UploadManagement.Core/Model/Prep/PrepPharmacyExtractView.cs new file mode 100644 index 00000000..c85f0c6c --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Model/Prep/PrepPharmacyExtractView.cs @@ -0,0 +1,8 @@ +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Model.Prep +{ + [Table("PrepPharmacyExtracts")]public class PrepPharmacyExtractView : PrepPharmacyExtract{} +} diff --git a/src/Dwapi.UploadManagement.Core/Model/Prep/PrepVisitExtractView.cs b/src/Dwapi.UploadManagement.Core/Model/Prep/PrepVisitExtractView.cs new file mode 100644 index 00000000..ff258123 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Model/Prep/PrepVisitExtractView.cs @@ -0,0 +1,8 @@ +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.UploadManagement.Core.Model.Dwh; + +namespace Dwapi.UploadManagement.Core.Model.Prep +{ + [Table("PrepVisitExtracts")]public class PrepVisitExtractView : PrepVisitExtract{} +} diff --git a/src/Dwapi.UploadManagement.Core/Model/TransportLogView.cs b/src/Dwapi.UploadManagement.Core/Model/TransportLogView.cs new file mode 100644 index 00000000..42c29006 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Model/TransportLogView.cs @@ -0,0 +1,10 @@ +using System.ComponentModel.DataAnnotations.Schema; +using Dwapi.SettingsManagement.Core.Model; + +namespace Dwapi.UploadManagement.Core.Model +{ + [Table("TransportLogs")] + public class TransportLogView:TransportLog + { + } +} \ No newline at end of file diff --git a/src/Dwapi.UploadManagement.Core/Notifications/Crs/CrsSendNotification.cs b/src/Dwapi.UploadManagement.Core/Notifications/Crs/CrsSendNotification.cs new file mode 100644 index 00000000..95ba4806 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Notifications/Crs/CrsSendNotification.cs @@ -0,0 +1,15 @@ +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.UploadManagement.Core.Notifications.Crs +{ + public class CrsSendNotification : IDomainEvent + { + public SendProgress Progress { get; set; } + + public CrsSendNotification(SendProgress progress) + { + Progress = progress; + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Notifications/Prep/PrepSendNotification.cs b/src/Dwapi.UploadManagement.Core/Notifications/Prep/PrepSendNotification.cs new file mode 100644 index 00000000..26ab06fe --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Notifications/Prep/PrepSendNotification.cs @@ -0,0 +1,15 @@ +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.UploadManagement.Core.Notifications.Prep +{ + public class PrepSendNotification : IDomainEvent + { + public SendProgress Progress { get; set; } + + public PrepSendNotification(SendProgress progress) + { + Progress = progress; + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Packager/Crs/CrsPackager.cs b/src/Dwapi.UploadManagement.Core/Packager/Crs/CrsPackager.cs new file mode 100644 index 00000000..bc3e88ee --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Packager/Crs/CrsPackager.cs @@ -0,0 +1,61 @@ +using System.Collections.Generic; +using System.Linq; +using AutoMapper; +using Dwapi.SharedKernel.DTOs; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Exchange; +using Dwapi.UploadManagement.Core.Interfaces.Packager.Crs; +using Dwapi.UploadManagement.Core.Interfaces.Reader; +using Dwapi.UploadManagement.Core.Interfaces.Reader.Crs; +using Dwapi.UploadManagement.Core.Model; +using Dwapi.UploadManagement.Core.Model.Crs; +using Dwapi.UploadManagement.Core.Model.Crs.Dtos; +using Dwapi.UploadManagement.Core.Profiles; + +namespace Dwapi.UploadManagement.Core.Packager.Crs +{ + public class CrsPackager: ICrsPackager + { + private readonly ICrsExtractReader _crsExtractReader; + private readonly IEmrMetricReader _metricReader; + + public CrsPackager(ICrsExtractReader crsExtractReader, IEmrMetricReader metricReader) + { + _crsExtractReader = crsExtractReader; + _metricReader = metricReader; + } + + + public IEnumerable Generate(EmrDto emrSetup) + { + var sites = _crsExtractReader.GetSites(); + var profiles = _crsExtractReader.GetSitePatientProfiles(); + + return Manifest.Create(profiles, emrSetup,sites); + } + + public IEnumerable GenerateWithMetrics(EmrDto emrSetup) + { + var metrics = _metricReader.ReadAll().FirstOrDefault(); + var appMetrics = _metricReader.ReadAppAll().ToList(); + var manifests = Generate(emrSetup).ToList(); + + if (null != metrics) + { + foreach (var manifest in manifests) + { + manifest.AddCargo(metrics); + manifest.AddAppToCargo(appMetrics); + } + } + + return manifests; + } + + public IEnumerable GenerateCrs() + { + var crss = _crsExtractReader.ReadAll().ToList(); + return crss; + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Packager/Dwh/DwhPackager.cs b/src/Dwapi.UploadManagement.Core/Packager/Dwh/DwhPackager.cs index 2a7c5960..dba25568 100644 --- a/src/Dwapi.UploadManagement.Core/Packager/Dwh/DwhPackager.cs +++ b/src/Dwapi.UploadManagement.Core/Packager/Dwh/DwhPackager.cs @@ -99,11 +99,21 @@ public IEnumerable GenerateBatchExtracts(int page, int batchSize) whe return _reader.Read(page, batchSize); } + public IEnumerable GenerateSmartBatchExtracts(int page, int batchSize) where T : Entity + { + return _reader.ReadSmart(page, batchSize); + } + public IEnumerable GenerateBatchExtracts(int page, int batchSize) where T : ClientExtract { return GenerateBatchExtracts(page, batchSize); } + public IEnumerable GenerateSmartBatchExtracts(int page, int batchSize) where T : ClientExtract + { + return _reader.ReadSmart(page, batchSize); + } + public IEnumerable GenerateDiffBatchExtracts(int page, int batchSize, string docket, string extract) where T : ClientExtract { diff --git a/src/Dwapi.UploadManagement.Core/Packager/Hts/HtsPackager.cs b/src/Dwapi.UploadManagement.Core/Packager/Hts/HtsPackager.cs index 3bbc3011..9c77df85 100644 --- a/src/Dwapi.UploadManagement.Core/Packager/Hts/HtsPackager.cs +++ b/src/Dwapi.UploadManagement.Core/Packager/Hts/HtsPackager.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Linq; +using Dwapi.ExtractsManagement.Core.Model.Destination.Hts; using Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts; using Dwapi.SharedKernel.DTOs; using Dwapi.SharedKernel.Enum; @@ -79,6 +80,12 @@ public IEnumerable GenerateClientLinkage() return _htsExtractReader.ReadAllClientsLinkage(); } + public IEnumerable GenerateHtsEligibilityExtracts() + { + return _htsExtractReader.ReadAllHtsEligibilityExtracts(); + } + + public IEnumerable GenerateTestKits() { return _htsExtractReader.ReadAllTestKits(); diff --git a/src/Dwapi.UploadManagement.Core/Packager/Prep/PrepPackager.cs b/src/Dwapi.UploadManagement.Core/Packager/Prep/PrepPackager.cs new file mode 100644 index 00000000..506c6f11 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Packager/Prep/PrepPackager.cs @@ -0,0 +1,81 @@ +using System.Collections.Generic; +using System.Linq; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.DTOs; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Exchange; +using Dwapi.UploadManagement.Core.Interfaces.Packager.Prep; +using Dwapi.UploadManagement.Core.Interfaces.Reader; +using Dwapi.UploadManagement.Core.Interfaces.Reader.Prep; +using Dwapi.UploadManagement.Core.Model; + +namespace Dwapi.UploadManagement.Core.Packager.Prep +{ + public class PrepPackager : IPrepPackager + { + private readonly IPrepExtractReader _prepExtractReader; + private readonly IEmrMetricReader _metricReader; + + public PrepPackager(IPrepExtractReader prepExtractReader, IEmrMetricReader metricReader) + { + _prepExtractReader = prepExtractReader; + _metricReader = metricReader; + } + + + public IEnumerable Generate(EmrDto emrSetup) + { + var sites = _prepExtractReader.GetSites(); + var profiles = _prepExtractReader.GetSitePatientProfiles(); + + return Manifest.Create(profiles, emrSetup, sites); + } + + public IEnumerable GenerateWithMetrics(EmrDto emrSetup) + { + var metrics = _metricReader.ReadAll().FirstOrDefault(); + var appMetrics = _metricReader.ReadAppAll().ToList(); + var manifests = Generate(emrSetup).ToList(); + + if (null != metrics) + { + foreach (var manifest in manifests) + { + manifest.AddCargo(metrics); + manifest.AddAppToCargo(appMetrics); + } + } + + return manifests; + } + + public IEnumerable GeneratePatientPreps() + { + return _prepExtractReader.ReadAllPatientPreps(); + } + public IEnumerable GeneratePrepAdverseEvents() + { + return _prepExtractReader.ReadAllPrepAdverseEvents(); + } + public IEnumerable GeneratePrepBehaviourRisks() + { + return _prepExtractReader.ReadAllPrepBehaviourRisks(); + } + public IEnumerable GeneratePrepCareTerminations() + { + return _prepExtractReader.ReadAllPrepCareTerminations(); + } + public IEnumerable GeneratePrepLabs() + { + return _prepExtractReader.ReadAllPrepLabs(); + } + public IEnumerable GeneratePrepPharmacys() + { + return _prepExtractReader.ReadAllPrepPharmacys(); + } + public IEnumerable GeneratePrepVisits() + { + return _prepExtractReader.ReadAllPrepVisits(); + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Profiles/ClientRegistryExtractProfile.cs b/src/Dwapi.UploadManagement.Core/Profiles/ClientRegistryExtractProfile.cs new file mode 100644 index 00000000..c7c832ac --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Profiles/ClientRegistryExtractProfile.cs @@ -0,0 +1,65 @@ +using AutoMapper; +using Dwapi.ExtractsManagement.Core.Model.Destination.Cbs; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; +using Dwapi.UploadManagement.Core.Model.Cbs.Dtos; +using Dwapi.UploadManagement.Core.Model.Crs.Dtos; + +namespace Dwapi.UploadManagement.Core.Profiles +{ + public class ClientRegistryExtractProfile : Profile + { + public ClientRegistryExtractProfile() + { + CreateMap() + .ForMember(d => d.FirstName, o => o.UseValue(string.Empty)) + .ForMember(d => d.CCCNumber, o => o.UseValue(string.Empty)) + .ForMember(d => d.NationalId, o => o.UseValue(string.Empty)) + .ForMember(d => d.Passport, o => o.UseValue(string.Empty)) + .ForMember(d => d.HudumaNumber, o => o.UseValue(string.Empty)) + .ForMember(d => d.BirthCertificateNumber, o => o.UseValue(string.Empty)) + .ForMember(d => d.AlienIdNo, o => o.UseValue(string.Empty)) + .ForMember(d => d.MaritalStatus, o => o.UseValue(string.Empty)) + .ForMember(d => d.DrivingLicenseNumber, o => o.UseValue(string.Empty)) + .ForMember(d => d.FirstName, o => o.UseValue(string.Empty)) + .ForMember(d => d.MiddleName, o => o.UseValue(string.Empty)) + .ForMember(d => d.LastName, o => o.UseValue(string.Empty)) + .ForMember(d => d.DateOfBirth, o => o.UseValue(string.Empty)) + .ForMember(d => d.Sex, o => o.UseValue(string.Empty)) + .ForMember(d => d.MaritalStatus, o => o.UseValue(string.Empty)) + .ForMember(d => d.Occupation, o => o.UseValue(string.Empty)) + .ForMember(d => d.HighestLevelOfEducation, o => o.UseValue(string.Empty)) + .ForMember(d => d.PhoneNumber, o => o.UseValue(string.Empty)) + .ForMember(d => d.AlternativePhoneNumber, o => o.UseValue(string.Empty)) + .ForMember(d => d.SpousePhoneNumber, o => o.UseValue(string.Empty)) + .ForMember(d => d.NameOfNextOfKin, o => o.UseValue(string.Empty)) + .ForMember(d => d.NextOfKinRelationship, o => o.UseValue(string.Empty)) + .ForMember(d => d.NextOfKinTelNo, o => o.UseValue(string.Empty)) + .ForMember(d => d.County, o => o.UseValue(string.Empty)) + .ForMember(d => d.SubCounty, o => o.UseValue(string.Empty)) + .ForMember(d => d.Ward, o => o.UseValue(string.Empty)) + .ForMember(d => d.Location, o => o.UseValue(string.Empty)) + .ForMember(d => d.Village, o => o.UseValue(string.Empty)) + .ForMember(d => d.Landmark, o => o.UseValue(string.Empty)) + .ForMember(d => d.FacilityName, o => o.UseValue(string.Empty)) + .ForMember(d => d.MFLCode, o => o.UseValue(string.Empty)) + .ForMember(d => d.DateOfInitiation, o => o.UseValue(string.Empty)) + .ForMember(d => d.TreatmentOutcome, o => o.UseValue(string.Empty)) + .ForMember(d => d.DateOfLastEncounter, o => o.UseValue(string.Empty)) + .ForMember(d => d.DateOfLastViralLoad, o => o.UseValue(string.Empty)) + .ForMember(d => d.NextAppointmentDate, o => o.UseValue(string.Empty)) + .ForMember(d => d.PatientPK, o => o.UseValue(string.Empty)) + .ForMember(d => d.SiteCode, o => o.UseValue(string.Empty)) + .ForMember(d => d.FacilityID, o => o.UseValue(string.Empty)) + .ForMember(d => d.Emr, o => o.UseValue(string.Empty)) + .ForMember(d => d.Project, o => o.UseValue(string.Empty)) + .ForMember(d => d.LastRegimen, o => o.UseValue(string.Empty)) + .ForMember(d => d.LastRegimenLine, o => o.UseValue(string.Empty)) + .ForMember(d => d.CurrentOnART, o => o.UseValue(string.Empty)) + .ForMember(d => d.DateOfHIVdiagnosis, o => o.UseValue(string.Empty)) + .ForMember(d => d.LastViralLoadResult, o => o.UseValue(string.Empty)) + + + ; + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Profiles/MasterPatientIndexProfile.cs b/src/Dwapi.UploadManagement.Core/Profiles/MasterPatientIndexProfile.cs index 60098a55..2d3607ab 100644 --- a/src/Dwapi.UploadManagement.Core/Profiles/MasterPatientIndexProfile.cs +++ b/src/Dwapi.UploadManagement.Core/Profiles/MasterPatientIndexProfile.cs @@ -22,6 +22,8 @@ public MasterPatientIndexProfile() .ForMember(d=> d.PatientPhoneNumber,o=> o.UseValue(string.Empty)) .ForMember(d=> d.National_ID,o=> o.UseValue(string.Empty)) .ForMember(d=> d.Birth_Certificate,o=> o.UseValue(string.Empty)) + .ForMember(d=> d.PatientAlternatePhoneNumber,o=> o.UseValue(string.Empty)) + ; } diff --git a/src/Dwapi.UploadManagement.Core/Services/Crs/CrsSearchService.cs b/src/Dwapi.UploadManagement.Core/Services/Crs/CrsSearchService.cs new file mode 100644 index 00000000..12054ab2 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Services/Crs/CrsSearchService.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.Net.Http; +using System.Threading.Tasks; +using Dwapi.SharedKernel.DTOs; +using Dwapi.SharedKernel.Utility; +using Dwapi.UploadManagement.Core.Interfaces.Services.Crs; +using Serilog; + +namespace Dwapi.UploadManagement.Core.Services.Crs +{ + [Obsolete] + public class CrsSearchService : ICrsSearchService + { + private readonly string _endPoint; + + public CrsSearchService() + { + _endPoint = "api/crs/"; + } + + public async Task> SearchCrsAsync(CrsSearchPackageDto crsSearchPackage) + { + var result = new List(); + var client = new HttpClient(); + try + { + string url = crsSearchPackage.GetUrl($"{_endPoint.HasToEndsWith("/")}crsSearch"); + var data = crsSearchPackage.CrsSearch; + var response = await client.PostAsJsonAsync(url, data); + if (response.IsSuccessStatusCode) + { + result = await response.Content.ReadAsJsonAsync>(); + } + else + { + var error = await response.Content.ReadAsStringAsync(); + throw new Exception(error); + } + } + catch (Exception e) + { + Log.Error(e, $"Search CRS Error"); + throw; + } + + return result; + } + + } +} diff --git a/src/Dwapi.UploadManagement.Core/Services/Crs/CrsSendService.cs b/src/Dwapi.UploadManagement.Core/Services/Crs/CrsSendService.cs new file mode 100644 index 00000000..c8591d88 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Services/Crs/CrsSendService.cs @@ -0,0 +1,152 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net.Http; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SettingsManagement.Core.Application.Metrics.Events; +using Dwapi.SharedKernel.DTOs; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Exchange; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using Dwapi.UploadManagement.Core.Event.Crs; +using Dwapi.UploadManagement.Core.Exchange.Crs; +using Dwapi.UploadManagement.Core.Interfaces.Packager.Crs; +using Dwapi.UploadManagement.Core.Interfaces.Reader; +using Dwapi.UploadManagement.Core.Interfaces.Services.Crs; +using Dwapi.UploadManagement.Core.Notifications.Crs; +using Dwapi.UploadManagement.Core.Notifications.Dwh; +using MediatR; +using Newtonsoft.Json; +using Serilog; + +namespace Dwapi.UploadManagement.Core.Services.Crs +{ + public class CrsSendService : ICrsSendService + { + private readonly string _endPoint; + private readonly ICrsPackager _packager; + private readonly IMediator _mediator; + private IEmrMetricReader _reader; + + public HttpClient Client { get; set; } + + public CrsSendService(ICrsPackager packager, IMediator mediator, IEmrMetricReader reader) + { + _packager = packager; + _mediator = mediator; + _reader = reader; + _endPoint = "api/Crs/"; + } + + public Task> SendManifestAsync(SendManifestPackageDTO sendTo,string version) + { + return SendManifestAsync(sendTo, ManifestMessageBag.Create(_packager.GenerateWithMetrics(sendTo.GetEmrDto()).ToList()),version); + } + + public Task> SendCrsAsync(SendManifestPackageDTO sendTo) + { + return SendCrsAsync(sendTo, CrsMessageBag.Create(_packager.GenerateCrs().ToList())); + } + + public async Task> SendManifestAsync(SendManifestPackageDTO sendTo, ManifestMessageBag manifestMessage,string version) + { + var responses=new List(); + await _mediator.Publish(new HandshakeStart("CRSSendStart", version, manifestMessage.Session)); + var client = Client ?? new HttpClient(); + + foreach (var message in manifestMessage.Messages) + { + try + { + var msg = JsonConvert.SerializeObject(message); + var response = await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}manifest"), message); + if (response.IsSuccessStatusCode) + { + var content = await response.Content.ReadAsJsonAsync(); + responses.Add(content); + } + else + { + var error = await response.Content.ReadAsStringAsync(); + throw new Exception(error); + } + } + catch (Exception e) + { + Log.Error(e, $"Send Manifest Error"); + throw; + } + } + + return responses; + } + + public async Task> SendCrsAsync(SendManifestPackageDTO sendTo, CrsMessageBag messageBag) + { + var responses = new List(); + + var client = Client ?? new HttpClient(); + + int sendCound=0; + int count = 0; + int total = messageBag.Messages.Count; + DomainEvents.Dispatch(new CrsStatusNotification(sendTo.ExtractId, ExtractStatus.Sending)); + + foreach (var message in messageBag.Messages) + { + count++; + try + { + var msg = JsonConvert.SerializeObject(message); + var response = await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}ClientRegistry"), message); + if (response.IsSuccessStatusCode) + { + var content = await response.Content.ReadAsJsonAsync(); + responses.Add(content); + + var sentIds = message.ClientRegistryExtracts.Select(x => x.Id).ToList(); + sendCound += sentIds.Count; + DomainEvents.Dispatch(new CrsExtractSentEvent(sentIds, SendStatus.Sent)); + } + else + { + var error = await response.Content.ReadAsStringAsync(); + DomainEvents.Dispatch(new CrsExtractSentEvent(message.ClientRegistryExtracts.Select(x => x.Id).ToList(), SendStatus.Failed,error)); + throw new Exception(error); + } + } + catch (Exception e) + { + Log.Error(e, $"Send Extracts Error"); + throw; + } + + DomainEvents.Dispatch(new CrsSendNotification(new SendProgress(nameof(ClientRegistryExtract), Common.GetProgress(count,total),sendCound))); + } + + DomainEvents.Dispatch(new CrsStatusNotification(sendTo.ExtractId, ExtractStatus.Sent, sendCound)); + + return responses; + } + + public async Task NotifyPostSending(SendManifestPackageDTO sendTo,string version) + { + var notificationend = new HandshakeEnd("CRSSendEnd", version); + await _mediator.Publish(notificationend); + var client = Client ?? new HttpClient(); + try + { + var session = _reader.GetSession(notificationend.EndName); + var response = await client.PostAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}Handshake?session={session}"),null); + } + catch (Exception e) + { + Log.Error(e, $"Send Handshake Error"); + } + } + } +} diff --git a/src/Dwapi.UploadManagement.Core/Services/Dwh/CTSendService.cs b/src/Dwapi.UploadManagement.Core/Services/Dwh/CTSendService.cs index f62c95eb..c6fb5390 100644 --- a/src/Dwapi.UploadManagement.Core/Services/Dwh/CTSendService.cs +++ b/src/Dwapi.UploadManagement.Core/Services/Dwh/CTSendService.cs @@ -1,14 +1,18 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; +using System.Threading; using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Application.Events; using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; using Dwapi.ExtractsManagement.Core.Notifications; using Dwapi.SettingsManagement.Core.Application.Metrics.Events; +using Dwapi.SettingsManagement.Core.Interfaces.Repositories; +using Dwapi.SettingsManagement.Core.Model; using Dwapi.SharedKernel.DTOs; using Dwapi.SharedKernel.Enum; using Dwapi.SharedKernel.Events; @@ -16,12 +20,15 @@ using Dwapi.SharedKernel.Model; using Dwapi.SharedKernel.Utility; using Dwapi.UploadManagement.Core.Event.Dwh; +using Dwapi.UploadManagement.Core.Exceptions; using Dwapi.UploadManagement.Core.Exchange.Dwh; +using Dwapi.UploadManagement.Core.Exchange.Dwh.Smart; using Dwapi.UploadManagement.Core.Interfaces.Exchange; using Dwapi.UploadManagement.Core.Interfaces.Packager.Dwh; using Dwapi.UploadManagement.Core.Interfaces.Reader; using Dwapi.UploadManagement.Core.Interfaces.Services.Dwh; using Dwapi.UploadManagement.Core.Notifications.Dwh; +using Humanizer; using MediatR; using Serilog; @@ -33,14 +40,16 @@ public class CTSendService : ICTSendService private readonly IDwhPackager _packager; private readonly IMediator _mediator; private IEmrMetricReader _reader; + private readonly ITransportLogRepository _transportLogRepository; public HttpClient Client { get; set; } - public CTSendService(IDwhPackager packager, IMediator mediator, IEmrMetricReader reader) + public CTSendService(IDwhPackager packager, IMediator mediator, IEmrMetricReader reader, ITransportLogRepository transportLogRepository) { _packager = packager; _mediator = mediator; _reader = reader; + _transportLogRepository = transportLogRepository; _endPoint = "api/"; } @@ -50,6 +59,13 @@ public Task> SendManifestAsync(SendManifestPackage DwhManifestMessageBag.Create(_packager.GenerateWithMetrics(sendTo.GetEmrDto()).ToList())); } + public Task> SendSmartManifestAsync(SendManifestPackageDTO sendTo,string version,string apiVersion="") + { + return SendSmartManifestAsync(sendTo, + DwhManifestMessageBag.Create(_packager.GenerateWithMetrics(sendTo.GetEmrDto()).ToList()), version, + apiVersion); + } + public async Task> SendManifestAsync(SendManifestPackageDTO sendTo, DwhManifestMessageBag messageBag) { @@ -88,6 +104,63 @@ public async Task> SendManifestAsync(SendManifestP return responses; } + public async Task> SendSmartManifestAsync(SendManifestPackageDTO sendTo, DwhManifestMessageBag messageBag, string version, + string apiVersion = "") + { + var responses = new List(); + + await _mediator.Publish(new HandshakeStart("CTSendStart", version, messageBag.Session)); + + HttpClientHandler handler = new HttpClientHandler() + { + AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate + }; + var client =Client ?? new HttpClient(handler); + client.DefaultRequestHeaders.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip")); + client.DefaultRequestHeaders.AcceptEncoding.Add(new StringWithQualityHeaderValue("deflate")); + foreach (var message in messageBag.Messages) + { + try + { + var start = DateTime.Now; + var response = await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}spot",apiVersion), message.Manifest); + if (response.IsSuccessStatusCode) + { + if (string.IsNullOrWhiteSpace(apiVersion)) + { + var content = await response.Content.ReadAsStringAsync(); + responses.Add(new SendDhwManifestResponse(content)); + } + else + { + var content = await response.Content.ReadAsJsonAsync(); + responses.Add(new SendDhwManifestResponse(content)); + + var tlog = TransportLog.GenerateManifest("NDWH", content.JobId, + new Guid(content.ManifestId), content.Code,start,content.FacilityId); + _transportLogRepository.CreateLatest(tlog); + Log.Debug(new string('+',40)); + Log.Debug($"CONNECTED: {sendTo.Destination.Url}"); + Log.Debug(new string('_',40)); + Log.Debug($"RECIEVED: {content}"); + Log.Debug(new string('+',40)); + } + } + else + { + var error = await response.Content.ReadAsStringAsync(); + throw new Exception(error); + } + } + catch (Exception e) + { + Log.Error(e, $"Send Manifest Error"); + throw; + } + } + return responses; + } + public void NotifyPreSending() { DomainEvents.Dispatch(new DwhMessageNotification(false, $"Sending started...")); @@ -189,6 +262,142 @@ public async Task> SendBatchExtractsAsync( return responses; } + public async Task> SendSmartBatchExtractsAsync(SendManifestPackageDTO sendTo, int batchSize, IMessageSourceBag messageBag) where T : ClientExtract + { + Stopwatch stopWatch = Stopwatch.StartNew(); + + HttpClientHandler handler = new HttpClientHandler() + { + AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate + }; + var client = Client ?? new HttpClient(handler); + + var responses = new List(); + var packageInfo = _packager.GetPackageInfo(batchSize); + int sendCound = 0; + int count = 0; + int total = packageInfo.PageCount; + int overall = 0; + + DomainEvents.Dispatch(new CTStatusNotification(sendTo.ExtractId, sendTo.GetExtractId(messageBag.ExtractName), ExtractStatus.Sending)); + long recordCount = 0; + + if (messageBag.ExtractName == "PatientArtExtract") + { + string x = "ss"; + } + + + try + { + string jobId=string.Empty;Guid manifestId;Guid facilityId; + var manifest = _transportLogRepository.GetManifest(); + + if (messageBag.ExtractName == nameof(PatientExtract)) + { + var mainExtract = _transportLogRepository.GetMainExtract(); + if (null == mainExtract) + { + jobId = manifest.JobId; + manifestId = manifest.ManifestId; + facilityId = manifest.FacilityId; + } + else + { + jobId = mainExtract.JobId; + manifestId = mainExtract.ManifestId; + facilityId = mainExtract.FacilityId; + } + } + else + { + var mainExtract = _transportLogRepository.GetMainExtract(); + jobId = mainExtract.JobId; + manifestId = mainExtract.ManifestId; + facilityId = mainExtract.FacilityId; + } + + + for (int page = 1; page <= packageInfo.PageCount; page++) + { + count++; + var extracts = _packager.GenerateSmartBatchExtracts(page, packageInfo.PageSize).ToList(); + recordCount = recordCount + extracts.Count; + messageBag.Generate(extracts, manifestId, facilityId,jobId); + var message = messageBag; + + Log.Debug( + $">>>> Sending {messageBag.ExtractName} {recordCount}/{packageInfo.TotalRecords} Pks:[{messageBag.MinPk}-{messageBag.MaxPk}] Page:{page} of {packageInfo.PageCount}"); + + try + { + int retryCount = 0; + bool allowSend = true; + while (allowSend) + { + var response = await client.PostAsJsonAsync( + sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}v3/{messageBag.EndPoint}"), message); + if (response.IsSuccessStatusCode) + { + allowSend = false; + var res= await response.Content.ReadAsJsonAsync(); + responses.Add(res); + + var sentIds = messageBag.SendIds; + sendCound += sentIds.Count; + DomainEvents.Dispatch(new CTExtractSentEvent(sentIds, SendStatus.Sent, + messageBag.ExtractType)); + + var tlog = TransportLog.GenerateExtract("NDWH",messageBag.ExtractName, res.JobId); + _transportLogRepository.CreateLatest(tlog); + } + else + { + retryCount++; + if (retryCount == 4) + { + var sentIds = messageBag.SendIds; + var error = await response.Content.ReadAsStringAsync(); + DomainEvents.Dispatch(new CTExtractSentEvent( + sentIds, SendStatus.Failed, messageBag.ExtractType, + error)); + throw new Exception(error); + } + } + } + + } + catch (Exception e) + { + Log.Error(e, $"Send Extracts{messageBag.ExtractName} Error"); + throw; + } + + DomainEvents.Dispatch(new CTSendNotification(new SendProgress(messageBag.ExtractName,messageBag.GetProgress(count, total),recordCount))); + + } + + await _mediator.Publish(new DocketExtractSent(messageBag.Docket, messageBag.DocketExtract)); + } + catch (Exception e) + { + Log.Error(e, $"Send Extracts {messageBag.ExtractName} Error"); + throw; + } + + DomainEvents.Dispatch(new CTSendNotification(new SendProgress(messageBag.ExtractName, + messageBag.GetProgress(count, total), recordCount,true))); + + DomainEvents.Dispatch(new CTStatusNotification(sendTo.ExtractId,sendTo.GetExtractId(messageBag.ExtractName), ExtractStatus.Sent, sendCound) + {UpdatePatient = (messageBag is ArtMessageSourceBag || messageBag is BaselineMessageSourceBag || messageBag is StatusMessageSourceBag)} + ); + stopWatch.Stop(); + Log.Debug(new string('*',40)); + Log.Debug($"Sent {recordCount} | {messageBag.ExtractName} in [{stopWatch.ElapsedMilliseconds/1000}] s"); + Log.Debug(new string('*',40)); + return responses; + } + public async Task> SendDiffBatchExtractsAsync(SendManifestPackageDTO sendTo, int batchSize, IMessageBag messageBag) where T : ClientExtract { HttpClientHandler handler = new HttpClientHandler() @@ -292,19 +501,37 @@ public async Task> SendDiffBatchExtractsAsync(SendManife public async Task NotifyPostSending(SendManifestPackageDTO sendTo,string version) { + int maxRetries = 4; + int retries = 0; var notificationend = new HandshakeEnd("CTSendEnd", version); DomainEvents.Dispatch(new DwhMessageNotification(false, $"Sending completed")); await _mediator.Publish(new HandshakeEnd("CTSendEnd", version)); + Thread.Sleep(3000); + var client = Client ?? new HttpClient(); - try - { - var session = _reader.GetSession(notificationend.EndName); - var response = await client.PostAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}Handshake?session={session}"),null); - } - catch (Exception e) + + while (retries < maxRetries) { - Log.Error(e, $"Send Handshake Error"); + try + { + var session = _reader.GetSession(notificationend.EndName); + var response = + await client.PostAsync( + sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}Handshake?session={session}"), null); + + if (!session.IsNullOrEmpty()) + { + Log.Debug(new string('*',50)); + Log.Debug("SUCCESS Sent Handshake"); + Log.Debug(new string('*',50)); + } + } + catch (Exception e) + { + Log.Error(e, $"Send Handshake Error"); + } + retries++; } } } diff --git a/src/Dwapi.UploadManagement.Core/Services/Dwh/DwhSendService.cs b/src/Dwapi.UploadManagement.Core/Services/Dwh/DwhSendService.cs index f257ad18..06e77a6f 100644 --- a/src/Dwapi.UploadManagement.Core/Services/Dwh/DwhSendService.cs +++ b/src/Dwapi.UploadManagement.Core/Services/Dwh/DwhSendService.cs @@ -66,16 +66,18 @@ public class DwhSendService : IDwhSendService private readonly ExtractEventDTO _patientVisitExtractStatus; private readonly ExtractEventDTO _patientAdverseEventExtractStatus; private readonly IMediator _mediator; + private readonly ITransportLogRepository _transportLogRepository; public HttpClient Client { get; set; } - public DwhSendService(IDwhPackager packager, IDwhExtractReader reader, IExtractStatusService extractStatusService, IEmrSystemRepository emrSystemRepository, IMediator mediator) + public DwhSendService(IDwhPackager packager, IDwhExtractReader reader, IExtractStatusService extractStatusService, IEmrSystemRepository emrSystemRepository, IMediator mediator, ITransportLogRepository transportLogRepository) { _packager = packager; _reader = reader; _extractStatusService = extractStatusService; _emrSystemRepository = emrSystemRepository; _mediator = mediator; + _transportLogRepository = transportLogRepository; _endPoint = "api/"; var defaultEmr = _emrSystemRepository.GetDefault(); var extracts = defaultEmr.Extracts; @@ -103,17 +105,17 @@ public DwhSendService(IDwhPackager packager, IDwhExtractReader reader, IExtractS _patientAdverseEventExtractStatus = _extractStatusService.GetStatus(_patientAdverseEventExtract.Id); } - public Task> SendManifestAsync(SendManifestPackageDTO sendTo,string version) + public Task> SendManifestAsync(SendManifestPackageDTO sendTo,string version,string apiVersion="") { - return SendManifestAsync(sendTo, DwhManifestMessageBag.Create(_packager.GenerateWithMetrics(sendTo.GetEmrDto()).ToList()),version); + return SendManifestAsync(sendTo, DwhManifestMessageBag.Create(_packager.GenerateWithMetrics(sendTo.GetEmrDto()).ToList()),version,apiVersion); } - public Task> SendDiffManifestAsync(SendManifestPackageDTO sendTo,string version) + public Task> SendDiffManifestAsync(SendManifestPackageDTO sendTo,string version,string apiVersion="") { - return SendManifestAsync(sendTo, DwhManifestMessageBag.Create(_packager.GenerateDiffWithMetrics(sendTo.GetEmrDto()).ToList()),version); + return SendManifestAsync(sendTo, DwhManifestMessageBag.Create(_packager.GenerateDiffWithMetrics(sendTo.GetEmrDto()).ToList()),version,apiVersion); } - public async Task> SendManifestAsync(SendManifestPackageDTO sendTo, DwhManifestMessageBag messageBag,string version) + public async Task> SendManifestAsync(SendManifestPackageDTO sendTo, DwhManifestMessageBag messageBag,string version,string apiVersion="") { var responses = new List(); @@ -130,11 +132,24 @@ public async Task> SendManifestAsync(SendManifestP { try { - var response = await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}spot"), message.Manifest); + var start = DateTime.Now; + var response = await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}spot",apiVersion), message.Manifest); if (response.IsSuccessStatusCode) { - var content = await response.Content.ReadAsStringAsync(); - responses.Add(new SendDhwManifestResponse(content)); + if (string.IsNullOrWhiteSpace(apiVersion)) + { + var content = await response.Content.ReadAsStringAsync(); + responses.Add(new SendDhwManifestResponse(content)); + } + else + { + var content = await response.Content.ReadAsJsonAsync(); + responses.Add(new SendDhwManifestResponse(content)); + + var tlog = TransportLog.GenerateManifest("NDWH", content.JobId, + new Guid(content.ManifestId), content.Code,start,content.FacilityId); + _transportLogRepository.CreateLatest(tlog); + } } else { diff --git a/src/Dwapi.UploadManagement.Core/Services/Hts/HtsSendService.cs b/src/Dwapi.UploadManagement.Core/Services/Hts/HtsSendService.cs index f0f8d5f9..db112147 100644 --- a/src/Dwapi.UploadManagement.Core/Services/Hts/HtsSendService.cs +++ b/src/Dwapi.UploadManagement.Core/Services/Hts/HtsSendService.cs @@ -3,6 +3,7 @@ using System.Linq; using System.Net.Http; using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Model.Destination.Hts; using Dwapi.ExtractsManagement.Core.Model.Destination.Hts.NewHts; using Dwapi.ExtractsManagement.Core.Notifications; using Dwapi.SettingsManagement.Core.Application.Metrics.Events; @@ -457,6 +458,61 @@ public async Task> SendPartnerNotificationServicesAsync(Se return responses; } + + public Task> SendHtsEligibilityExtractsAsync(SendManifestPackageDTO sendTo) + { + return SendHtsEligibilityExtractsAsync(sendTo, HtsMessageBag.Create(_packager.GenerateHtsEligibilityExtracts().ToList())); + } + + public async Task> SendHtsEligibilityExtractsAsync(SendManifestPackageDTO sendTo, HtsMessageBag messageBag) + { + var responses = new List(); + + var client = Client ?? new HttpClient(); + int sendCound = 0; + int count = 0; + int total = messageBag.Messages.Count; + DomainEvents.Dispatch(new HtsStatusNotification(sendTo.ExtractId, ExtractStatus.Sending)); + + foreach (var message in messageBag.Messages) + { + count++; + try + { + var msg = JsonConvert.SerializeObject(message); + var response = await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}HtsEligibilityScreening"), message); + if (response.IsSuccessStatusCode) + { + var content = await response.Content.ReadAsJsonAsync(); + responses.Add(content); + + var sentIds = message.HTSEligibility.Select(x => x.Id).ToList(); + sendCound += sentIds.Count; + DomainEvents.Dispatch(new HtsExtractSentEvent(sentIds, SendStatus.Sent, sendTo.ExtractName)); + } + else + { + var error = await response.Content.ReadAsStringAsync(); + DomainEvents.Dispatch(new HtsExtractSentEvent(message.HTSEligibility.Select(x => x.Id).ToList(), SendStatus.Failed, sendTo.ExtractName, error)); + throw new Exception(error); + } + } + catch (Exception e) + { + Log.Error(e, $"Send Manifest Error"); + throw; + } + + DomainEvents.Dispatch(new HtsSendNotification(new SendProgress(nameof(HtsEligibilityExtract), Common.GetProgress(count, total),sendCound))); + } + + DomainEvents.Dispatch(new HtsSendNotification(new SendProgress(nameof(HtsEligibilityExtract), Common.GetProgress(count, total),sendCound, true))); + + DomainEvents.Dispatch(new HtsStatusNotification(sendTo.ExtractId, ExtractStatus.Sent, sendCound)); + + return responses; + } + public async Task NotifyPostSending(SendManifestPackageDTO sendTo,string version) { diff --git a/src/Dwapi.UploadManagement.Core/Services/Prep/PrepSendService.cs b/src/Dwapi.UploadManagement.Core/Services/Prep/PrepSendService.cs new file mode 100644 index 00000000..72fbb391 --- /dev/null +++ b/src/Dwapi.UploadManagement.Core/Services/Prep/PrepSendService.cs @@ -0,0 +1,428 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net.Http; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SettingsManagement.Core.Application.Metrics.Events; +using Dwapi.SharedKernel.DTOs; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Dwapi.SharedKernel.Exchange; +using Dwapi.SharedKernel.Model; +using Dwapi.SharedKernel.Utility; +using Dwapi.UploadManagement.Core.Event.Prep; +using Dwapi.UploadManagement.Core.Exchange.Cbs; +using Dwapi.UploadManagement.Core.Exchange.Prep; +using Dwapi.UploadManagement.Core.Interfaces.Packager.Prep; +using Dwapi.UploadManagement.Core.Interfaces.Reader; +using Dwapi.UploadManagement.Core.Interfaces.Services.Prep; +using Dwapi.UploadManagement.Core.Notifications.Prep; +using MediatR; +using Newtonsoft.Json; +using Serilog; + +namespace Dwapi.UploadManagement.Core.Services.Prep +{ + public class PrepSendService : IPrepSendService + { + private readonly string _endPoint; + private readonly IPrepPackager _packager; + private readonly IMediator _mediator; + private readonly IEmrMetricReader _reader; + + public HttpClient Client { get; set; } + + public PrepSendService(IPrepPackager packager, IMediator mediator, IEmrMetricReader reader) + { + _packager = packager; + _mediator = mediator; + _reader = reader; + _endPoint = "api/prep/"; + } + + public Task> SendManifestAsync(SendManifestPackageDTO sendTo, string version) + { + return SendManifestAsync(sendTo, + ManifestMessageBag.Create(_packager.GenerateWithMetrics(sendTo.GetEmrDto()).ToList()), version); + } + + public async Task> SendManifestAsync(SendManifestPackageDTO sendTo, + ManifestMessageBag manifestMessage, string version) + { + var responses = new List(); + await _mediator.Publish(new HandshakeStart("PREPSendStart", version, manifestMessage.Session)); + var client = Client ?? new HttpClient(); + + foreach (var message in manifestMessage.Messages) + { + try + { + var msg = JsonConvert.SerializeObject(message); + var response = + await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}manifest"), message); + if (response.IsSuccessStatusCode) + { + var content = await response.Content.ReadAsJsonAsync(); + responses.Add(content); + } + else + { + var error = await response.Content.ReadAsStringAsync(); + throw new Exception(error); + } + } + catch (Exception e) + { + Log.Error(e, $"Send Manifest Error"); + throw; + } + } + + return responses; + } + + public Task> SendPatientPrepsAsync(SendManifestPackageDTO sendTo) + { + return SendPatientPrepsAsync(sendTo, PrepMessageBag.Create(_packager.GeneratePatientPreps().ToList())); + } + public async Task> SendPatientPrepsAsync(SendManifestPackageDTO sendTo,PrepMessageBag messageBag) + { + var responses = new List(); + var client = Client ?? new HttpClient(); + int sendCound=0; + int count = 0; + int total = messageBag.Messages.Count; + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sending)); + foreach (var message in messageBag.Messages) + { + count++; + try + { + var msg = JsonConvert.SerializeObject(message); + var response = await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}PatientPrep"), message); + if (response.IsSuccessStatusCode) + { + var content = await response.Content.ReadAsJsonAsync(); + responses.Add(content); + var sentIds = message.PatientPrepExtracts.Select(x => x.Id).ToList(); + sendCound += sentIds.Count; + DomainEvents.Dispatch(new PrepExtractSentEvent(sentIds, SendStatus.Sent,sendTo.ExtractName)); + } + else + { + var error = await response.Content.ReadAsStringAsync(); + DomainEvents.Dispatch(new PrepExtractSentEvent(message.PatientPrepExtracts.Select(x => x.Id).ToList(), SendStatus.Failed,sendTo.ExtractName,error)); + throw new Exception(error); + } + } + catch (Exception e) + { + Log.Error(e, $"Send Manifest Error"); + throw; + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PatientPrepExtract), Common.GetProgress(count,total),sendCound))); + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PatientPrepExtract), Common.GetProgress(count,total),sendCound,true))); + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sent, sendCound)); + return responses; + } + + public Task> SendPrepAdverseEventsAsync(SendManifestPackageDTO sendTo) + { + return SendPrepAdverseEventsAsync(sendTo, PrepMessageBag.Create(_packager.GeneratePrepAdverseEvents().ToList())); + } + public async Task> SendPrepAdverseEventsAsync(SendManifestPackageDTO sendTo,PrepMessageBag messageBag) + { + var responses = new List(); + var client = Client ?? new HttpClient(); + int sendCound=0; + int count = 0; + int total = messageBag.Messages.Count; + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sending)); + foreach (var message in messageBag.Messages) + { + count++; + try + { + var msg = JsonConvert.SerializeObject(message); + var response = await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}PrepAdverseEvent"), message); + if (response.IsSuccessStatusCode) + { + var content = await response.Content.ReadAsJsonAsync(); + responses.Add(content); + var sentIds = message.PrepAdverseEventExtracts.Select(x => x.Id).ToList(); + sendCound += sentIds.Count; + DomainEvents.Dispatch(new PrepExtractSentEvent(sentIds, SendStatus.Sent,sendTo.ExtractName)); + } + else + { + var error = await response.Content.ReadAsStringAsync(); + DomainEvents.Dispatch(new PrepExtractSentEvent(message.PrepAdverseEventExtracts.Select(x => x.Id).ToList(), SendStatus.Failed,sendTo.ExtractName,error)); + throw new Exception(error); + } + } + catch (Exception e) + { + Log.Error(e, $"Send Manifest Error"); + throw; + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PrepAdverseEventExtract), Common.GetProgress(count,total),sendCound))); + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PrepAdverseEventExtract), Common.GetProgress(count,total),sendCound,true))); + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sent, sendCound)); + return responses; + } + + public Task> SendPrepBehaviourRisksAsync(SendManifestPackageDTO sendTo) + { + return SendPrepBehaviourRisksAsync(sendTo, PrepMessageBag.Create(_packager.GeneratePrepBehaviourRisks().ToList())); + } + public async Task> SendPrepBehaviourRisksAsync(SendManifestPackageDTO sendTo,PrepMessageBag messageBag) + { + var responses = new List(); + var client = Client ?? new HttpClient(); + int sendCound=0; + int count = 0; + int total = messageBag.Messages.Count; + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sending)); + foreach (var message in messageBag.Messages) + { + count++; + try + { + var msg = JsonConvert.SerializeObject(message); + var response = await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}PrepBehaviourRisk"), message); + if (response.IsSuccessStatusCode) + { + var content = await response.Content.ReadAsJsonAsync(); + responses.Add(content); + var sentIds = message.PrepBehaviourRiskExtracts.Select(x => x.Id).ToList(); + sendCound += sentIds.Count; + DomainEvents.Dispatch(new PrepExtractSentEvent(sentIds, SendStatus.Sent,sendTo.ExtractName)); + } + else + { + var error = await response.Content.ReadAsStringAsync(); + DomainEvents.Dispatch(new PrepExtractSentEvent(message.PrepBehaviourRiskExtracts.Select(x => x.Id).ToList(), SendStatus.Failed,sendTo.ExtractName,error)); + throw new Exception(error); + } + } + catch (Exception e) + { + Log.Error(e, $"Send Manifest Error"); + throw; + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PrepBehaviourRiskExtract), Common.GetProgress(count,total),sendCound))); + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PrepBehaviourRiskExtract), Common.GetProgress(count,total),sendCound,true))); + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sent, sendCound)); + return responses; + } + + public Task> SendPrepCareTerminationsAsync(SendManifestPackageDTO sendTo) + { + return SendPrepCareTerminationsAsync(sendTo, PrepMessageBag.Create(_packager.GeneratePrepCareTerminations().ToList())); + } + public async Task> SendPrepCareTerminationsAsync(SendManifestPackageDTO sendTo, PrepMessageBag messageBag) + { + var responses = new List(); + var client = Client ?? new HttpClient(); + int sendCound=0; + int count = 0; + int total = messageBag.Messages.Count; + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sending)); + foreach (var message in messageBag.Messages) + { + count++; + try + { + var msg = JsonConvert.SerializeObject(message); + var response = await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}PrepCareTermination"), message); + if (response.IsSuccessStatusCode) + { + var content = await response.Content.ReadAsJsonAsync(); + responses.Add(content); + var sentIds = message.PrepCareTerminationExtracts.Select(x => x.Id).ToList(); + sendCound += sentIds.Count; + DomainEvents.Dispatch(new PrepExtractSentEvent(sentIds, SendStatus.Sent,sendTo.ExtractName)); + } + else + { + var error = await response.Content.ReadAsStringAsync(); + DomainEvents.Dispatch(new PrepExtractSentEvent(message.PrepCareTerminationExtracts.Select(x => x.Id).ToList(), SendStatus.Failed,sendTo.ExtractName,error)); + throw new Exception(error); + } + } + catch (Exception e) + { + Log.Error(e, $"Send Manifest Error"); + throw; + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PrepCareTerminationExtract), Common.GetProgress(count,total),sendCound))); + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PrepCareTerminationExtract), Common.GetProgress(count,total),sendCound,true))); + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sent, sendCound)); + return responses; + } + + public Task> SendPrepLabsAsync(SendManifestPackageDTO sendTo) + { + return SendPrepLabsAsync(sendTo, PrepMessageBag.Create(_packager.GeneratePrepLabs().ToList())); + } + public async Task> SendPrepLabsAsync(SendManifestPackageDTO sendTo, PrepMessageBag messageBag) + { + var responses = new List(); + var client = Client ?? new HttpClient(); + int sendCound=0; + int count = 0; + int total = messageBag.Messages.Count; + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sending)); + foreach (var message in messageBag.Messages) + { + count++; + try + { + var msg = JsonConvert.SerializeObject(message); + var response = await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}PrepLab"), message); + if (response.IsSuccessStatusCode) + { + var content = await response.Content.ReadAsJsonAsync(); + responses.Add(content); + var sentIds = message.PrepLabExtracts.Select(x => x.Id).ToList(); + sendCound += sentIds.Count; + DomainEvents.Dispatch(new PrepExtractSentEvent(sentIds, SendStatus.Sent,sendTo.ExtractName)); + } + else + { + var error = await response.Content.ReadAsStringAsync(); + DomainEvents.Dispatch(new PrepExtractSentEvent(message.PrepLabExtracts.Select(x => x.Id).ToList(), SendStatus.Failed,sendTo.ExtractName,error)); + throw new Exception(error); + } + } + catch (Exception e) + { + Log.Error(e, $"Send Manifest Error"); + throw; + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PrepLabExtract), Common.GetProgress(count,total),sendCound))); + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PrepLabExtract), Common.GetProgress(count,total),sendCound,true))); + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sent, sendCound)); + return responses; + } + + public Task> SendPrepPharmacysAsync(SendManifestPackageDTO sendTo) + { + return SendPrepPharmacysAsync(sendTo, PrepMessageBag.Create(_packager.GeneratePrepPharmacys().ToList())); + } + public async Task> SendPrepPharmacysAsync(SendManifestPackageDTO sendTo,PrepMessageBag messageBag) + { + var responses = new List(); + var client = Client ?? new HttpClient(); + int sendCound=0; + int count = 0; + int total = messageBag.Messages.Count; + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sending)); + foreach (var message in messageBag.Messages) + { + count++; + try + { + var msg = JsonConvert.SerializeObject(message); + var response = await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}PrepPharmacy"), message); + if (response.IsSuccessStatusCode) + { + var content = await response.Content.ReadAsJsonAsync(); + responses.Add(content); + var sentIds = message.PrepPharmacyExtracts.Select(x => x.Id).ToList(); + sendCound += sentIds.Count; + DomainEvents.Dispatch(new PrepExtractSentEvent(sentIds, SendStatus.Sent,sendTo.ExtractName)); + } + else + { + var error = await response.Content.ReadAsStringAsync(); + DomainEvents.Dispatch(new PrepExtractSentEvent(message.PrepPharmacyExtracts.Select(x => x.Id).ToList(), SendStatus.Failed,sendTo.ExtractName,error)); + throw new Exception(error); + } + } + catch (Exception e) + { + Log.Error(e, $"Send Manifest Error"); + throw; + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PrepPharmacyExtract), Common.GetProgress(count,total),sendCound))); + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PrepPharmacyExtract), Common.GetProgress(count,total),sendCound,true))); + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sent, sendCound)); + return responses; + } + + public Task> SendPrepVisitsAsync(SendManifestPackageDTO sendTo) + { + return SendPrepVisitsAsync(sendTo, PrepMessageBag.Create(_packager.GeneratePrepVisits().ToList())); + } + public async Task> SendPrepVisitsAsync(SendManifestPackageDTO sendTo,PrepMessageBag messageBag) + { + var responses = new List(); + var client = Client ?? new HttpClient(); + int sendCound=0; + int count = 0; + int total = messageBag.Messages.Count; + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sending)); + foreach (var message in messageBag.Messages) + { + count++; + try + { + var msg = JsonConvert.SerializeObject(message); + var response = await client.PostAsJsonAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}PrepVisit"), message); + if (response.IsSuccessStatusCode) + { + var content = await response.Content.ReadAsJsonAsync(); + responses.Add(content); + var sentIds = message.PrepVisitExtracts.Select(x => x.Id).ToList(); + sendCound += sentIds.Count; + DomainEvents.Dispatch(new PrepExtractSentEvent(sentIds, SendStatus.Sent,sendTo.ExtractName)); + } + else + { + var error = await response.Content.ReadAsStringAsync(); + DomainEvents.Dispatch(new PrepExtractSentEvent(message.PrepVisitExtracts.Select(x => x.Id).ToList(), SendStatus.Failed,sendTo.ExtractName,error)); + throw new Exception(error); + } + } + catch (Exception e) + { + Log.Error(e, $"Send Manifest Error"); + throw; + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PrepVisitExtract), Common.GetProgress(count,total),sendCound))); + } + DomainEvents.Dispatch(new PrepSendNotification(new SendProgress(nameof(PrepVisitExtract), Common.GetProgress(count,total),sendCound,true))); + DomainEvents.Dispatch(new PrepStatusNotification(sendTo.ExtractId, ExtractStatus.Sent, sendCound)); + return responses; + } + + public async Task NotifyPostSending(SendManifestPackageDTO sendTo, string version) + { + var notificationend = new HandshakeEnd("PREPSendEnd", version); + await _mediator.Publish(notificationend); + var client = Client ?? new HttpClient(); + try + { + var session = _reader.GetSession(notificationend.EndName); + var response = + await client.PostAsync(sendTo.GetUrl($"{_endPoint.HasToEndsWith("/")}Handshake?session={session}"), + null); + } + catch (Exception e) + { + Log.Error(e, $"Send Handshake Error"); + } + } + } + + +} diff --git a/src/Dwapi.UploadManagement.Infrastructure/Data/UploadContext.cs b/src/Dwapi.UploadManagement.Infrastructure/Data/UploadContext.cs index 13696cb3..19b3c18a 100644 --- a/src/Dwapi.UploadManagement.Infrastructure/Data/UploadContext.cs +++ b/src/Dwapi.UploadManagement.Infrastructure/Data/UploadContext.cs @@ -1,17 +1,22 @@ -using Dwapi.SharedKernel.Infrastructure; +using Dwapi.ExtractsManagement.Core.Loader.Prep; +using Dwapi.ExtractsManagement.Core.Model.Destination.Prep; +using Dwapi.SharedKernel.Infrastructure; using Dwapi.UploadManagement.Core.Model; using Dwapi.UploadManagement.Core.Model.Cbs; +using Dwapi.UploadManagement.Core.Model.Crs; using Dwapi.UploadManagement.Core.Model.Dwh; using Dwapi.UploadManagement.Core.Model.Hts; using Dwapi.UploadManagement.Core.Model.Mgs; using Dwapi.UploadManagement.Core.Model.Mnch; using Dwapi.UploadManagement.Core.Model.Mts; +using Dwapi.UploadManagement.Core.Model.Prep; using Microsoft.EntityFrameworkCore; namespace Dwapi.UploadManagement.Infrastructure.Data { public class UploadContext : BaseContext { + public virtual DbSet ClientClientRegistryExtracts { get; set; } public virtual DbSet ClientMasterPatientIndices { get; set; } public virtual DbSet ClientPatientExtracts { get; set; } public virtual DbSet ClientPatientArtExtracts { get; set; } @@ -29,6 +34,7 @@ public class UploadContext : BaseContext public virtual DbSet ClientTestsExtracts { get; set; } public virtual DbSet PartnerNotificationServicesExtracts { get; set; } public virtual DbSet ClientTracingExtracts { get; set; } + public virtual DbSet HtsEligibilityExtract { get; set; } public virtual DbSet MetricMigrationExtracts { get; set; } @@ -48,6 +54,9 @@ public class UploadContext : BaseContext public virtual DbSet ClientOvcExtracts { get; set; } public virtual DbSet ClientOtzExtracts { get; set; } + public virtual DbSet ClientCovidExtracts { get; set; } + public virtual DbSet ClientDefaulterTracingExtracts { get; set; } + public virtual DbSet ClientPatientMnchExtracts { get; set; } public virtual DbSet ClientMnchEnrolmentExtracts { get; set; } public virtual DbSet ClientMnchArtExtracts { get; set; } @@ -59,16 +68,30 @@ public class UploadContext : BaseContext public virtual DbSet ClientCwcVisitExtracts { get; set; } public virtual DbSet ClientHeiExtracts { get; set; } public virtual DbSet ClientMnchLabExtracts { get; set; } + public virtual DbSet TransportLogs { get; set; } + + + public virtual DbSet ClientPatientPrepExtracts { get; set; } + public virtual DbSet ClientPrepAdverseEventExtracts { get; set; } + public virtual DbSet ClientPrepBehaviourRiskExtracts { get; set; } + public virtual DbSet ClientPrepCareTerminationExtracts { get; set; } + public virtual DbSet ClientPrepLabExtracts { get; set; } + public virtual DbSet ClientPrepPharmacyExtracts { get; set; } + public virtual DbSet ClientPrepVisitExtracts { get; set; } + + public virtual DbSet ClientRegistryExtracts { get; set; } public UploadContext(DbContextOptions options) : base(options) { - } protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); - + + modelBuilder.Entity() + .HasKey(f => new {f.SiteCode, f.PatientPK}); + modelBuilder.Entity() .HasKey(f => new {f.SiteCode, f.PatientPK}); @@ -77,6 +100,9 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) modelBuilder.Entity() .HasKey(f => f.Id); + + modelBuilder.Entity() + .HasKey(f => f.Id); } } } diff --git a/src/Dwapi.UploadManagement.Infrastructure/Reader/Crs/CrsExtractReader.cs b/src/Dwapi.UploadManagement.Infrastructure/Reader/Crs/CrsExtractReader.cs new file mode 100644 index 00000000..4e93f2b7 --- /dev/null +++ b/src/Dwapi.UploadManagement.Infrastructure/Reader/Crs/CrsExtractReader.cs @@ -0,0 +1,53 @@ +using System.Collections.Generic; +using System.Linq; +using Dapper; +using Dwapi.SharedKernel.Model; +using Dwapi.UploadManagement.Core.Interfaces.Reader.Crs; +using Dwapi.UploadManagement.Core.Model.Crs; +using Dwapi.UploadManagement.Infrastructure.Data; +using Microsoft.EntityFrameworkCore; + +namespace Dwapi.UploadManagement.Infrastructure.Reader.Crs +{ + public class CrsExtractReader:ICrsExtractReader + { + + private readonly UploadContext _context; + + public CrsExtractReader(UploadContext context) + { + _context = context; + } + + public IEnumerable ReadAll() + { + return _context.ClientClientRegistryExtracts.Where(x=>!x.IsSent).AsNoTracking(); + } + + public IEnumerable GetSites() + { + var sql = @" + SELECT + SiteCode,MAX(FacilityName) AS SiteName,Count(Id) AS PatientCount + FROM + ClientRegistryExtracts + GROUP BY + SiteCode + "; + return _context.Database.GetDbConnection() + .Query(sql).ToList(); + } + + public IEnumerable GetSitePatientProfiles() + { + var sql = @" + SELECT + SiteCode,FacilityName AS SiteName,PatientPk + FROM + ClientRegistryExtracts + "; + return _context.Database.GetDbConnection() + .Query(sql).ToList(); + } + } +} diff --git a/src/Dwapi.UploadManagement.Infrastructure/Reader/Dwh/DwhExtractReader.cs b/src/Dwapi.UploadManagement.Infrastructure/Reader/Dwh/DwhExtractReader.cs index 3dfffb28..5d498441 100644 --- a/src/Dwapi.UploadManagement.Infrastructure/Reader/Dwh/DwhExtractReader.cs +++ b/src/Dwapi.UploadManagement.Infrastructure/Reader/Dwh/DwhExtractReader.cs @@ -3,6 +3,7 @@ using System.Linq; using System.Linq.Expressions; using Dapper; +using Dwapi.ExtractsManagement.Core.Model.Destination.Dwh; using Dwapi.ExtractsManagement.Core.Model.Diff; using Dwapi.SharedKernel.Model; using Dwapi.UploadManagement.Core.Interfaces.Reader.Dwh; @@ -54,6 +55,8 @@ public PatientExtractView Read(Guid id) .Include(x => x.DrugAlcoholScreeningExtracts) .Include(x => x.OvcExtracts) .Include(x => x.OtzExtracts) + .Include(x => x.CovidExtracts) + .Include(x => x.DefaulterTracingExtracts) .AsNoTracking() .FirstOrDefault(x => x.Id == id); return patientExtractView; @@ -105,6 +108,36 @@ public IEnumerable Read(int page, int pageSize, Expression ReadSmart(int page, int pageSize) where T : Entity + { + var skip = (page - 1) * pageSize; + + return _context.Set() + .OrderBy(x => x.Id) + .Skip(skip).Take(pageSize) + .AsNoTracking().ToList(); + } + + public IEnumerable ReadSmart(int page, int pageSize) where T : ClientExtract + { + var skip = (page - 1) * pageSize; + + return _context.Set() + .OrderBy(x => x.SiteCode) + .ThenBy(p=>p.PatientPK) + .Skip(skip).Take(pageSize) + .AsNoTracking().ToList(); + } + + public IEnumerable ReadSmart(int page, int pageSize, Expression> predicate) where T : Entity + { + return _context.Set() + .Where(predicate) + .OrderBy(x => x.Id) + .Skip((page - 1) * pageSize).Take(pageSize) + .AsNoTracking().ToList(); + } + public IEnumerable ReadMainExtract(int page, int pageSize, Expression> predicate) where T : Entity { return _context.Set() diff --git a/src/Dwapi.UploadManagement.Infrastructure/Reader/EmrMetricReader.cs b/src/Dwapi.UploadManagement.Infrastructure/Reader/EmrMetricReader.cs index 2dc35cb3..489598c8 100644 --- a/src/Dwapi.UploadManagement.Infrastructure/Reader/EmrMetricReader.cs +++ b/src/Dwapi.UploadManagement.Infrastructure/Reader/EmrMetricReader.cs @@ -7,6 +7,7 @@ using System.Linq; using Dwapi.SettingsManagement.Core.Application.Metrics.Events; using Newtonsoft.Json; +using Serilog; namespace Dwapi.UploadManagement.Infrastructure.Reader { @@ -31,6 +32,8 @@ public IEnumerable ReadAppAll() public Guid GetSession(string notificationName) { + Log.Debug(_context.Database.GetDbConnection().ConnectionString); + var metric = _context.AppMetrics.AsNoTracking().FirstOrDefault(x => x.Name == notificationName); if (null != metric) { diff --git a/src/Dwapi.UploadManagement.Infrastructure/Reader/Hts/HtsExtractReader.cs b/src/Dwapi.UploadManagement.Infrastructure/Reader/Hts/HtsExtractReader.cs index c39644aa..c2472c7b 100644 --- a/src/Dwapi.UploadManagement.Infrastructure/Reader/Hts/HtsExtractReader.cs +++ b/src/Dwapi.UploadManagement.Infrastructure/Reader/Hts/HtsExtractReader.cs @@ -75,6 +75,15 @@ public IEnumerable ReadAllClientsLinkage() //return _context.ClientLinkageExtracts.Where(x => !x.IsSent).AsNoTracking(); } + public IEnumerable ReadAllHtsEligibilityExtracts() + { + return _context.Database.GetDbConnection() + .Query("Select * From HtsEligibilityExtracts") + .ToList() + .Where(x => !x.IsSent); + //return _context.ClientLinkageExtracts.Where(x => !x.IsSent).AsNoTracking(); + } + public IEnumerable GetSites() { var sql = @" diff --git a/src/Dwapi.UploadManagement.Infrastructure/Reader/Prep/PrepExtractReader.cs b/src/Dwapi.UploadManagement.Infrastructure/Reader/Prep/PrepExtractReader.cs new file mode 100644 index 00000000..19ec228e --- /dev/null +++ b/src/Dwapi.UploadManagement.Infrastructure/Reader/Prep/PrepExtractReader.cs @@ -0,0 +1,93 @@ +using System.Collections.Generic; +using System.Linq; +using Dwapi.UploadManagement.Core.Interfaces.Reader.Prep; +using Dwapi.UploadManagement.Core.Model.Prep; +using Dwapi.UploadManagement.Infrastructure.Data; +using Microsoft.EntityFrameworkCore; +using Dapper; +using Dwapi.SharedKernel.Model; + +namespace Dwapi.UploadManagement.Infrastructure.Reader.Prep +{ + public class PrepExtractReader : IPrepExtractReader + { + + private readonly UploadContext _context; + + public PrepExtractReader(UploadContext context) + { + _context = context; + } + + public IEnumerable GetSites() + { + var sql = @" + SELECT + SiteCode,MAX(FacilityName) AS SiteName,Count(Id) AS PatientCount + FROM + PatientPrepExtracts + GROUP BY + SiteCode + "; + return _context.Database.GetDbConnection() + .Query(sql).ToList(); + } + + public IEnumerable GetSitePatientProfiles() + { + var sql = @" + SELECT + SiteCode,FacilityName AS SiteName,PatientPk + FROM + PatientPrepExtracts + "; + return _context.Database.GetDbConnection() + .Query(sql).ToList(); + } + + public IEnumerable ReadAllPatientPreps() + { + return _context.Database.GetDbConnection() + .Query("Select * From PatientPrepExtracts").ToList().Where(x => !x.IsSent); + } + + public IEnumerable ReadAllPrepAdverseEvents() + { + return _context.Database.GetDbConnection().Query("Select * From PrepAdverseEventExtracts") + .ToList().Where(x => !x.IsSent); + } + + public IEnumerable ReadAllPrepBehaviourRisks() + { + return _context.Database.GetDbConnection().Query("Select * From PrepBehaviourRiskExtracts") + .ToList().Where(x => !x.IsSent); + } + + public IEnumerable ReadAllPrepCareTerminations() + { + return _context.Database.GetDbConnection().Query("Select * From PrepCareTerminationExtracts") + .ToList().Where(x => !x.IsSent); + } + + public IEnumerable ReadAllPrepLabs() + { + return _context.Database.GetDbConnection().Query("Select * From PrepLabExtracts") + .ToList().Where(x => !x.IsSent); + } + + public IEnumerable ReadAllPrepPharmacys() + { + return _context.Database.GetDbConnection().Query("Select * From PrepPharmacyExtracts") + .ToList().Where(x => !x.IsSent); + } + + public IEnumerable ReadAllPrepVisits() + { + return _context.Database.GetDbConnection().Query("Select * From PrepVisitExtracts") + .ToList().Where(x => !x.IsSent); + } + + + + } +} diff --git a/src/Dwapi/.config/dotnet-tools.json b/src/Dwapi/.config/dotnet-tools.json new file mode 100644 index 00000000..bdab143d --- /dev/null +++ b/src/Dwapi/.config/dotnet-tools.json @@ -0,0 +1,12 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-ef": { + "version": "6.0.7", + "commands": [ + "dotnet-ef" + ] + } + } +} \ No newline at end of file diff --git a/src/Dwapi/.vscode/launch.json b/src/Dwapi/.vscode/launch.json deleted file mode 100644 index 835e7b28..00000000 --- a/src/Dwapi/.vscode/launch.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - // Use IntelliSense to find out which attributes exist for C# debugging - // Use hover for the description of the existing attributes - // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md - "version": "0.2.0", - "configurations": [ - { - "name": ".NET Core Launch (web)", - "type": "coreclr", - "request": "launch", - "preLaunchTask": "build", - // If you have changed target frameworks, make sure to update the program path. - "program": "${workspaceFolder}/bin/Debug/netcoreapp2.0/Dwapi.dll", - "args": [], - "cwd": "${workspaceFolder}", - "stopAtEntry": false, - "internalConsoleOptions": "openOnSessionStart", - "launchBrowser": { - "enabled": true, - "args": "${auto-detect-url}", - "windows": { - "command": "cmd.exe", - "args": "/C start ${auto-detect-url}" - }, - "osx": { - "command": "open" - }, - "linux": { - "command": "xdg-open" - } - }, - "env": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "sourceFileMap": { - "/Views": "${workspaceFolder}/Views" - } - }, - { - "name": ".NET Core Attach", - "type": "coreclr", - "request": "attach", - "processId": "${command:pickProcess}" - } - ,] -} \ No newline at end of file diff --git a/src/Dwapi/.vscode/tasks.json b/src/Dwapi/.vscode/tasks.json deleted file mode 100644 index c95f0bec..00000000 --- a/src/Dwapi/.vscode/tasks.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": "2.0.0", - "tasks": [ - { - "label": "build", - "command": "dotnet", - "type": "process", - "args": [ - "build", - "${workspaceFolder}/Dwapi.csproj" - ], - "problemMatcher": "$msCompile" - } - ] -} \ No newline at end of file diff --git a/src/Dwapi/Controller/CrsController.cs b/src/Dwapi/Controller/CrsController.cs new file mode 100644 index 00000000..c2b31cde --- /dev/null +++ b/src/Dwapi/Controller/CrsController.cs @@ -0,0 +1,239 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Crs; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Crs; +using Dwapi.ExtractsManagement.Core.Interfaces.Services; +using Dwapi.ExtractsManagement.Core.Model.Destination.Crs; +using Dwapi.Hubs.Crs; +using Dwapi.SettingsManagement.Core.Application.Metrics.Events; +using Dwapi.SettingsManagement.Core.Model; +using Dwapi.SharedKernel.DTOs; +using Dwapi.SharedKernel.Utility; +using Dwapi.UploadManagement.Core.Interfaces.Services.Crs; +using MediatR; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.SignalR; +using Serilog; + +namespace Dwapi.Controller +{ + [Produces("application/json")] + [Route("api/Crs")] + public class CrsController : Microsoft.AspNetCore.Mvc.Controller + { + private readonly IMediator _mediator; + private readonly IExtractStatusService _extractStatusService; + private readonly IHubContext _hubContext; + private readonly IHubContext _hubSendContext; + private readonly IClientRegistryExtractRepository _clientRegistryExtractRepository; + private readonly ICrsSendService _crsSendService; + private readonly ICrsSearchService _crsSearchService; + private readonly string _version; + + public CrsController(IMediator mediator, IExtractStatusService extractStatusService, + IHubContext hubContext, IClientRegistryExtractRepository clientRegistryExtractRepository, + ICrsSendService crsSendService, IHubContext hubSendContext, ICrsSearchService crsSearchService) + { + _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); + _extractStatusService = extractStatusService; + _clientRegistryExtractRepository = clientRegistryExtractRepository; + _crsSendService = crsSendService; + _crsSearchService = crsSearchService; + Startup.CrsSendHubContext= _hubSendContext = hubSendContext; + Startup.CrsHubContext = _hubContext = hubContext; + var ver = GetType().Assembly.GetName().Version; + _version = $"{ver.Major}.{ver.Minor}.{ver.Build}"; + } + + + [HttpPost("extract")] + public async Task Load([FromBody] ExtractClientRegistryExtract request) + { + + string version = GetType().Assembly.GetName().Version.ToString(); + + var result = await _mediator.Send(request, HttpContext.RequestAborted); + await _mediator.Publish(new ExtractLoaded("ClientRegistryExtract", version)); + + return Ok(result); + } + + + // GET: api/DwhExtracts/status/id + [HttpGet("status/{id}")] + public IActionResult GetStatus(Guid id) + { + if (id.IsNullOrEmpty()) + return BadRequest(); + try + { + var eventExtract = _extractStatusService.GetStatus(id); + if (null == eventExtract) + return NotFound(); + + return Ok(eventExtract); + } + catch (Exception e) + { + var msg = $"Error loading {nameof(Extract)}(s)"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("allcount")] + public IActionResult GetAllExtractCount() + { + try + { + var count = _clientRegistryExtractRepository.GetAll().Count(); + return Ok(count); + } + catch (Exception e) + { + var msg = $"Error loading {nameof(Extract)}(s)"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("crssummary")] + public IActionResult GetCrsSummery() + { + try + { + var count = _clientRegistryExtractRepository.GetSummery(); + return Ok(count); + } + catch (Exception e) + { + var msg = $"Error loading {nameof(Extract)}(s)"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("all")] + public IActionResult GetAllExtracts() + { + try + { + var eventExtract = _clientRegistryExtractRepository.GetAll().ToList(); + return Ok(eventExtract); + } + catch (Exception e) + { + var msg = $"Error loading {nameof(Extract)}(s)"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + + + [HttpGet("count")] + public IActionResult GetExtractCount() + { + try + { + var count = _clientRegistryExtractRepository.GetView().Select(x => x.Id).Count(); + return Ok(count); + } + catch (Exception e) + { + var msg = $"Error loading {nameof(Extract)}(s)"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet] + public IActionResult GetExtracts() + { + try + { + var eventExtract = _clientRegistryExtractRepository.GetAll().ToList(); + return Ok(eventExtract); + } + catch (Exception e) + { + var msg = $"Error loading {nameof(Extract)}(s)"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + // POST: api/Crs/manifest + [HttpPost("manifest")] + public async Task SendManifest([FromBody] SendManifestPackageDTO packageDTO) + { + if (!packageDTO.IsValid()) + return BadRequest(); + + string version = GetType().Assembly.GetName().Version.ToString(); + + await _mediator.Publish(new ExtractSent("ClientRegistryExtract", version)); + + + try + { + await _crsSendService.SendManifestAsync(packageDTO,_version); + return Ok(); + } + catch (Exception e) + { + var msg = $"Error sending {nameof(ClientRegistryExtract)} Manifest {e.Message}"; + Log.Error(e,msg); + return StatusCode(500, msg); + } + } + + + // POST: api/Crs/manifest + [HttpPost("crs")] + public async Task SendCrs([FromBody] SendManifestPackageDTO packageDTO) + { + if (!packageDTO.IsValid()) + return BadRequest(); + try + { + await _crsSendService.SendCrsAsync(packageDTO); + await _crsSendService.NotifyPostSending(packageDTO, _version); + return Ok(); + } + catch (Exception e) + { + var msg = $"Error sending {nameof(ClientRegistryExtract)} {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + + // POST: api/Crs/crsSearchPackage + [HttpPost("crsSearch")] + public async Task SearchCrs([FromBody] CrsSearchPackageDto crsSearchPackage) + { + if (!crsSearchPackage.IsValid()) + return BadRequest(); + try + { + var result = await _crsSearchService.SearchCrsAsync(crsSearchPackage); + return Ok(result); + } + catch (Exception e) + { + var msg = $"Error getting {nameof(ClientRegistryExtract)} search results. {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + + } +} diff --git a/src/Dwapi/Controller/DwhExtractsController.cs b/src/Dwapi/Controller/DwhExtractsController.cs index fa213953..b185203d 100644 --- a/src/Dwapi/Controller/DwhExtractsController.cs +++ b/src/Dwapi/Controller/DwhExtractsController.cs @@ -12,6 +12,7 @@ using Dwapi.SharedKernel.DTOs; using Dwapi.SharedKernel.Utility; using Dwapi.UploadManagement.Core.Exchange.Dwh; +using Dwapi.UploadManagement.Core.Exchange.Dwh.Smart; using Dwapi.UploadManagement.Core.Interfaces.Services.Cbs; using Dwapi.UploadManagement.Core.Interfaces.Services.Dwh; using Hangfire; @@ -70,7 +71,7 @@ public async Task Load([FromBody]LoadExtracts request) { var result = await _mediator.Send(request.LoadFromEmrCommand, HttpContext.RequestAborted); - await _mediator.Publish(new ExtractLoaded("CareTreatment", version)); + await _mediator.Publish(new ExtractLoaded("CareTreatment", version, request.EmrSetup)); return Ok(result); } @@ -169,6 +170,50 @@ public async Task SendDiffManifest([FromBody] CombinedSendManifes } } + #region Smart Endpoints + // POST: api/DwhExtracts/manifest + [HttpPost("smart/manifest")] + public async Task SendSmartManifest([FromBody] CombinedSendManifestDto packageDto) + { + if (!packageDto.IsValid()) + return BadRequest(); + + string version = GetType().Assembly.GetName().Version.ToString(); + + await _mediator.Publish(new ExtractSent("CareTreatment", version)); + + try + { + var result = await _ctSendService.SendSmartManifestAsync(packageDto.DwhPackage, _version, "3"); + return Ok(result); + } + catch (Exception e) + { + var msg = $"Error sending Smart Manifest {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + + // POST: api/DwhExtracts/patients + [HttpPost("smart/patients")] + public IActionResult SendSmartPatientExtracts([FromBody] CombinedSendManifestDto packageDto) + { + if (!packageDto.IsValid()) + return BadRequest(); + try + { + QueueSmartDwh(packageDto.DwhPackage); + return Ok(); + } + catch (Exception e) + { + var msg = $"Error sending Smart Extracts {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + #endregion // POST: api/DwhExtracts/patients [HttpPost("patients")] @@ -196,6 +241,7 @@ public IActionResult SendPatientExtracts([FromBody] CombinedSendManifestDto pack } } + // POST: api/DwhExtracts/patients [HttpPost("diffpatients")] public IActionResult SendDiffPatientExtracts([FromBody] CombinedSendManifestDto packageDto) @@ -244,8 +290,11 @@ private void QueueDwh(SendManifestPackageDTO package) var job4 = BatchJob.ContinueBatchWith(job3, x => { SendNewOtherJobProfiles(package); }); + var job5 = + BatchJob.ContinueBatchWith(job4, x => { SendCovidJobProfiles(package); }); + var jobEnd = - BatchJob.ContinueBatchWith(job4, x => { _ctSendService.NotifyPostSending(package,_version); }); + BatchJob.ContinueBatchWith(job5, x => { _ctSendService.NotifyPostSending(package,_version); }); } [AutomaticRetry(Attempts = 0)] @@ -270,10 +319,85 @@ private void QueueDwhDiff(SendManifestPackageDTO package) var job4 = BatchJob.ContinueBatchWith(job3, x => { SendDiffNewOtherJobProfiles(package); }); + var job5 = + BatchJob.ContinueBatchWith(job4, x => { SendDiffCovidJobProfiles(package); }); + var jobEnd = - BatchJob.ContinueBatchWith(job4, x => { _ctSendService.NotifyPostSending(package, _version); }); + BatchJob.ContinueBatchWith(job5, x => { _ctSendService.NotifyPostSending(package, _version); }); } + #region Smart + + [AutomaticRetry(Attempts = 0)] + private void QueueSmartDwh(SendManifestPackageDTO package) + { + var extracts = _extractRepository.GetAllRelated(package.ExtractId).ToList(); + + if (extracts.Any()) + package.Extracts = extracts.Select(x => new ExtractDto() {Id = x.Id, Name = x.Name}).ToList(); + + _ctSendService.NotifyPreSending(); + + var job0 = + BatchJob.StartNew(x => { SendJobSmartPateints(package); }); + + var job1 = + BatchJob.ContinueBatchWith(job0, x => { SendJobSmartBaselines(package); }); + + var job2 = + BatchJob.ContinueBatchWith(job1, x => { SendJobSmartProfiles(package); }); + + var job3 = + BatchJob.ContinueBatchWith(job2, x => { SendNewJobSmartProfiles(package); }); + + var job4 = + BatchJob.ContinueBatchWith(job3, x => { SendNewOtherJobSmartProfiles(package); }); + + var job5 = + BatchJob.ContinueBatchWith(job4, x => { SendCovidJobSmartProfiles(package); }); + + var jobEnd = + BatchJob.ContinueBatchWith(job5, x => { _ctSendService.NotifyPostSending(package,_version); }); + } + public void SendJobSmartPateints(SendManifestPackageDTO package) + { + var idsA =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Patients, new PatientMessageSourceBag()).Result; + } + public void SendJobSmartBaselines(SendManifestPackageDTO package) + { + var idsA =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Patients, new ArtMessageSourceBag()).Result; + var idsB=_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Patients, new BaselineMessageSourceBag()).Result; + var idsC= _ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Patients, new StatusMessageSourceBag()).Result; + var idsD=_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new AdverseEventMessageSourceBag()).Result; + } + public void SendJobSmartProfiles(SendManifestPackageDTO package) + { + var idsC= _ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Visits, new VisitMessageSourceBag()).Result; + var idsA =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new PharmacyMessageSourceBag()).Result; + var idsB=_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new LaboratoryMessageSourceBag()).Result; + } + public void SendNewJobSmartProfiles(SendManifestPackageDTO package) + { + var idsAllergiesChronicIllness =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new AllergiesChronicIllnessMessageSourceBag()).Result; + var idsIpt =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new IptMessageSourceBag()).Result; + var idsDepressionScreening =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new DepressionScreeningMessageSourceBag()).Result; + var idsContactListing =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new ContactListingMessageSourceBag()).Result; + } + public void SendNewOtherJobSmartProfiles(SendManifestPackageDTO package) + { + var idsGbvScreening =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new GbvScreeningMessageSourceBag()).Result; + var idsEnhancedAdherenceCounselling =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new EnhancedAdherenceCounsellingMessageSourceBag()).Result; + var idsDrugAlcoholScreening =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new DrugAlcoholScreeningMessageSourceBag()).Result; + var idsOvc =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new OvcMessageSourceBag()).Result; + var idsOtz =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new OtzMessageSourceBag()).Result; + } + public void SendCovidJobSmartProfiles(SendManifestPackageDTO package) + { + var idsCovid =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new CovidMessageSourceBag()).Result; + var idsDefaulterTracing =_ctSendService.SendSmartBatchExtractsAsync(package, Startup.AppFeature.BatchSize.Extracts, new DefaulterTracingMessageSourceBag()).Result; + } + + #endregion public void SendJobBaselines(SendManifestPackageDTO package) { var idsA =_ctSendService.SendBatchExtractsAsync(package, 500, new ArtMessageBag()).Result; @@ -281,6 +405,7 @@ public void SendJobBaselines(SendManifestPackageDTO package) var idsC= _ctSendService.SendBatchExtractsAsync(package, 500, new StatusMessageBag()).Result; var idsD=_ctSendService.SendBatchExtractsAsync(package, 500, new AdverseEventsMessageBag()).Result; } + public void SendDiffJobBaselines(SendManifestPackageDTO package) { var idsA =_ctSendService.SendDiffBatchExtractsAsync(package, 500, new ArtMessageBag()).Result; @@ -294,6 +419,7 @@ public void SendJobProfiles(SendManifestPackageDTO package) var idsB=_ctSendService.SendBatchExtractsAsync(package, 500, new LabMessageBag()).Result; var idsC= _ctSendService.SendBatchExtractsAsync(package, 500, new VisitsMessageBag()).Result; } + public void SendNewJobProfiles(SendManifestPackageDTO package) { var idsAllergiesChronicIllness =_ctSendService.SendBatchExtractsAsync(package, 200, new AllergiesChronicIllnesssMessageBag()).Result; @@ -302,6 +428,8 @@ public void SendNewJobProfiles(SendManifestPackageDTO package) var idsContactListing =_ctSendService.SendBatchExtractsAsync(package, 200, new ContactListingsMessageBag()).Result; } + + public void SendNewOtherJobProfiles(SendManifestPackageDTO package) { var idsGbvScreening =_ctSendService.SendBatchExtractsAsync(package, 200, new GbvScreeningsMessageBag()).Result; @@ -311,6 +439,15 @@ public void SendNewOtherJobProfiles(SendManifestPackageDTO package) var idsOtz =_ctSendService.SendBatchExtractsAsync(package, 200, new OtzsMessageBag()).Result; } + + public void SendCovidJobProfiles(SendManifestPackageDTO package) + { + var idsCovid =_ctSendService.SendBatchExtractsAsync(package, 200, new CovidsMessageBag()).Result; + var idsDefaulterTracing =_ctSendService.SendBatchExtractsAsync(package, 200, new DefaulterTracingsMessageBag()).Result; + } + + + public void SendDiffJobProfiles(SendManifestPackageDTO package) { var idsA =_ctSendService.SendDiffBatchExtractsAsync(package, 500, new PharmacyMessageBag()).Result; @@ -335,6 +472,12 @@ public void SendDiffNewOtherJobProfiles(SendManifestPackageDTO package) var idsOtz =_ctSendService.SendDiffBatchExtractsAsync(package, 200, new OtzsMessageBag()).Result; } + public void SendDiffCovidJobProfiles(SendManifestPackageDTO package) + { + var idsCovid =_ctSendService.SendDiffBatchExtractsAsync(package, 200, new CovidsMessageBag()).Result; + var idsDefaulterTracing =_ctSendService.SendDiffBatchExtractsAsync(package, 200, new DefaulterTracingsMessageBag()).Result; + } + [AutomaticRetry(Attempts = 0)] private void QueueMpi(SendManifestPackageDTO package) { diff --git a/src/Dwapi/Controller/ExtractDetails/CovidController.cs b/src/Dwapi/Controller/ExtractDetails/CovidController.cs new file mode 100644 index 00000000..d2cc07b3 --- /dev/null +++ b/src/Dwapi/Controller/ExtractDetails/CovidController.cs @@ -0,0 +1,93 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Microsoft.AspNetCore.Mvc; +using Serilog; +using System; +using System.Linq; +using System.Threading.Tasks; + +namespace Dwapi.Controller.ExtractDetails +{ + [Produces("application/json")] + [Route("api/Covid")] + public class CovidController : Microsoft.AspNetCore.Mvc.Controller + { + private readonly ITempCovidExtractRepository _tempCovidExtractRepository; + private readonly ICovidExtractRepository _covidExtractRepository; + private readonly ITempCovidExtractErrorSummaryRepository _errorSummaryRepository; + + public CovidController(ITempCovidExtractRepository tempCovidExtractRepository, ICovidExtractRepository CovidExtractRepository, ITempCovidExtractErrorSummaryRepository errorSummaryRepository) + { + _tempCovidExtractRepository = tempCovidExtractRepository; + _covidExtractRepository = CovidExtractRepository; + _errorSummaryRepository = errorSummaryRepository; + } + + [HttpGet("ValidCount")] + public async Task GetValidCount() + { + try + { + var count = await _covidExtractRepository.GetCount(); + return Ok(count); + } + catch (Exception e) + { + var msg = $"Error loading valid Patient Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValid/{page}/{pageSize}")] + public async Task LoadValid(int? page,int pageSize) + { + try + { + var tempCovidExtracts = await _covidExtractRepository.GetAll(page,pageSize); + return Ok(tempCovidExtracts.ToList()); + } + catch (Exception e) + { + var msg = $"Error loading valid Covid Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadErrors")] + public IActionResult LoadErrors() + { + try + { + var tempCovidExtracts = _tempCovidExtractRepository.GetAll().Where(n => n.CheckError).ToList(); + return Ok(tempCovidExtracts); + } + catch (Exception e) + { + var msg = $"Error loading Covid Extracts with errors"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValidations")] + public IActionResult LoadValidations() + { + try + { + var errorSummary = _errorSummaryRepository.GetAll().OrderByDescending(x=>x.Type).ToList(); + return Ok(errorSummary); + } + catch (Exception e) + { + var msg = $"Error loading Patient Status error summary"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + } +} diff --git a/src/Dwapi/Controller/ExtractDetails/DefaulterTracingController.cs b/src/Dwapi/Controller/ExtractDetails/DefaulterTracingController.cs new file mode 100644 index 00000000..011ed4b7 --- /dev/null +++ b/src/Dwapi/Controller/ExtractDetails/DefaulterTracingController.cs @@ -0,0 +1,93 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Microsoft.AspNetCore.Mvc; +using Serilog; +using System; +using System.Linq; +using System.Threading.Tasks; + +namespace Dwapi.Controller.ExtractDetails +{ + [Produces("application/json")] + [Route("api/DefaulterTracing")] + public class DefaulterTracingController : Microsoft.AspNetCore.Mvc.Controller + { + private readonly ITempDefaulterTracingExtractRepository _tempDefaulterTracingExtractRepository; + private readonly IDefaulterTracingExtractRepository _defaulterTracingExtractRepository; + private readonly ITempDefaulterTracingExtractErrorSummaryRepository _errorSummaryRepository; + + public DefaulterTracingController(ITempDefaulterTracingExtractRepository tempDefaulterTracingExtractRepository, IDefaulterTracingExtractRepository DefaulterTracingExtractRepository, ITempDefaulterTracingExtractErrorSummaryRepository errorSummaryRepository) + { + _tempDefaulterTracingExtractRepository = tempDefaulterTracingExtractRepository; + _defaulterTracingExtractRepository = DefaulterTracingExtractRepository; + _errorSummaryRepository = errorSummaryRepository; + } + + [HttpGet("ValidCount")] + public async Task GetValidCount() + { + try + { + var count = await _defaulterTracingExtractRepository.GetCount(); + return Ok(count); + } + catch (Exception e) + { + var msg = $"Error loading valid Patient Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValid/{page}/{pageSize}")] + public async Task LoadValid(int? page,int pageSize) + { + try + { + var tempDefaulterTracingExtracts = await _defaulterTracingExtractRepository.GetAll(page,pageSize); + return Ok(tempDefaulterTracingExtracts.ToList()); + } + catch (Exception e) + { + var msg = $"Error loading valid DefaulterTracing Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadErrors")] + public IActionResult LoadErrors() + { + try + { + var tempDefaulterTracingExtracts = _tempDefaulterTracingExtractRepository.GetAll().Where(n => n.CheckError).ToList(); + return Ok(tempDefaulterTracingExtracts); + } + catch (Exception e) + { + var msg = $"Error loading DefaulterTracing Extracts with errors"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValidations")] + public IActionResult LoadValidations() + { + try + { + var errorSummary = _errorSummaryRepository.GetAll().OrderByDescending(x=>x.Type).ToList(); + return Ok(errorSummary); + } + catch (Exception e) + { + var msg = $"Error loading Patient Status error summary"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + } +} diff --git a/src/Dwapi/Controller/HtsController.cs b/src/Dwapi/Controller/HtsController.cs index c03199ee..a5ee048d 100644 --- a/src/Dwapi/Controller/HtsController.cs +++ b/src/Dwapi/Controller/HtsController.cs @@ -38,8 +38,6 @@ public HtsController(IMediator mediator, IExtractStatusService extractStatusServ [HttpPost("extractAll")] public async Task Load([FromBody] LoadHtsExtracts request) { - if (!ModelState.IsValid) return BadRequest(); - string version = GetType().Assembly.GetName().Version.ToString(); var result = await _mediator.Send(request.LoadHtsFromEmrCommand, HttpContext.RequestAborted); await _mediator.Publish(new ExtractLoaded("HivTestingService", version)); @@ -227,6 +225,27 @@ public IActionResult SendClientLinkageExtracts([FromBody] SendManifestPackageDTO } } + + // POST: api/DwhExtracts/patients + [HttpPost("htseligibilityextract")] + public IActionResult SendHtsEligibilityExtracts([FromBody] SendManifestPackageDTO packageDto) + { + if (!packageDto.IsValid()) + return BadRequest(); + try + { + _htsSendService.SendHtsEligibilityExtractsAsync(packageDto); + return Ok(); + } + catch (Exception e) + { + var msg = $"Error sending Extracts {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + + // POST: api/DwhExtracts/patients [HttpPost("endsession")] public IActionResult SendEndSession([FromBody] SendManifestPackageDTO packageDto) diff --git a/src/Dwapi/Controller/HtsSummaryController.cs b/src/Dwapi/Controller/HtsSummaryController.cs index beae057c..2557257e 100644 --- a/src/Dwapi/Controller/HtsSummaryController.cs +++ b/src/Dwapi/Controller/HtsSummaryController.cs @@ -39,7 +39,10 @@ public class HtsSummaryController : Microsoft.AspNetCore.Mvc.Controller private readonly IHtsPartnerNotificationServicesExtractRepository _htsPartnerNotificationServicesExtractRepository; private readonly ITempHtsPartnerNotificationServicesErrorSummaryRepository _htsPartnerNotificationServicesExtractErrorSummaryRepository; - + private readonly ITempHtsEligibilityExtractRepository _tempHtsEligibilityExtractRepository; + private readonly IHtsEligibilityExtractRepository _htsEligibilityExtractRepository; + private readonly ITempHtsEligibilityExtractErrorSummaryRepository _htsEligibilityExtractErrorSummaryRepository; + public HtsSummaryController( ITempHtsClientsExtractRepository tempHtsClientExtractRepository, IHtsClientsExtractRepository htsClientExtractRepository, ITempHtsClientsExtractErrorSummaryRepository htsClientExtractErrorSummaryRepository, @@ -49,7 +52,10 @@ public HtsSummaryController( ITempHtsPartnerTracingExtractRepository tempHtsPartnerTracingExtractRepository, IHtsPartnerTracingExtractRepository htsPartnerTracingExtractRepository, ITempHtsPartnerTracingErrorSummaryRepository htsPartnerTracingExtractErrorSummaryRepository, ITempHtsClientsLinkageExtractRepository tempHtsClientLinkageExtractRepository, IHtsClientsLinkageExtractRepository htsClientLinkageExtractRepository, ITempHtsClientLinkageErrorSummaryRepository htsClientLinkageExtractErrorSummaryRepository, ITempHtsPartnerNotificationServicesExtractRepository tempHtsPartnerNotificationServicesExtractRepository, IHtsPartnerNotificationServicesExtractRepository htsPartnerNotificationServicesExtractRepository, - ITempHtsPartnerNotificationServicesErrorSummaryRepository htsPartnerNotificationServicesExtractErrorSummaryRepository) + ITempHtsPartnerNotificationServicesErrorSummaryRepository htsPartnerNotificationServicesExtractErrorSummaryRepository, + ITempHtsEligibilityExtractRepository tempHtsEligibilityExtractRepository, IHtsEligibilityExtractRepository htsEligibilityExtractRepository, ITempHtsEligibilityExtractErrorSummaryRepository htsEligibilityExtractErrorSummaryRepository + ) + { _tempHtsClientExtractRepository = tempHtsClientExtractRepository; _htsClientExtractRepository = htsClientExtractRepository; @@ -78,8 +84,12 @@ public HtsSummaryController( _tempHtsPartnerNotificationServicesExtractRepository = tempHtsPartnerNotificationServicesExtractRepository; _htsPartnerNotificationServicesExtractRepository = htsPartnerNotificationServicesExtractRepository; _htsPartnerNotificationServicesExtractErrorSummaryRepository = htsPartnerNotificationServicesExtractErrorSummaryRepository; + + _tempHtsEligibilityExtractRepository = tempHtsEligibilityExtractRepository; + _htsEligibilityExtractRepository = htsEligibilityExtractRepository; + _htsEligibilityExtractErrorSummaryRepository = htsEligibilityExtractErrorSummaryRepository; } - + [HttpGet("clientcount")] public async Task GetValidCount() @@ -132,6 +142,7 @@ public IActionResult LoadClientValidations() } } + [HttpGet("linkagecount")] public async Task GetLinkageCount() { @@ -182,6 +193,7 @@ public IActionResult LoadLinkageValidations() return StatusCode(500, msg); } } + [HttpGet("partnertracingcount")] public async Task GetPartnerTrackingCount() { @@ -436,5 +448,58 @@ public IActionResult LoadClientTestsValidations() return StatusCode(500, msg); } } + + [HttpGet("eligibilitycount")] + public async Task GetEligibilityCount() + { + try + { + var count = await _htsEligibilityExtractRepository.GetCount(); + return Ok(count); + } + catch (Exception e) + { + var msg = $"Error loading valid Linkages"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + + [HttpGet("eligibility/{page}/{pageSize}")] + public async Task LoadEligibilityValid(int? page, int pageSize) + { + try + { + var count = await _htsEligibilityExtractRepository.GetAll(page, pageSize); + return Ok(count.ToList()); + } + catch (Exception e) + { + var msg = $"Error loading valid eligibility"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("eligibilityvalidations")] + public IActionResult LoadEligibilityValidations() + { + try + { + var errorSummary = _htsEligibilityExtractErrorSummaryRepository.GetAll().ToList(); + return Ok(errorSummary); + } + catch (Exception e) + { + var msg = $"Error loading eligibility error summary"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + } } diff --git a/src/Dwapi/Controller/PrepController.cs b/src/Dwapi/Controller/PrepController.cs new file mode 100644 index 00000000..946ff574 --- /dev/null +++ b/src/Dwapi/Controller/PrepController.cs @@ -0,0 +1,260 @@ +using System; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Commands.Prep; +using Dwapi.ExtractsManagement.Core.Interfaces.Services; +using Dwapi.Hubs.Prep; +using Dwapi.Models; +using Dwapi.SettingsManagement.Core.Application.Metrics.Events; +using Dwapi.SettingsManagement.Core.Interfaces.Repositories; +using Dwapi.SettingsManagement.Core.Model; +using Dwapi.SharedKernel.DTOs; +using Dwapi.SharedKernel.Utility; +using Dwapi.UploadManagement.Core.Interfaces.Services.Cbs; +using Dwapi.UploadManagement.Core.Interfaces.Services.Dwh; +using Dwapi.UploadManagement.Core.Interfaces.Services.Prep; +using MediatR; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.SignalR; +using Serilog; + +namespace Dwapi.Controller +{ + [Produces("application/json")] + [Route("api/Prep")] + public class PrepController : Microsoft.AspNetCore.Mvc.Controller + { + private readonly IMediator _mediator; + private readonly IExtractStatusService _extractStatusService; + private readonly IHubContext _hubContext; + private readonly IPrepSendService _prepSendService; + private readonly ICbsSendService _cbsSendService; + private readonly ICTSendService _ctSendService; + private readonly IExtractRepository _extractRepository; + private readonly string _version; + + public PrepController(IMediator mediator, IExtractStatusService extractStatusService, + IHubContext hubContext, IPrepSendService prepSendService, ICbsSendService cbsSendService, + ICTSendService ctSendService, IExtractRepository extractRepository) + { + _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); + _extractStatusService = extractStatusService; + _prepSendService = prepSendService; + _cbsSendService = cbsSendService; + _ctSendService = ctSendService; + _extractRepository = extractRepository; + Startup.PrepHubContext = _hubContext = hubContext; + _version = GetType().Assembly.GetName().Version.ToString(); + } + + [HttpPost("extract")] + public async Task Load([FromBody] ExtractPatientPrep request) + { + if (!request.IsValid()) + return BadRequest(); + + var result = await _mediator.Send(request, HttpContext.RequestAborted); + return Ok(result); + } + + [HttpPost("extractAll")] + public async Task Load([FromBody] LoadPrepExtracts request) + { + if (!request.IsValid()) + return BadRequest(); + + string version = GetType().Assembly.GetName().Version.ToString(); + + var result = await _mediator.Send(request.LoadPrepFromEmrCommand, HttpContext.RequestAborted); + + await _mediator.Publish(new ExtractLoaded("PREP", version)); + + return Ok(result); + } + + // GET: api/DwhExtracts/status/id + [HttpGet("status/{id}")] + public IActionResult GetStatus(Guid id) + { + if (id.IsNullOrEmpty()) + return BadRequest(); + try + { + var eventExtract = _extractStatusService.GetStatus(id); + if (null == eventExtract) + return NotFound(); + + return Ok(eventExtract); + } + catch (Exception e) + { + var msg = $"Error loading {nameof(Extract)}(s)"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + // POST: api/DwhExtracts/manifest + [HttpPost("manifest")] + public async Task SendManifest([FromBody] SendManifestPackageDTO packageDto) + { + if (!packageDto.IsValid()) + return BadRequest(); + + string version = GetType().Assembly.GetName().Version.ToString(); + await _mediator.Publish(new ExtractSent("PrepService", version)); + + try + { + var result = await _prepSendService.SendManifestAsync(packageDto, version); + return Ok(result); + } + catch (Exception e) + { + var msg = $"Error sending Manifest {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + + [HttpPost("PatientPreps")] + public IActionResult SendPatientPrepsExtracts([FromBody] SendManifestPackageDTO packageDto) + { + if (!packageDto.IsValid()) return BadRequest(); + try + { + _prepSendService.SendPatientPrepsAsync(packageDto); + return Ok(); + } + catch (Exception e) + { + var msg = $"Error sending Extracts {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + + [HttpPost("PrepAdverseEvents")] + public IActionResult SendPrepEnrolmentsExtracts([FromBody] SendManifestPackageDTO packageDto) + { + if (!packageDto.IsValid()) return BadRequest(); + try + { + _prepSendService.SendPrepAdverseEventsAsync(packageDto); + return Ok(); + } + catch (Exception e) + { + var msg = $"Error sending Extracts {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + + + [HttpPost("PrepBehaviourRisks")] + public IActionResult SendAncVisitsExtracts([FromBody] SendManifestPackageDTO packageDto) + { + if (!packageDto.IsValid()) return BadRequest(); + try + { + _prepSendService.SendPrepBehaviourRisksAsync(packageDto); + return Ok(); + } + catch (Exception e) + { + var msg = $"Error sending Extracts {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + + [HttpPost("PrepCareTerminations")] + public IActionResult SendMatVisitsExtracts([FromBody] SendManifestPackageDTO packageDto) + { + if (!packageDto.IsValid()) return BadRequest(); + try + { + _prepSendService.SendPrepCareTerminationsAsync(packageDto); + return Ok(); + } + catch (Exception e) + { + var msg = $"Error sending Extracts {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + + [HttpPost("PrepLabs")] + public IActionResult SendPrepLabsExtracts([FromBody] SendManifestPackageDTO packageDto) + { + if (!packageDto.IsValid()) return BadRequest(); + try + { + _prepSendService.SendPrepLabsAsync(packageDto); + return Ok(); + } + catch (Exception e) + { + var msg = $"Error sending Extracts {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + + [HttpPost("PrepPharmacys")] + public IActionResult SendPrepArtsExtracts([FromBody] SendManifestPackageDTO packageDto) + { + if (!packageDto.IsValid()) return BadRequest(); + try + { + _prepSendService.SendPrepPharmacysAsync(packageDto); + return Ok(); + } + catch (Exception e) + { + var msg = $"Error sending Extracts {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + + [HttpPost("PrepVisits")] + public IActionResult SendPncVisitsExtracts([FromBody] SendManifestPackageDTO packageDto) + { + if (!packageDto.IsValid()) return BadRequest(); + try + { + _prepSendService.SendPrepVisitsAsync(packageDto); + return Ok(); + } + catch (Exception e) + { + var msg = $"Error sending Extracts {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + + // POST: api/DwhExtracts/patients + [HttpPost("endsession")] + public IActionResult SendEndSession([FromBody] SendManifestPackageDTO packageDto) + { + if (!packageDto.IsValid()) + return BadRequest(); + try + { + string version = GetType().Assembly.GetName().Version.ToString(); + _prepSendService.NotifyPostSending(packageDto, version); + return Ok(); + } + catch (Exception e) + { + var msg = $"Error sending Extracts {e.Message}"; + Log.Error(e, msg); + return StatusCode(500, msg); + } + } + } +} diff --git a/src/Dwapi/Controller/PrepExtractDetails/PatientPrepController.cs b/src/Dwapi/Controller/PrepExtractDetails/PatientPrepController.cs new file mode 100644 index 00000000..5f685c05 --- /dev/null +++ b/src/Dwapi/Controller/PrepExtractDetails/PatientPrepController.cs @@ -0,0 +1,100 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Microsoft.AspNetCore.Mvc; +using Serilog; + +namespace Dwapi.Controller.PrepExtractDetails +{ + [Produces("application/json")] + [Route("api/PatientPrep")] + public class PatientPrepController : Microsoft.AspNetCore.Mvc.Controller + { + private readonly IPatientPrepExtractRepository _patientExtractRepository; + private readonly ITempPatientPrepExtractRepository _tempPatientPrepExtractRepository; + private readonly ITempPatientPrepExtractErrorSummaryRepository _errorSummaryRepository; + + public PatientPrepController(IPatientPrepExtractRepository patientExtractRepository, ITempPatientPrepExtractErrorSummaryRepository errorSummaryRepository, ITempPatientPrepExtractRepository tempPatientPrepExtractRepository) + { + _patientExtractRepository = patientExtractRepository; + _errorSummaryRepository = errorSummaryRepository; + _tempPatientPrepExtractRepository = tempPatientPrepExtractRepository; + } + + [HttpGet("ValidCount")] + public async Task GetValidCount() + { + try + { + var count = await _patientExtractRepository.GetCount(); + return Ok(count); + } + catch (Exception e) + { + var msg = $"Error loading valid Patient Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValid/{page}/{pageSize}")] + public async Task LoadValid(int? page,int pageSize) + { + try + { + var tempPatientPrepExtracts = await _patientExtractRepository.GetAll(page,pageSize); + return Ok(tempPatientPrepExtracts.ToList()); + } + catch (Exception e) + { + var msg = $"Error loading valid Patient Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadErrors")] + public IActionResult LoadErrors() + { + try + { + var tempPatientPrepExtracts = _tempPatientPrepExtractRepository.GetAll().Where(n => n.CheckError).ToList(); + return Ok(tempPatientPrepExtracts); + } + catch (Exception e) + { + var msg = $"Error loading Patient Extracts with errors"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + [HttpGet("LoadValidations")] + public IActionResult LoadValidations() + { + try + { + + var sql = "SELECT v.Id, v.Extract, v.Field, v.Type, v.Summary, v.DateGenerated, v.PatientPK, v.FacilityId, " + + "v.PatientID, v.SiteCode, v.FacilityName, v.RecordId, t.DOB, t.Gender " + + "FROM vTempPatientPrepExtractErrorSummary AS v INNER JOIN TempPatientPrepExtracts AS t ON v.PatientPK = t.PatientPK " + + "AND v.SiteCode = t.SiteCode"; + + var errorSummary = _patientExtractRepository.ExecQueryMulti(sql).OrderByDescending(x=>x.Type).ToList(); + + return Ok(errorSummary); + } + catch (Exception e) + { + var msg = $"Error loading Patient error summary"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + } +} diff --git a/src/Dwapi/Controller/PrepExtractDetails/PrepAdverseEventController.cs b/src/Dwapi/Controller/PrepExtractDetails/PrepAdverseEventController.cs new file mode 100644 index 00000000..b9a1bebf --- /dev/null +++ b/src/Dwapi/Controller/PrepExtractDetails/PrepAdverseEventController.cs @@ -0,0 +1,94 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; +using Microsoft.AspNetCore.Mvc; +using Serilog; +using System; +using System.Linq; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; + +namespace Dwapi.Controller.ExtractDetails +{ + [Produces("application/json")] + [Route("api/PrepAdverseEvent")] + public class PrepAdverseEventController : Microsoft.AspNetCore.Mvc.Controller + { + private readonly ITempPrepAdverseEventExtractRepository _tempPrepAdverseEventExtractRepository; + private readonly IPrepAdverseEventExtractRepository _otzExtractRepository; + private readonly ITempPrepAdverseEventExtractErrorSummaryRepository _errorSummaryRepository; + + public PrepAdverseEventController(ITempPrepAdverseEventExtractRepository tempPrepAdverseEventExtractRepository, IPrepAdverseEventExtractRepository PrepAdverseEventExtractRepository, ITempPrepAdverseEventExtractErrorSummaryRepository errorSummaryRepository) + { + _tempPrepAdverseEventExtractRepository = tempPrepAdverseEventExtractRepository; + _otzExtractRepository = PrepAdverseEventExtractRepository; + _errorSummaryRepository = errorSummaryRepository; + } + + [HttpGet("ValidCount")] + public async Task GetValidCount() + { + try + { + var count = await _otzExtractRepository.GetCount(); + return Ok(count); + } + catch (Exception e) + { + var msg = $"Error loading valid Patient Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValid/{page}/{pageSize}")] + public async Task LoadValid(int? page,int pageSize) + { + try + { + var tempPrepAdverseEventExtracts = await _otzExtractRepository.GetAll(page,pageSize); + return Ok(tempPrepAdverseEventExtracts.ToList()); + } + catch (Exception e) + { + var msg = $"Error loading valid PrepAdverseEvent Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadErrors")] + public IActionResult LoadErrors() + { + try + { + var tempPrepAdverseEventExtracts = _tempPrepAdverseEventExtractRepository.GetAll().Where(n => n.CheckError).ToList(); + return Ok(tempPrepAdverseEventExtracts); + } + catch (Exception e) + { + var msg = $"Error loading PrepAdverseEvent Extracts with errors"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValidations")] + public IActionResult LoadValidations() + { + try + { + var errorSummary = _errorSummaryRepository.GetAll().OrderByDescending(x=>x.Type).ToList(); + return Ok(errorSummary); + } + catch (Exception e) + { + var msg = $"Error loading Patient Status error summary"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + } +} diff --git a/src/Dwapi/Controller/PrepExtractDetails/PrepBehaviourRiskController.cs b/src/Dwapi/Controller/PrepExtractDetails/PrepBehaviourRiskController.cs new file mode 100644 index 00000000..872942be --- /dev/null +++ b/src/Dwapi/Controller/PrepExtractDetails/PrepBehaviourRiskController.cs @@ -0,0 +1,93 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Microsoft.AspNetCore.Mvc; +using Serilog; + +namespace Dwapi.Controller.PrepExtractDetails +{ + [Produces("application/json")] + [Route("api/PrepBehaviourRisk")] + public class PrepBehaviourRiskController : Microsoft.AspNetCore.Mvc.Controller + { + private readonly ITempPrepBehaviourRiskExtractRepository _tempPrepBehaviourRiskExtractRepository; + private readonly IPrepBehaviourRiskExtractRepository _otzExtractRepository; + private readonly ITempPrepBehaviourRiskExtractErrorSummaryRepository _errorSummaryRepository; + + public PrepBehaviourRiskController(ITempPrepBehaviourRiskExtractRepository tempPrepBehaviourRiskExtractRepository, IPrepBehaviourRiskExtractRepository PrepBehaviourRiskExtractRepository, ITempPrepBehaviourRiskExtractErrorSummaryRepository errorSummaryRepository) + { + _tempPrepBehaviourRiskExtractRepository = tempPrepBehaviourRiskExtractRepository; + _otzExtractRepository = PrepBehaviourRiskExtractRepository; + _errorSummaryRepository = errorSummaryRepository; + } + + [HttpGet("ValidCount")] + public async Task GetValidCount() + { + try + { + var count = await _otzExtractRepository.GetCount(); + return Ok(count); + } + catch (Exception e) + { + var msg = $"Error loading valid Patient Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValid/{page}/{pageSize}")] + public async Task LoadValid(int? page,int pageSize) + { + try + { + var tempPrepBehaviourRiskExtracts = await _otzExtractRepository.GetAll(page,pageSize); + return Ok(tempPrepBehaviourRiskExtracts.ToList()); + } + catch (Exception e) + { + var msg = $"Error loading valid PrepBehaviourRisk Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadErrors")] + public IActionResult LoadErrors() + { + try + { + var tempPrepBehaviourRiskExtracts = _tempPrepBehaviourRiskExtractRepository.GetAll().Where(n => n.CheckError).ToList(); + return Ok(tempPrepBehaviourRiskExtracts); + } + catch (Exception e) + { + var msg = $"Error loading PrepBehaviourRisk Extracts with errors"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValidations")] + public IActionResult LoadValidations() + { + try + { + var errorSummary = _errorSummaryRepository.GetAll().OrderByDescending(x=>x.Type).ToList(); + return Ok(errorSummary); + } + catch (Exception e) + { + var msg = $"Error loading Patient Status error summary"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + } +} diff --git a/src/Dwapi/Controller/PrepExtractDetails/PrepCareTerminationController.cs b/src/Dwapi/Controller/PrepExtractDetails/PrepCareTerminationController.cs new file mode 100644 index 00000000..c6314d24 --- /dev/null +++ b/src/Dwapi/Controller/PrepExtractDetails/PrepCareTerminationController.cs @@ -0,0 +1,93 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Microsoft.AspNetCore.Mvc; +using Serilog; + +namespace Dwapi.Controller.PrepExtractDetails +{ + [Produces("application/json")] + [Route("api/PrepCareTermination")] + public class PrepCareTerminationController : Microsoft.AspNetCore.Mvc.Controller + { + private readonly ITempPrepCareTerminationExtractRepository _tempPrepCareTerminationExtractRepository; + private readonly IPrepCareTerminationExtractRepository _otzExtractRepository; + private readonly ITempPrepCareTerminationExtractErrorSummaryRepository _errorSummaryRepository; + + public PrepCareTerminationController(ITempPrepCareTerminationExtractRepository tempPrepCareTerminationExtractRepository, IPrepCareTerminationExtractRepository PrepCareTerminationExtractRepository, ITempPrepCareTerminationExtractErrorSummaryRepository errorSummaryRepository) + { + _tempPrepCareTerminationExtractRepository = tempPrepCareTerminationExtractRepository; + _otzExtractRepository = PrepCareTerminationExtractRepository; + _errorSummaryRepository = errorSummaryRepository; + } + + [HttpGet("ValidCount")] + public async Task GetValidCount() + { + try + { + var count = await _otzExtractRepository.GetCount(); + return Ok(count); + } + catch (Exception e) + { + var msg = $"Error loading valid Patient Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValid/{page}/{pageSize}")] + public async Task LoadValid(int? page,int pageSize) + { + try + { + var tempPrepCareTerminationExtracts = await _otzExtractRepository.GetAll(page,pageSize); + return Ok(tempPrepCareTerminationExtracts.ToList()); + } + catch (Exception e) + { + var msg = $"Error loading valid PrepCareTermination Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadErrors")] + public IActionResult LoadErrors() + { + try + { + var tempPrepCareTerminationExtracts = _tempPrepCareTerminationExtractRepository.GetAll().Where(n => n.CheckError).ToList(); + return Ok(tempPrepCareTerminationExtracts); + } + catch (Exception e) + { + var msg = $"Error loading PrepCareTermination Extracts with errors"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValidations")] + public IActionResult LoadValidations() + { + try + { + var errorSummary = _errorSummaryRepository.GetAll().OrderByDescending(x=>x.Type).ToList(); + return Ok(errorSummary); + } + catch (Exception e) + { + var msg = $"Error loading Patient Status error summary"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + } +} diff --git a/src/Dwapi/Controller/PrepExtractDetails/PrepLabController.cs b/src/Dwapi/Controller/PrepExtractDetails/PrepLabController.cs new file mode 100644 index 00000000..f9fb6d4a --- /dev/null +++ b/src/Dwapi/Controller/PrepExtractDetails/PrepLabController.cs @@ -0,0 +1,93 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Microsoft.AspNetCore.Mvc; +using Serilog; + +namespace Dwapi.Controller.PrepExtractDetails +{ + [Produces("application/json")] + [Route("api/PrepLab")] + public class PrepLabController : Microsoft.AspNetCore.Mvc.Controller + { + private readonly ITempPrepLabExtractRepository _tempPrepLabExtractRepository; + private readonly IPrepLabExtractRepository _otzExtractRepository; + private readonly ITempPrepLabExtractErrorSummaryRepository _errorSummaryRepository; + + public PrepLabController(ITempPrepLabExtractRepository tempPrepLabExtractRepository, IPrepLabExtractRepository PrepLabExtractRepository, ITempPrepLabExtractErrorSummaryRepository errorSummaryRepository) + { + _tempPrepLabExtractRepository = tempPrepLabExtractRepository; + _otzExtractRepository = PrepLabExtractRepository; + _errorSummaryRepository = errorSummaryRepository; + } + + [HttpGet("ValidCount")] + public async Task GetValidCount() + { + try + { + var count = await _otzExtractRepository.GetCount(); + return Ok(count); + } + catch (Exception e) + { + var msg = $"Error loading valid Patient Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValid/{page}/{pageSize}")] + public async Task LoadValid(int? page,int pageSize) + { + try + { + var tempPrepLabExtracts = await _otzExtractRepository.GetAll(page,pageSize); + return Ok(tempPrepLabExtracts.ToList()); + } + catch (Exception e) + { + var msg = $"Error loading valid PrepLab Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadErrors")] + public IActionResult LoadErrors() + { + try + { + var tempPrepLabExtracts = _tempPrepLabExtractRepository.GetAll().Where(n => n.CheckError).ToList(); + return Ok(tempPrepLabExtracts); + } + catch (Exception e) + { + var msg = $"Error loading PrepLab Extracts with errors"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValidations")] + public IActionResult LoadValidations() + { + try + { + var errorSummary = _errorSummaryRepository.GetAll().OrderByDescending(x=>x.Type).ToList(); + return Ok(errorSummary); + } + catch (Exception e) + { + var msg = $"Error loading Patient Status error summary"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + } +} diff --git a/src/Dwapi/Controller/PrepExtractDetails/PrepPharmacyController.cs b/src/Dwapi/Controller/PrepExtractDetails/PrepPharmacyController.cs new file mode 100644 index 00000000..4573ab94 --- /dev/null +++ b/src/Dwapi/Controller/PrepExtractDetails/PrepPharmacyController.cs @@ -0,0 +1,93 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Microsoft.AspNetCore.Mvc; +using Serilog; + +namespace Dwapi.Controller.PrepExtractDetails +{ + [Produces("application/json")] + [Route("api/PrepPharmacy")] + public class PrepPharmacyController : Microsoft.AspNetCore.Mvc.Controller + { + private readonly ITempPrepPharmacyExtractRepository _tempPrepPharmacyExtractRepository; + private readonly IPrepPharmacyExtractRepository _otzExtractRepository; + private readonly ITempPrepPharmacyExtractErrorSummaryRepository _errorSummaryRepository; + + public PrepPharmacyController(ITempPrepPharmacyExtractRepository tempPrepPharmacyExtractRepository, IPrepPharmacyExtractRepository PrepPharmacyExtractRepository, ITempPrepPharmacyExtractErrorSummaryRepository errorSummaryRepository) + { + _tempPrepPharmacyExtractRepository = tempPrepPharmacyExtractRepository; + _otzExtractRepository = PrepPharmacyExtractRepository; + _errorSummaryRepository = errorSummaryRepository; + } + + [HttpGet("ValidCount")] + public async Task GetValidCount() + { + try + { + var count = await _otzExtractRepository.GetCount(); + return Ok(count); + } + catch (Exception e) + { + var msg = $"Error loading valid Patient Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValid/{page}/{pageSize}")] + public async Task LoadValid(int? page,int pageSize) + { + try + { + var tempPrepPharmacyExtracts = await _otzExtractRepository.GetAll(page,pageSize); + return Ok(tempPrepPharmacyExtracts.ToList()); + } + catch (Exception e) + { + var msg = $"Error loading valid PrepPharmacy Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadErrors")] + public IActionResult LoadErrors() + { + try + { + var tempPrepPharmacyExtracts = _tempPrepPharmacyExtractRepository.GetAll().Where(n => n.CheckError).ToList(); + return Ok(tempPrepPharmacyExtracts); + } + catch (Exception e) + { + var msg = $"Error loading PrepPharmacy Extracts with errors"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValidations")] + public IActionResult LoadValidations() + { + try + { + var errorSummary = _errorSummaryRepository.GetAll().OrderByDescending(x=>x.Type).ToList(); + return Ok(errorSummary); + } + catch (Exception e) + { + var msg = $"Error loading Patient Status error summary"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + } +} diff --git a/src/Dwapi/Controller/PrepExtractDetails/PrepVisitController.cs b/src/Dwapi/Controller/PrepExtractDetails/PrepVisitController.cs new file mode 100644 index 00000000..2e320599 --- /dev/null +++ b/src/Dwapi/Controller/PrepExtractDetails/PrepVisitController.cs @@ -0,0 +1,93 @@ +using System; +using System.Linq; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; +using Microsoft.AspNetCore.Mvc; +using Serilog; + +namespace Dwapi.Controller.PrepExtractDetails +{ + [Produces("application/json")] + [Route("api/PrepVisit")] + public class PrepVisitController : Microsoft.AspNetCore.Mvc.Controller + { + private readonly ITempPrepVisitExtractRepository _tempPrepVisitExtractRepository; + private readonly IPrepVisitExtractRepository _otzExtractRepository; + private readonly ITempPrepVisitExtractErrorSummaryRepository _errorSummaryRepository; + + public PrepVisitController(ITempPrepVisitExtractRepository tempPrepVisitExtractRepository, IPrepVisitExtractRepository PrepVisitExtractRepository, ITempPrepVisitExtractErrorSummaryRepository errorSummaryRepository) + { + _tempPrepVisitExtractRepository = tempPrepVisitExtractRepository; + _otzExtractRepository = PrepVisitExtractRepository; + _errorSummaryRepository = errorSummaryRepository; + } + + [HttpGet("ValidCount")] + public async Task GetValidCount() + { + try + { + var count = await _otzExtractRepository.GetCount(); + return Ok(count); + } + catch (Exception e) + { + var msg = $"Error loading valid Patient Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValid/{page}/{pageSize}")] + public async Task LoadValid(int? page,int pageSize) + { + try + { + var tempPrepVisitExtracts = await _otzExtractRepository.GetAll(page,pageSize); + return Ok(tempPrepVisitExtracts.ToList()); + } + catch (Exception e) + { + var msg = $"Error loading valid PrepVisit Extracts"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadErrors")] + public IActionResult LoadErrors() + { + try + { + var tempPrepVisitExtracts = _tempPrepVisitExtractRepository.GetAll().Where(n => n.CheckError).ToList(); + return Ok(tempPrepVisitExtracts); + } + catch (Exception e) + { + var msg = $"Error loading PrepVisit Extracts with errors"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + + [HttpGet("LoadValidations")] + public IActionResult LoadValidations() + { + try + { + var errorSummary = _errorSummaryRepository.GetAll().OrderByDescending(x=>x.Type).ToList(); + return Ok(errorSummary); + } + catch (Exception e) + { + var msg = $"Error loading Patient Status error summary"; + Log.Error(msg); + Log.Error($"{e}"); + return StatusCode(500, msg); + } + } + } +} diff --git a/src/Dwapi/Dwapi.csproj b/src/Dwapi/Dwapi.csproj index ac7d5f59..433389ec 100644 --- a/src/Dwapi/Dwapi.csproj +++ b/src/Dwapi/Dwapi.csproj @@ -4,9 +4,9 @@ Latest true ..\docker-compose.dcproj - 2.7.0.1 + 2.7.2.8 Palladium Group - Davidson Gikandi, Danson Koske, Mwenda Gitonga, Brian Mwasi, Teddy Brian + Davidson Gikandi, Danson Koske, Mwenda Gitonga, Brian Mwasi, Teddy Brian, Mary Kilewe https://github.com/palladiumkenya/DWAPI GIT en-KE @@ -34,7 +34,7 @@ Bached sending and await to 50 at a time - + @@ -58,7 +58,7 @@ Bached sending and await to 50 at a time - + diff --git a/src/Dwapi/EventHandlers/Cbs/CbsExtractSentEventHandlers.cs b/src/Dwapi/EventHandlers/Cbs/CbsExtractSentEventHandlers.cs index 7fe94642..fadc753a 100644 --- a/src/Dwapi/EventHandlers/Cbs/CbsExtractSentEventHandlers.cs +++ b/src/Dwapi/EventHandlers/Cbs/CbsExtractSentEventHandlers.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Cbs; using Dwapi.SharedKernel.Events; using Dwapi.UploadManagement.Core.Event.Cbs; @@ -14,9 +15,10 @@ public CbsExtractSentEventHandlers() _repository = Startup.ServiceProvider.GetService(); } - public void Handle(CbsExtractSentEvent domainEvent) + public Task Handle(CbsExtractSentEvent domainEvent) { _repository.UpdateSendStatus(domainEvent.SentItems); + return Task.CompletedTask; } } } diff --git a/src/Dwapi/EventHandlers/Crs/CrsExtractSentEventHandlers.cs b/src/Dwapi/EventHandlers/Crs/CrsExtractSentEventHandlers.cs new file mode 100644 index 00000000..0793d604 --- /dev/null +++ b/src/Dwapi/EventHandlers/Crs/CrsExtractSentEventHandlers.cs @@ -0,0 +1,24 @@ +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Crs; +using Dwapi.SharedKernel.Events; +using Dwapi.UploadManagement.Core.Event.Crs; +using Microsoft.Extensions.DependencyInjection; + +namespace Dwapi.EventHandlers +{ + public class CrsExtractSentEventHandlers : IHandler + { + private readonly IClientRegistryExtractRepository _repository; + + public CrsExtractSentEventHandlers() + { + _repository = Startup.ServiceProvider.GetService(); + } + + public Task Handle(CrsExtractSentEvent domainEvent) + { + _repository.UpdateSendStatus(domainEvent.SentItems); + return Task.CompletedTask; + } + } +} diff --git a/src/Dwapi/EventHandlers/Dwh/CTExtractSentEventHandlers.cs b/src/Dwapi/EventHandlers/Dwh/CTExtractSentEventHandlers.cs index b248fe2d..938d95c2 100644 --- a/src/Dwapi/EventHandlers/Dwh/CTExtractSentEventHandlers.cs +++ b/src/Dwapi/EventHandlers/Dwh/CTExtractSentEventHandlers.cs @@ -1,4 +1,5 @@ using System.Linq; +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Interfaces.Services; using Dwapi.SharedKernel.Enum; using Dwapi.SharedKernel.Events; @@ -16,12 +17,13 @@ public CTExtractSentEventHandlers() _service = Startup.ServiceProvider.GetService(); } - public void Handle(CTExtractSentEvent domainEvent) + public Task Handle(CTExtractSentEvent domainEvent) { if (domainEvent.SentItems.Any()) { _service.UpdateSendStatus(domainEvent.SentItems.First().ExtractType, domainEvent.SentItems); } + return Task.CompletedTask; } } } diff --git a/src/Dwapi/EventHandlers/Dwh/DwhExtractSentEventHandlers.cs b/src/Dwapi/EventHandlers/Dwh/DwhExtractSentEventHandlers.cs index 35ed013a..7e5e1bf4 100644 --- a/src/Dwapi/EventHandlers/Dwh/DwhExtractSentEventHandlers.cs +++ b/src/Dwapi/EventHandlers/Dwh/DwhExtractSentEventHandlers.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Interfaces.Services; using Dwapi.SharedKernel.Events; using Dwapi.UploadManagement.Core.Event.Dwh; @@ -14,9 +15,10 @@ public DwhExtractSentEventHandlers() _service = Startup.ServiceProvider.GetService(); } - public void Handle(DwhExtractSentEvent domainEvent) + public Task Handle(DwhExtractSentEvent domainEvent) { _service.UpdateSendStatus(domainEvent.ExtractType, domainEvent.SentItems); + return Task.CompletedTask; } } } diff --git a/src/Dwapi/EventHandlers/Hts/HtsExtractSentEventHandlers.cs b/src/Dwapi/EventHandlers/Hts/HtsExtractSentEventHandlers.cs index 2a402f91..527dfd2c 100644 --- a/src/Dwapi/EventHandlers/Hts/HtsExtractSentEventHandlers.cs +++ b/src/Dwapi/EventHandlers/Hts/HtsExtractSentEventHandlers.cs @@ -1,4 +1,5 @@ using System.Linq; +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Hts; using Dwapi.SharedKernel.Events; using Dwapi.UploadManagement.Core.Event.Hts; @@ -10,11 +11,13 @@ public class HtsExtractSentEventHandlers : IHandler { private readonly IHtsClientsExtractRepository _clientExtractRepository; private readonly IHtsClientsLinkageExtractRepository _clientLinkageExtractRepository; - private readonly IHtsClientTestsExtractRepository _clientTestsExtractRepository; + private readonly IHtsClientTestsExtractRepository _clientTestsExtractRepository; private readonly IHtsClientTracingExtractRepository _clientTracingExtractRepository; private readonly IHtsPartnerTracingExtractRepository _partnerTracingExtractRepository; private readonly IHtsTestKitsExtractRepository _testKitsExtractRepository; - private readonly IHtsPartnerNotificationServicesExtractRepository _partnerNotificationServicesExtractRepository; + private readonly IHtsPartnerNotificationServicesExtractRepository _partnerNotificationServicesExtractRepository; + private readonly IHtsEligibilityExtractRepository _htsEligibilityExtractRepository; + public HtsExtractSentEventHandlers() { @@ -25,16 +28,18 @@ public HtsExtractSentEventHandlers() _partnerTracingExtractRepository = Startup.ServiceProvider.GetService(); _testKitsExtractRepository = Startup.ServiceProvider.GetService(); _partnerNotificationServicesExtractRepository = Startup.ServiceProvider.GetService(); + _htsEligibilityExtractRepository = Startup.ServiceProvider.GetService(); + } - public void Handle(HtsExtractSentEvent domainEvent) + public Task Handle(HtsExtractSentEvent domainEvent) { if (domainEvent.SentItems.Any()) { if (domainEvent.SentItems.First().Extract == "HtsClientsExtracts") _clientExtractRepository.UpdateSendStatus(domainEvent.SentItems); if (domainEvent.SentItems.First().Extract == "HtsClientsLinkageExtracts") - _clientLinkageExtractRepository.UpdateSendStatus(domainEvent.SentItems); + _clientLinkageExtractRepository.UpdateSendStatus(domainEvent.SentItems); if (domainEvent.SentItems.First().Extract == "HtsClientTestsExtracts") _clientTestsExtractRepository.UpdateSendStatus(domainEvent.SentItems); if (domainEvent.SentItems.First().Extract == "HtsClientTracingExtracts") @@ -45,7 +50,11 @@ public void Handle(HtsExtractSentEvent domainEvent) _testKitsExtractRepository.UpdateSendStatus(domainEvent.SentItems); if (domainEvent.SentItems.First().Extract == "HtsPartnerNotificationServicesExtracts") _partnerNotificationServicesExtractRepository.UpdateSendStatus(domainEvent.SentItems); + if (domainEvent.SentItems.First().Extract == "HtsEligibilityExtracts") + _htsEligibilityExtractRepository.UpdateSendStatus(domainEvent.SentItems); } + + return Task.CompletedTask; } } } diff --git a/src/Dwapi/EventHandlers/Mgs/MgsExtractSentEventHandlers.cs b/src/Dwapi/EventHandlers/Mgs/MgsExtractSentEventHandlers.cs index 9c58e544..6cfd0d64 100644 --- a/src/Dwapi/EventHandlers/Mgs/MgsExtractSentEventHandlers.cs +++ b/src/Dwapi/EventHandlers/Mgs/MgsExtractSentEventHandlers.cs @@ -1,4 +1,5 @@ using System.Linq; +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Mgs; using Dwapi.SharedKernel.Events; using Dwapi.UploadManagement.Core.Event.Mgs; @@ -16,13 +17,14 @@ public MgsExtractSentEventHandlers() _metricMigrationExtractRepository = Startup.ServiceProvider.GetService(); } - public void Handle(MgsExtractSentEvent domainEvent) + public Task Handle(MgsExtractSentEvent domainEvent) { if (domainEvent.SentItems.Any()) { if (domainEvent.SentItems.First().Extract == "Migration") _metricMigrationExtractRepository.UpdateSendStatus(domainEvent.SentItems); } + return Task.CompletedTask; } } } diff --git a/src/Dwapi/EventHandlers/Mnch/MnchExtractSentEventHandlers.cs b/src/Dwapi/EventHandlers/Mnch/MnchExtractSentEventHandlers.cs index 3a30f417..51900c84 100644 --- a/src/Dwapi/EventHandlers/Mnch/MnchExtractSentEventHandlers.cs +++ b/src/Dwapi/EventHandlers/Mnch/MnchExtractSentEventHandlers.cs @@ -1,4 +1,5 @@ using System.Linq; +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Interfaces.Services; using Dwapi.SharedKernel.Events; using Dwapi.UploadManagement.Core.Event.Mnch; @@ -15,12 +16,13 @@ public MnchExtractSentEventHandlers() _service = Startup.ServiceProvider.GetService(); } - public void Handle(MnchExtractSentEvent domainEvent) + public Task Handle(MnchExtractSentEvent domainEvent) { if (domainEvent.SentItems.Any()) { _service.UpdateSendStatus(domainEvent.SentItems.First().ExtractType, domainEvent.SentItems); } + return Task.CompletedTask; } } } diff --git a/src/Dwapi/EventHandlers/Prep/PrepExtractSentEventHandlers.cs b/src/Dwapi/EventHandlers/Prep/PrepExtractSentEventHandlers.cs new file mode 100644 index 00000000..41039aad --- /dev/null +++ b/src/Dwapi/EventHandlers/Prep/PrepExtractSentEventHandlers.cs @@ -0,0 +1,28 @@ +using System.Linq; +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Services; +using Dwapi.SharedKernel.Events; +using Dwapi.UploadManagement.Core.Event.Prep; +using Microsoft.Extensions.DependencyInjection; + +namespace Dwapi.EventHandlers.Prep +{ + public class PrepExtractSentEventHandlers : IHandler + { + private readonly IPrepExtractSentServcie _service; + + public PrepExtractSentEventHandlers() + { + _service = Startup.ServiceProvider.GetService(); + } + + public Task Handle(PrepExtractSentEvent domainEvent) + { + if (domainEvent.SentItems.Any()) + { + _service.UpdateSendStatus(domainEvent.SentItems.First().ExtractType, domainEvent.SentItems); + } + return Task.CompletedTask; + } + } +} diff --git a/src/Dwapi/Hubs/Crs/CrsActivity.cs b/src/Dwapi/Hubs/Crs/CrsActivity.cs new file mode 100644 index 00000000..da45f0af --- /dev/null +++ b/src/Dwapi/Hubs/Crs/CrsActivity.cs @@ -0,0 +1,15 @@ +using System.Threading.Tasks; +using Dwapi.SharedKernel.Model; +using Microsoft.AspNetCore.SignalR; + +namespace Dwapi.Hubs.Crs +{ + public class CrsActivity : Hub + { + + public async Task ShowProgress(ExtractProgress progress) + { + await Clients.All.SendAsync("ShowCrsProgress", progress); + } + } +} diff --git a/src/Dwapi/Hubs/Crs/CrsSendActivity.cs b/src/Dwapi/Hubs/Crs/CrsSendActivity.cs new file mode 100644 index 00000000..7448c184 --- /dev/null +++ b/src/Dwapi/Hubs/Crs/CrsSendActivity.cs @@ -0,0 +1,14 @@ +using System.Threading.Tasks; +using Dwapi.SharedKernel.Model; +using Microsoft.AspNetCore.SignalR; + +namespace Dwapi.Hubs.Cbs +{ + public class CrsSendActivity : Hub + { + public async Task ShowProgress(ExtractProgress progress) + { + await Clients.All.SendAsync("ShowCrsSendProgress", progress); + } + } +} diff --git a/src/Dwapi/Hubs/Prep/PrepActivity.cs b/src/Dwapi/Hubs/Prep/PrepActivity.cs new file mode 100644 index 00000000..6613f06e --- /dev/null +++ b/src/Dwapi/Hubs/Prep/PrepActivity.cs @@ -0,0 +1,14 @@ +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Notifications; +using Microsoft.AspNetCore.SignalR; + +namespace Dwapi.Hubs.Prep +{ + public class PrepActivity : Hub + { + public async Task ShowProgress(PrepExtractActivityNotification extractActivityNotification) + { + await Clients.All.SendAsync("ShowPrepProgress", extractActivityNotification); + } + } +} diff --git a/src/Dwapi/Hubs/Prep/PrepSendActivity.cs b/src/Dwapi/Hubs/Prep/PrepSendActivity.cs new file mode 100644 index 00000000..44e9470d --- /dev/null +++ b/src/Dwapi/Hubs/Prep/PrepSendActivity.cs @@ -0,0 +1,14 @@ +using System.Threading.Tasks; +using Dwapi.SharedKernel.Model; +using Microsoft.AspNetCore.SignalR; + +namespace Dwapi.Hubs.Prep +{ + public class PrepSendActivity : Hub + { + public async Task ShowProgress(ExtractProgress progress) + { + await Clients.All.SendAsync("ShowPrepSendProgress", progress); + } + } +} diff --git a/src/Dwapi/Models/LoadExtracts.cs b/src/Dwapi/Models/LoadExtracts.cs index e52317b4..64e4b429 100644 --- a/src/Dwapi/Models/LoadExtracts.cs +++ b/src/Dwapi/Models/LoadExtracts.cs @@ -1,6 +1,7 @@ using System.Linq; using Dwapi.ExtractsManagement.Core.Commands; using Dwapi.ExtractsManagement.Core.Commands.Cbs; +using Dwapi.SharedKernel.Enum; namespace Dwapi.Models { @@ -9,6 +10,7 @@ public class LoadExtracts public LoadFromEmrCommand LoadFromEmrCommand { get; set; } public ExtractMasterPatientIndex ExtractMpi { get; set; } public bool LoadMpi { get; set; } + public EmrSetup EmrSetup { get; set; } public bool IsValid() { diff --git a/src/Dwapi/Models/LoadPrepExtracts.cs b/src/Dwapi/Models/LoadPrepExtracts.cs new file mode 100644 index 00000000..1478f703 --- /dev/null +++ b/src/Dwapi/Models/LoadPrepExtracts.cs @@ -0,0 +1,18 @@ +using System.Linq; +using Dwapi.ExtractsManagement.Core.Commands; +using Dwapi.ExtractsManagement.Core.Commands.Cbs; + +namespace Dwapi.Models +{ + public class LoadPrepExtracts + { + public LoadPrepFromEmrCommand LoadPrepFromEmrCommand { get; set; } + public ExtractMasterPatientIndex ExtractMpi { get; set; } + public bool LoadMpi { get; set; } + + public bool IsValid() + { + return null != LoadPrepFromEmrCommand && LoadPrepFromEmrCommand.Extracts.Any(); + } + } +} diff --git a/src/Dwapi/NotificationHandlers/CTSendNotificationHandler.cs b/src/Dwapi/NotificationHandlers/CTSendNotificationHandler.cs index 7685160c..b94273de 100644 --- a/src/Dwapi/NotificationHandlers/CTSendNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/CTSendNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.SharedKernel.Events; using Dwapi.UploadManagement.Core.Notifications.Dwh; using Microsoft.AspNetCore.SignalR; @@ -6,7 +7,7 @@ namespace Dwapi.NotificationHandlers { public class CTSendNotificationHandler : IHandler { - public async void Handle(CTSendNotification domainEvent) + public async Task Handle(CTSendNotification domainEvent) { await Startup.HubContext.Clients.All.SendAsync("ShowDwhSendProgress", domainEvent.Progress); diff --git a/src/Dwapi/NotificationHandlers/CTStatusNotificationHandler.cs b/src/Dwapi/NotificationHandlers/CTStatusNotificationHandler.cs index d2cf7736..c2613300 100644 --- a/src/Dwapi/NotificationHandlers/CTStatusNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/CTStatusNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Interfaces.Repository; using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; using Dwapi.ExtractsManagement.Core.Notifications; @@ -18,7 +19,7 @@ public CTStatusNotificationHandler() _extractRepository = Startup.ServiceProvider.GetService(); } - public void Handle(CTStatusNotification domainEvent) + public Task Handle(CTStatusNotification domainEvent) { _repository.UpdateStatus(domainEvent.ExtractId, domainEvent.Status,domainEvent.Stats,domainEvent.StatusInfo,true); @@ -27,6 +28,7 @@ public void Handle(CTStatusNotification domainEvent) var patientStats = _extractRepository.GetSent(domainEvent.PatientExtractId); _repository.UpdateStatus(domainEvent.PatientExtractId, domainEvent.Status, patientStats, "", true); } + return Task.CompletedTask; } } } diff --git a/src/Dwapi/NotificationHandlers/CbsNotificationHandler.cs b/src/Dwapi/NotificationHandlers/CbsNotificationHandler.cs index 183aeb06..7a10bb3b 100644 --- a/src/Dwapi/NotificationHandlers/CbsNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/CbsNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Notifications; using Dwapi.SharedKernel.Events; using Microsoft.AspNetCore.SignalR; @@ -6,7 +7,7 @@ namespace Dwapi.NotificationHandlers { public class CbsNotificationHandler: IHandler { - public async void Handle(CbsNotification domainEvent) + public async Task Handle(CbsNotification domainEvent) { await Startup.CbsHubContext.Clients.All.SendAsync("ShowCbsProgress", domainEvent.Progress); } diff --git a/src/Dwapi/NotificationHandlers/CbsSendNotificationHandler.cs b/src/Dwapi/NotificationHandlers/CbsSendNotificationHandler.cs index 4e686e81..1727b1cd 100644 --- a/src/Dwapi/NotificationHandlers/CbsSendNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/CbsSendNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.SharedKernel.Events; using Dwapi.UploadManagement.Core.Notifications.Cbs; using Microsoft.AspNetCore.SignalR; @@ -6,7 +7,7 @@ namespace Dwapi.NotificationHandlers { public class CbsSendNotificationHandler : IHandler { - public async void Handle(CbsSendNotification domainEvent) + public async Task Handle(CbsSendNotification domainEvent) { await Startup.CbsHubContext.Clients.All.SendAsync("ShowCbsSendProgress", domainEvent.Progress); } diff --git a/src/Dwapi/NotificationHandlers/CbsStatusNotificationHandler.cs b/src/Dwapi/NotificationHandlers/CbsStatusNotificationHandler.cs index cf9fd886..c6f469cf 100644 --- a/src/Dwapi/NotificationHandlers/CbsStatusNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/CbsStatusNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Interfaces.Repository; using Dwapi.ExtractsManagement.Core.Notifications; using Dwapi.SharedKernel.Events; @@ -14,9 +15,10 @@ public CbsStatusNotificationHandler() _repository = Startup.ServiceProvider.GetService(); } - public void Handle(CbsStatusNotification domainEvent) + public Task Handle(CbsStatusNotification domainEvent) { _repository.UpdateStatus(domainEvent.ExtractId,domainEvent.Status,domainEvent.Stats,domainEvent.StatusInfo,true); + return Task.CompletedTask; } } } diff --git a/src/Dwapi/NotificationHandlers/CrsNotificationHandler.cs b/src/Dwapi/NotificationHandlers/CrsNotificationHandler.cs new file mode 100644 index 00000000..e5420bf5 --- /dev/null +++ b/src/Dwapi/NotificationHandlers/CrsNotificationHandler.cs @@ -0,0 +1,15 @@ +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Events; +using Microsoft.AspNetCore.SignalR; + +namespace Dwapi.NotificationHandlers +{ + public class CrsNotificationHandler: IHandler + { + public async Task Handle(CrsNotification domainEvent) + { + await Startup.CrsHubContext.Clients.All.SendAsync("ShowCrsProgress", domainEvent.Progress); + } + } +} diff --git a/src/Dwapi/NotificationHandlers/CrsSendNotificationHandler.cs b/src/Dwapi/NotificationHandlers/CrsSendNotificationHandler.cs new file mode 100644 index 00000000..7e2cc18f --- /dev/null +++ b/src/Dwapi/NotificationHandlers/CrsSendNotificationHandler.cs @@ -0,0 +1,15 @@ +using System.Threading.Tasks; +using Dwapi.SharedKernel.Events; +using Dwapi.UploadManagement.Core.Notifications.Crs; +using Microsoft.AspNetCore.SignalR; + +namespace Dwapi.NotificationHandlers +{ + public class CrsSendNotificationHandler : IHandler + { + public async Task Handle(CrsSendNotification domainEvent) + { + await Startup.CrsHubContext.Clients.All.SendAsync("ShowCrsSendProgress", domainEvent.Progress); + } + } +} diff --git a/src/Dwapi/NotificationHandlers/CrsStatusNotificationHandler.cs b/src/Dwapi/NotificationHandlers/CrsStatusNotificationHandler.cs new file mode 100644 index 00000000..707c3b32 --- /dev/null +++ b/src/Dwapi/NotificationHandlers/CrsStatusNotificationHandler.cs @@ -0,0 +1,24 @@ +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Events; +using Microsoft.Extensions.DependencyInjection; + +namespace Dwapi.NotificationHandlers +{ + public class CrsStatusNotificationHandler : IHandler + { + private IExtractHistoryRepository _repository; + + public CrsStatusNotificationHandler() + { + _repository = Startup.ServiceProvider.GetService(); + } + + public Task Handle(CrsStatusNotification domainEvent) + { + _repository.UpdateStatus(domainEvent.ExtractId,domainEvent.Status,domainEvent.Stats,domainEvent.StatusInfo,true); + return Task.CompletedTask; + } + } +} diff --git a/src/Dwapi/NotificationHandlers/DwhMessageNotificationHandler.cs b/src/Dwapi/NotificationHandlers/DwhMessageNotificationHandler.cs index 3bb34829..b0a5668a 100644 --- a/src/Dwapi/NotificationHandlers/DwhMessageNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/DwhMessageNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.SharedKernel.Events; using Dwapi.UploadManagement.Core.Notifications.Dwh; using Microsoft.AspNetCore.SignalR; @@ -6,7 +7,7 @@ namespace Dwapi.NotificationHandlers { public class DwhMessageNotificationHandler : IHandler { - public async void Handle(DwhMessageNotification domainEvent) + public async Task Handle(DwhMessageNotification domainEvent) { await Startup.HubContext.Clients.All.SendAsync("ShowDwhSendMessage", domainEvent); } diff --git a/src/Dwapi/NotificationHandlers/DwhSendNotificationHandler.cs b/src/Dwapi/NotificationHandlers/DwhSendNotificationHandler.cs index d61fb538..23a7352f 100644 --- a/src/Dwapi/NotificationHandlers/DwhSendNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/DwhSendNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.SharedKernel.Events; using Dwapi.UploadManagement.Core.Notifications.Dwh; using Microsoft.AspNetCore.SignalR; @@ -6,7 +7,7 @@ namespace Dwapi.NotificationHandlers { public class DwhSendNotificationHandler : IHandler { - public async void Handle(DwhSendNotification domainEvent) + public async Task Handle(DwhSendNotification domainEvent) { await Startup.HubContext.Clients.All.SendAsync("ShowDwhSendProgress", domainEvent.Progress); } diff --git a/src/Dwapi/NotificationHandlers/ExtractActivityNotificationHandler.cs b/src/Dwapi/NotificationHandlers/ExtractActivityNotificationHandler.cs index c5358fd3..a33ad36b 100644 --- a/src/Dwapi/NotificationHandlers/ExtractActivityNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/ExtractActivityNotificationHandler.cs @@ -5,6 +5,7 @@ using Microsoft.AspNetCore.SignalR; using Microsoft.Extensions.DependencyInjection; using System; +using System.Threading.Tasks; namespace Dwapi.NotificationHandlers { @@ -12,7 +13,7 @@ public class ExtractActivityNotificationHandler : IHandler(); diff --git a/src/Dwapi/NotificationHandlers/HtsExtractActivityNotificationHandler.cs b/src/Dwapi/NotificationHandlers/HtsExtractActivityNotificationHandler.cs index 3a0ce705..17e2acc2 100644 --- a/src/Dwapi/NotificationHandlers/HtsExtractActivityNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/HtsExtractActivityNotificationHandler.cs @@ -1,4 +1,5 @@ using System; +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Interfaces.Repository; using Dwapi.ExtractsManagement.Core.Notifications; using Dwapi.SharedKernel.Enum; @@ -12,7 +13,7 @@ public class HtsExtractActivityNotificationHandler : IHandler(); diff --git a/src/Dwapi/NotificationHandlers/HtsNotificationHandler.cs b/src/Dwapi/NotificationHandlers/HtsNotificationHandler.cs index 80185f81..35c5578b 100644 --- a/src/Dwapi/NotificationHandlers/HtsNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/HtsNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Notifications; using Dwapi.SharedKernel.Events; using Microsoft.AspNetCore.SignalR; @@ -6,7 +7,7 @@ namespace Dwapi.NotificationHandlers { public class HtsNotificationHandler: IHandler { - public async void Handle(HtsNotification domainEvent) + public async Task Handle(HtsNotification domainEvent) { await Startup.HtsHubContext.Clients.All.SendAsync("ShowHtsProgress", domainEvent.Progress); } diff --git a/src/Dwapi/NotificationHandlers/HtsSendNotificationHandler.cs b/src/Dwapi/NotificationHandlers/HtsSendNotificationHandler.cs index 20067802..2664eb00 100644 --- a/src/Dwapi/NotificationHandlers/HtsSendNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/HtsSendNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.SharedKernel.Events; using Dwapi.UploadManagement.Core.Notifications.Hts; using Microsoft.AspNetCore.SignalR; @@ -6,7 +7,7 @@ namespace Dwapi.NotificationHandlers { public class HtsSendNotificationHandler : IHandler { - public async void Handle(HtsSendNotification domainEvent) + public async Task Handle(HtsSendNotification domainEvent) { await Startup.HtsHubContext.Clients.All.SendAsync("ShowHtsSendProgress", domainEvent.Progress); diff --git a/src/Dwapi/NotificationHandlers/HtsStatusNotificationHandler.cs b/src/Dwapi/NotificationHandlers/HtsStatusNotificationHandler.cs index 9f675ffb..8a67ad92 100644 --- a/src/Dwapi/NotificationHandlers/HtsStatusNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/HtsStatusNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Interfaces.Repository; using Dwapi.ExtractsManagement.Core.Notifications; using Dwapi.SharedKernel.Events; @@ -14,9 +15,10 @@ public HtsStatusNotificationHandler() _repository = Startup.ServiceProvider.GetService(); } - public void Handle(HtsStatusNotification domainEvent) + public Task Handle(HtsStatusNotification domainEvent) { _repository.UpdateStatus(domainEvent.ExtractId,domainEvent.Status,domainEvent.Stats,domainEvent.StatusInfo,true); + return Task.CompletedTask; } } -} \ No newline at end of file +} diff --git a/src/Dwapi/NotificationHandlers/MgsExtractActivityNotificationHandler.cs b/src/Dwapi/NotificationHandlers/MgsExtractActivityNotificationHandler.cs index fff1afb4..2b5dfcc8 100644 --- a/src/Dwapi/NotificationHandlers/MgsExtractActivityNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/MgsExtractActivityNotificationHandler.cs @@ -1,4 +1,5 @@ using System; +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Interfaces.Repository; using Dwapi.ExtractsManagement.Core.Notifications; using Dwapi.SharedKernel.Enum; @@ -12,7 +13,7 @@ public class MgsExtractActivityNotificationHandler : IHandler(); diff --git a/src/Dwapi/NotificationHandlers/MgsNotificationHandler.cs b/src/Dwapi/NotificationHandlers/MgsNotificationHandler.cs index 6906d065..4a907d50 100644 --- a/src/Dwapi/NotificationHandlers/MgsNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/MgsNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Notifications; using Dwapi.SharedKernel.Events; using Microsoft.AspNetCore.SignalR; @@ -6,7 +7,7 @@ namespace Dwapi.NotificationHandlers { public class MgsNotificationHandler: IHandler { - public async void Handle(MgsNotification domainEvent) + public async Task Handle(MgsNotification domainEvent) { await Startup.MgsHubContext.Clients.All.SendAsync("ShowMgsProgress", domainEvent.Progress); } diff --git a/src/Dwapi/NotificationHandlers/MgsSendNotificationHandler.cs b/src/Dwapi/NotificationHandlers/MgsSendNotificationHandler.cs index 281263ea..9c92339f 100644 --- a/src/Dwapi/NotificationHandlers/MgsSendNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/MgsSendNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.SharedKernel.Events; using Dwapi.UploadManagement.Core.Notifications.Mgs; using Microsoft.AspNetCore.SignalR; @@ -6,7 +7,7 @@ namespace Dwapi.NotificationHandlers { public class MgsSendNotificationHandler : IHandler { - public async void Handle(MgsSendNotification domainEvent) + public async Task Handle(MgsSendNotification domainEvent) { await Startup.MgsHubContext.Clients.All.SendAsync("ShowMgsSendProgress", domainEvent.Progress); diff --git a/src/Dwapi/NotificationHandlers/MgsStatusNotificationHandler.cs b/src/Dwapi/NotificationHandlers/MgsStatusNotificationHandler.cs index dac8bc39..1065b998 100644 --- a/src/Dwapi/NotificationHandlers/MgsStatusNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/MgsStatusNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Interfaces.Repository; using Dwapi.ExtractsManagement.Core.Notifications; using Dwapi.SharedKernel.Events; @@ -14,9 +15,10 @@ public MgsStatusNotificationHandler() _repository = Startup.ServiceProvider.GetService(); } - public void Handle(MgsStatusNotification domainEvent) + public Task Handle(MgsStatusNotification domainEvent) { _repository.UpdateStatus(domainEvent.ExtractId,domainEvent.Status,domainEvent.Stats,domainEvent.StatusInfo,true); + return Task.CompletedTask; } } } diff --git a/src/Dwapi/NotificationHandlers/MnchExtractActivityNotificationHandler.cs b/src/Dwapi/NotificationHandlers/MnchExtractActivityNotificationHandler.cs index 17267286..3060bf97 100644 --- a/src/Dwapi/NotificationHandlers/MnchExtractActivityNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/MnchExtractActivityNotificationHandler.cs @@ -5,6 +5,7 @@ using Microsoft.AspNetCore.SignalR; using Microsoft.Extensions.DependencyInjection; using System; +using System.Threading.Tasks; namespace Dwapi.NotificationHandlers { @@ -12,7 +13,7 @@ public class MnchExtractActivityNotificationHandler : IHandler(); diff --git a/src/Dwapi/NotificationHandlers/MnchNotificationHandler.cs b/src/Dwapi/NotificationHandlers/MnchNotificationHandler.cs index 1713a91e..0cefac6b 100644 --- a/src/Dwapi/NotificationHandlers/MnchNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/MnchNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Notifications; using Dwapi.SharedKernel.Events; using Microsoft.AspNetCore.SignalR; @@ -6,7 +7,7 @@ namespace Dwapi.NotificationHandlers { public class MnchNotificationHandler: IHandler { - public async void Handle(MnchNotification domainEvent) + public async Task Handle(MnchNotification domainEvent) { await Startup.MnchHubContext.Clients.All.SendAsync("ShowMnchProgress", domainEvent.Progress); } diff --git a/src/Dwapi/NotificationHandlers/MnchSendNotificationHandler.cs b/src/Dwapi/NotificationHandlers/MnchSendNotificationHandler.cs index 383060dc..3dfd0972 100644 --- a/src/Dwapi/NotificationHandlers/MnchSendNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/MnchSendNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.SharedKernel.Events; using Dwapi.UploadManagement.Core.Notifications.Mnch; using Microsoft.AspNetCore.SignalR; @@ -6,7 +7,7 @@ namespace Dwapi.NotificationHandlers { public class MnchSendNotificationHandler : IHandler { - public async void Handle(MnchSendNotification domainEvent) + public async Task Handle(MnchSendNotification domainEvent) { await Startup.MnchHubContext.Clients.All.SendAsync("ShowMnchSendProgress", domainEvent.Progress); diff --git a/src/Dwapi/NotificationHandlers/MnchStatusNotificationHandler.cs b/src/Dwapi/NotificationHandlers/MnchStatusNotificationHandler.cs index d5156755..75273e19 100644 --- a/src/Dwapi/NotificationHandlers/MnchStatusNotificationHandler.cs +++ b/src/Dwapi/NotificationHandlers/MnchStatusNotificationHandler.cs @@ -1,3 +1,4 @@ +using System.Threading.Tasks; using Dwapi.ExtractsManagement.Core.Interfaces.Repository; using Dwapi.ExtractsManagement.Core.Notifications; using Dwapi.SharedKernel.Events; @@ -14,9 +15,10 @@ public MnchStatusNotificationHandler() _repository = Startup.ServiceProvider.GetService(); } - public void Handle(MnchStatusNotification domainEvent) + public Task Handle(MnchStatusNotification domainEvent) { _repository.UpdateStatus(domainEvent.ExtractId,domainEvent.Status,domainEvent.Stats,domainEvent.StatusInfo,true); + return Task.CompletedTask; } } } diff --git a/src/Dwapi/NotificationHandlers/PrepExtractActivityNotificationHandler.cs b/src/Dwapi/NotificationHandlers/PrepExtractActivityNotificationHandler.cs new file mode 100644 index 00000000..56a94fb3 --- /dev/null +++ b/src/Dwapi/NotificationHandlers/PrepExtractActivityNotificationHandler.cs @@ -0,0 +1,56 @@ +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Enum; +using Dwapi.SharedKernel.Events; +using Microsoft.AspNetCore.SignalR; +using Microsoft.Extensions.DependencyInjection; +using System; +using System.Threading.Tasks; + +namespace Dwapi.NotificationHandlers +{ + public class PrepExtractActivityNotificationHandler : IHandler + { + private IExtractHistoryRepository _extractHistoryRepository; + + public async Task Handle(PrepExtractActivityNotification domainEvent) + { + _extractHistoryRepository = Startup.ServiceProvider.GetService(); + + SaveExtractHistory(domainEvent); + await Startup.PrepHubContext.Clients.All.SendAsync("ShowPrepProgress", domainEvent); + } + + private void SaveExtractHistory(PrepExtractActivityNotification domainEvent) + { + int count = 0; + var status = (ExtractStatus)Enum.Parse(typeof(ExtractStatus), domainEvent.Progress.Status); + + switch (status) + { + case ExtractStatus.Found: + count = domainEvent.Progress.Found; + break; + + case ExtractStatus.Loaded: + count = domainEvent.Progress.Loaded; + break; + case ExtractStatus.Sending: + count = domainEvent.Progress.Sent; + break; + case ExtractStatus.Sent: + count = domainEvent.Progress.Sent; + break; + } + + if (count == 0) + { + _extractHistoryRepository.DwhUpdateStatus(domainEvent.ExtractId, status); + } + else + { + _extractHistoryRepository.DwhUpdateStatus(domainEvent.ExtractId, status, count); + } + } + } +} diff --git a/src/Dwapi/NotificationHandlers/PrepNotificationHandler.cs b/src/Dwapi/NotificationHandlers/PrepNotificationHandler.cs new file mode 100644 index 00000000..727a45ce --- /dev/null +++ b/src/Dwapi/NotificationHandlers/PrepNotificationHandler.cs @@ -0,0 +1,15 @@ +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Events; +using Microsoft.AspNetCore.SignalR; + +namespace Dwapi.NotificationHandlers +{ + public class PrepNotificationHandler: IHandler + { + public async Task Handle(PrepNotification domainEvent) + { + await Startup.PrepHubContext.Clients.All.SendAsync("ShowPrepProgress", domainEvent.Progress); + } + } +} diff --git a/src/Dwapi/NotificationHandlers/PrepSendNotificationHandler.cs b/src/Dwapi/NotificationHandlers/PrepSendNotificationHandler.cs new file mode 100644 index 00000000..44e3a397 --- /dev/null +++ b/src/Dwapi/NotificationHandlers/PrepSendNotificationHandler.cs @@ -0,0 +1,19 @@ +using System.Threading.Tasks; +using Dwapi.SharedKernel.Events; +using Dwapi.UploadManagement.Core.Notifications.Prep; +using Microsoft.AspNetCore.SignalR; + +namespace Dwapi.NotificationHandlers +{ + public class PrepSendNotificationHandler : IHandler + { + public async Task Handle(PrepSendNotification domainEvent) + { + await Startup.PrepHubContext.Clients.All.SendAsync("ShowPrepSendProgress", domainEvent.Progress); + + if (domainEvent.Progress.Done) + await Startup.PrepHubContext.Clients.All.SendAsync("ShowPrepSendProgressDone", + domainEvent.Progress.Extract); + } + } +} diff --git a/src/Dwapi/NotificationHandlers/PrepStatusNotificationHandler.cs b/src/Dwapi/NotificationHandlers/PrepStatusNotificationHandler.cs new file mode 100644 index 00000000..2b456527 --- /dev/null +++ b/src/Dwapi/NotificationHandlers/PrepStatusNotificationHandler.cs @@ -0,0 +1,24 @@ +using System.Threading.Tasks; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository; +using Dwapi.ExtractsManagement.Core.Notifications; +using Dwapi.SharedKernel.Events; +using Microsoft.Extensions.DependencyInjection; + +namespace Dwapi.NotificationHandlers +{ + public class PrepStatusNotificationHandler : IHandler + { + private IExtractHistoryRepository _repository; + + public PrepStatusNotificationHandler() + { + _repository = Startup.ServiceProvider.GetService(); + } + + public Task Handle(PrepStatusNotification domainEvent) + { + _repository.UpdateStatus(domainEvent.ExtractId,domainEvent.Status,domainEvent.Stats,domainEvent.StatusInfo,true); + return Task.CompletedTask; + } + } +} diff --git a/src/Dwapi/Properties/PublishProfiles/FolderProfile2.pubxml b/src/Dwapi/Properties/PublishProfiles/FolderProfile2.pubxml new file mode 100644 index 00000000..08b2fcb7 --- /dev/null +++ b/src/Dwapi/Properties/PublishProfiles/FolderProfile2.pubxml @@ -0,0 +1,20 @@ + + + + + True + False + True + Release + Any CPU + FileSystem + bin\Release\netcoreapp2.1\publish\ + FileSystem + + netcoreapp2.1 + b05b6084-ead2-4a80-9ba7-efe1efb3ccf0 + false + + \ No newline at end of file diff --git a/src/Dwapi/Startup.cs b/src/Dwapi/Startup.cs index c0d9c801..e2efe29e 100644 --- a/src/Dwapi/Startup.cs +++ b/src/Dwapi/Startup.cs @@ -9,62 +9,80 @@ using AutoMapper.Data; using Dwapi.Custom; using Dwapi.ExtractsManagement.Core.Cleaner.Cbs; +using Dwapi.ExtractsManagement.Core.Cleaner.Crs; using Dwapi.ExtractsManagement.Core.Cleaner.Dwh; using Dwapi.ExtractsManagement.Core.Cleaner.Hts; using Dwapi.ExtractsManagement.Core.Cleaner.Mgs; using Dwapi.ExtractsManagement.Core.Cleaner.Mnch; using Dwapi.ExtractsManagement.Core.Cleaner.Mts; +using Dwapi.ExtractsManagement.Core.Cleaner.Prep; using Dwapi.ExtractsManagement.Core.Extractors.Cbs; +using Dwapi.ExtractsManagement.Core.Extractors.Crs; using Dwapi.ExtractsManagement.Core.Extractors.Dwh; using Dwapi.ExtractsManagement.Core.Extractors.Hts; using Dwapi.ExtractsManagement.Core.Extractors.Mgs; using Dwapi.ExtractsManagement.Core.Extractors.Mnch; using Dwapi.ExtractsManagement.Core.Extractors.Mts; +using Dwapi.ExtractsManagement.Core.Extractors.Prep; using Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Cbs; +using Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Crs; using Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Hts; using Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Mgs; using Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Mnch; using Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Mts; +using Dwapi.ExtractsManagement.Core.Interfaces.Cleaner.Prep; using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Cbs; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Crs; using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Dwh; using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Hts; using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Mgs; using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Mnch; using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Mts; +using Dwapi.ExtractsManagement.Core.Interfaces.Extratcors.Prep; using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Cbs; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Crs; using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Dwh; using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Hts; using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Mgs; using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Mnch; using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Mts; +using Dwapi.ExtractsManagement.Core.Interfaces.Loaders.Prep; using Dwapi.ExtractsManagement.Core.Interfaces.Reader; using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Cbs; +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Crs; using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Dwh; using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Hts; using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Mgs; using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Mnch; using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Mts; +using Dwapi.ExtractsManagement.Core.Interfaces.Reader.Prep; using Dwapi.ExtractsManagement.Core.Interfaces.Repository; using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Cbs; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Crs; using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Diff; using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Dwh; using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Hts; using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Mgs; using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Mnch; using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Mts; +using Dwapi.ExtractsManagement.Core.Interfaces.Repository.Prep; using Dwapi.ExtractsManagement.Core.Interfaces.Services; using Dwapi.ExtractsManagement.Core.Interfaces.Utilities; using Dwapi.ExtractsManagement.Core.Interfaces.Validators; using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Cbs; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Crs; using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Hts; using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Mgs; using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Mnch; +using Dwapi.ExtractsManagement.Core.Interfaces.Validators.Prep; using Dwapi.ExtractsManagement.Core.Loader.Cbs; +using Dwapi.ExtractsManagement.Core.Loader.Crs; using Dwapi.ExtractsManagement.Core.Loader.Dwh; using Dwapi.ExtractsManagement.Core.Loader.Hts; using Dwapi.ExtractsManagement.Core.Loader.Mgs; using Dwapi.ExtractsManagement.Core.Loader.Mnch; using Dwapi.ExtractsManagement.Core.Loader.Mts; +using Dwapi.ExtractsManagement.Core.Loader.Prep; using Dwapi.ExtractsManagement.Core.Profiles; using Dwapi.ExtractsManagement.Core.Profiles.Cbs; using Dwapi.ExtractsManagement.Core.Profiles.Dwh; @@ -74,14 +92,17 @@ using Dwapi.ExtractsManagement.Core.Services; using Dwapi.ExtractsManagement.Infrastructure; using Dwapi.ExtractsManagement.Infrastructure.Reader.Cbs; +using Dwapi.ExtractsManagement.Infrastructure.Reader.Crs; using Dwapi.ExtractsManagement.Infrastructure.Reader.Dwh; using Dwapi.ExtractsManagement.Infrastructure.Reader.Hts; using Dwapi.ExtractsManagement.Infrastructure.Reader.Mgs; using Dwapi.ExtractsManagement.Infrastructure.Reader.Mnch; using Dwapi.ExtractsManagement.Infrastructure.Reader.Mts; +using Dwapi.ExtractsManagement.Infrastructure.Reader.Prep; using Dwapi.ExtractsManagement.Infrastructure.Reader.SmartCard; using Dwapi.ExtractsManagement.Infrastructure.Repository; using Dwapi.ExtractsManagement.Infrastructure.Repository.Cbs; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Crs; using Dwapi.ExtractsManagement.Infrastructure.Repository.Diff; using Dwapi.ExtractsManagement.Infrastructure.Repository.Dwh.Extracts; using Dwapi.ExtractsManagement.Infrastructure.Repository.Dwh.TempExtracts; @@ -97,16 +118,22 @@ using Dwapi.ExtractsManagement.Infrastructure.Repository.Mnch.Validations; using Dwapi.ExtractsManagement.Infrastructure.Repository.Mts.Extracts; using Dwapi.ExtractsManagement.Infrastructure.Repository.Mts.TempExtracts; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Extracts; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.TempExtracts; +using Dwapi.ExtractsManagement.Infrastructure.Repository.Prep.Validations; using Dwapi.ExtractsManagement.Infrastructure.Validators.Cbs; +using Dwapi.ExtractsManagement.Infrastructure.Validators.Crs; using Dwapi.ExtractsManagement.Infrastructure.Validators.Dwh; using Dwapi.ExtractsManagement.Infrastructure.Validators.Hts; using Dwapi.ExtractsManagement.Infrastructure.Validators.Mgs; using Dwapi.ExtractsManagement.Infrastructure.Validators.Mnch; +using Dwapi.ExtractsManagement.Infrastructure.Validators.Prep; using Dwapi.Hubs.Cbs; using Dwapi.Hubs.Dwh; using Dwapi.Hubs.Hts; using Dwapi.Hubs.Mgs; using Dwapi.Hubs.Mnch; +using Dwapi.Hubs.Prep; using Dwapi.SettingsManagement.Core.Interfaces; using Dwapi.SettingsManagement.Core.Interfaces.Repositories; using Dwapi.SettingsManagement.Core.Interfaces.Services; @@ -118,46 +145,58 @@ using Dwapi.SharedKernel.Events; using Dwapi.SharedKernel.Infrastructure; using Dwapi.UploadManagement.Core.Interfaces.Packager.Cbs; +using Dwapi.UploadManagement.Core.Interfaces.Packager.Crs; using Dwapi.UploadManagement.Core.Interfaces.Packager.Dwh; using Dwapi.UploadManagement.Core.Interfaces.Packager.Hts; using Dwapi.UploadManagement.Core.Interfaces.Packager.Mgs; using Dwapi.UploadManagement.Core.Interfaces.Packager.Mnch; +using Dwapi.UploadManagement.Core.Interfaces.Packager.Prep; using Dwapi.UploadManagement.Core.Interfaces.Reader; using Dwapi.UploadManagement.Core.Interfaces.Reader.Cbs; +using Dwapi.UploadManagement.Core.Interfaces.Reader.Crs; using Dwapi.UploadManagement.Core.Interfaces.Reader.Dwh; using Dwapi.UploadManagement.Core.Interfaces.Reader.Hts; using Dwapi.UploadManagement.Core.Interfaces.Reader.Mgs; using Dwapi.UploadManagement.Core.Interfaces.Reader.Mnch; using Dwapi.UploadManagement.Core.Interfaces.Reader.Mts; +using Dwapi.UploadManagement.Core.Interfaces.Reader.Prep; using Dwapi.UploadManagement.Core.Interfaces.Services; using Dwapi.UploadManagement.Core.Interfaces.Services.Cbs; +using Dwapi.UploadManagement.Core.Interfaces.Services.Crs; using Dwapi.UploadManagement.Core.Interfaces.Services.Dwh; using Dwapi.UploadManagement.Core.Interfaces.Services.Hts; using Dwapi.UploadManagement.Core.Interfaces.Services.Mgs; using Dwapi.UploadManagement.Core.Interfaces.Services.Mnch; using Dwapi.UploadManagement.Core.Interfaces.Services.Mts; +using Dwapi.UploadManagement.Core.Interfaces.Services.Prep; using Dwapi.UploadManagement.Core.Packager.Cbs; +using Dwapi.UploadManagement.Core.Packager.Crs; using Dwapi.UploadManagement.Core.Packager.Dwh; using Dwapi.UploadManagement.Core.Packager.Hts; using Dwapi.UploadManagement.Core.Packager.Mgs; using Dwapi.UploadManagement.Core.Packager.Mnch; using Dwapi.UploadManagement.Core.Packager.Mts; +using Dwapi.UploadManagement.Core.Packager.Prep; using Dwapi.UploadManagement.Core.Profiles; using Dwapi.UploadManagement.Core.Services.Cbs; +using Dwapi.UploadManagement.Core.Services.Crs; using Dwapi.UploadManagement.Core.Services.Dwh; using Dwapi.UploadManagement.Core.Services.Hts; using Dwapi.UploadManagement.Core.Services.Mgs; using Dwapi.UploadManagement.Core.Services.Mnch; using Dwapi.UploadManagement.Core.Services.Mts; +using Dwapi.UploadManagement.Core.Services.Prep; using Dwapi.UploadManagement.Core.Services.Psmart; using Dwapi.UploadManagement.Infrastructure.Data; using Dwapi.UploadManagement.Infrastructure.Reader; using Dwapi.UploadManagement.Infrastructure.Reader.Cbs; +using Dwapi.UploadManagement.Infrastructure.Reader.Crs; using Dwapi.UploadManagement.Infrastructure.Reader.Dwh; using Dwapi.UploadManagement.Infrastructure.Reader.Hts; using Dwapi.UploadManagement.Infrastructure.Reader.Mgs; using Dwapi.UploadManagement.Infrastructure.Reader.Mnch; using Dwapi.UploadManagement.Infrastructure.Reader.Mts; +using Dwapi.UploadManagement.Infrastructure.Reader.Prep; using Hangfire; using Hangfire.MemoryStorage; using MediatR; @@ -186,11 +225,14 @@ public class Startup public static IHubContext HubContext; public static IHubContext CbsHubContext; public static IHubContext CbsSendHubContext; + public static IHubContext CrsHubContext; + public static IHubContext CrsSendHubContext; public static IHubContext HtsSendHubContext; public static IHubContext HtsHubContext; public static IHubContext MgsSendHubContext; public static IHubContext MgsHubContext; public static IHubContext MnchHubContext; + public static IHubContext PrepHubContext; public static AppFeature AppFeature; private IHostingEnvironment CurrrentEnv; public static List StartupErrors = new List(); @@ -334,7 +376,15 @@ public void ConfigureServices(IServiceCollection services) var name = Configuration["Features:PKV:Name"]; var description = Configuration["Features:PKV:Description"]; var key = Configuration["Features:PKV:Key"]; - AppFeature = AppFeature.Load(name, description, key, CurrrentEnv.IsDevelopment()); + + int.TryParse(Configuration["Features:BatchSize:Patients"], out var p); + int.TryParse(Configuration["Features:BatchSize:Visits"],out var v); + int.TryParse(Configuration["Features:BatchSize:Extracts"],out var e); + + AppFeature = AppFeature.Load( + name, description, key, + p, v, e, + CurrrentEnv.IsDevelopment()); } catch (Exception e) { @@ -441,6 +491,7 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); services.AddScoped(); services.AddScoped(); + services.AddScoped(); services.AddScoped(); services.AddScoped(); @@ -456,9 +507,8 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); services.AddScoped(); services.AddScoped(); - services - .AddScoped(); + services.AddScoped(); + services.AddScoped(); services.AddScoped(); services.AddScoped(); @@ -466,9 +516,9 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); services.AddScoped(); services.AddScoped(); - services - .AddScoped(); + services.AddScoped(); + services.AddScoped(); + services .AddScoped(); @@ -497,6 +547,9 @@ public void ConfigureServices(IServiceCollection services) services .AddScoped(); + services + .AddScoped(); //services.AddScoped(); services.AddScoped(); @@ -513,9 +566,8 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); services.AddScoped(); services.AddScoped(); - services - .AddScoped(); + services.AddScoped(); + services.AddScoped(); /*services.AddScoped(); services.AddScoped(); @@ -528,6 +580,7 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); services.AddScoped(); services.AddScoped(); + services.AddScoped(); services.AddScoped(); services.AddScoped(); @@ -565,36 +618,49 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); #region newCT - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - - - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + //DefaulterTracing + services.AddScoped(); + services.AddScoped(); + + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + //DefaulterTracing + services.AddScoped(); + services.AddScoped(); + + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + + //DefaulterTracing + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); services.AddScoped(); @@ -606,6 +672,10 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); services.AddScoped(); + //DefaulterTracing + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); services.AddScoped(); services.AddScoped(); @@ -616,6 +686,9 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); services.AddScoped(); + //DefaulterTracing + services.AddScoped(); + services.AddScoped(); #endregion @@ -635,43 +708,70 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); + services.AddScoped(); + #region Extracts - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); - services.AddTransient(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); #endregion services.AddScoped(); @@ -706,6 +806,44 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); services.AddScoped(); + + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + + services.AddScoped(); + services.AddScoped(); + var container = new Container(); container.Populate(services); ServiceProvider = container.GetInstance(); @@ -809,14 +947,18 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, IService { routes.MapHub($"/{nameof(ExtractActivity).ToLower()}"); routes.MapHub($"/{nameof(CbsActivity).ToLower()}"); + routes.MapHub($"/{nameof(CrsActivity).ToLower()}"); routes.MapHub($"/{nameof(HtsActivity).ToLower()}"); routes.MapHub($"/{nameof(MgsActivity).ToLower()}"); routes.MapHub($"/{nameof(DwhSendActivity).ToLower()}"); routes.MapHub($"/{nameof(CbsSendActivity).ToLower()}"); + routes.MapHub($"/{nameof(CrsSendActivity).ToLower()}"); routes.MapHub($"/{nameof(HtsSendActivity).ToLower()}"); routes.MapHub($"/{nameof(MgsSendActivity).ToLower()}"); routes.MapHub($"/{nameof(MnchActivity).ToLower()}"); routes.MapHub($"/{nameof(MnchSendActivity).ToLower()}"); + routes.MapHub($"/{nameof(PrepActivity).ToLower()}"); + routes.MapHub($"/{nameof(PrepSendActivity).ToLower()}"); } ); @@ -850,6 +992,10 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, IService Log.Debug("Features"); Log.Debug($" {AppFeature.PKV}"); Log.Debug(new string('=', 50)); + Log.Debug(new string('=', 50)); + Log.Debug("Features"); + Log.Debug($" {AppFeature.BatchSize}"); + Log.Debug(new string('=', 50)); } Log.Debug( @@ -905,4 +1051,12 @@ public static void EnsureMigrationOfContext(IServiceProvider app) where T : B } } } + + public class CrsSendActivity : Hub + { + } + + public class CrsActivity : Hub + { + } } diff --git a/src/Dwapi/client-src/app/app-menu/app-menu.component.ts b/src/Dwapi/client-src/app/app-menu/app-menu.component.ts index cf9c4815..dcbb371d 100644 --- a/src/Dwapi/client-src/app/app-menu/app-menu.component.ts +++ b/src/Dwapi/client-src/app/app-menu/app-menu.component.ts @@ -28,7 +28,9 @@ export class AppMenuComponent implements OnInit { {label: 'PKV Services', icon: 'search', routerLink: ['/registry', 'CBS']}, {label: 'HIV Testing Services', icon: 'local_hospital', routerLink: ['/registry', 'HTS']}, // {label: 'Migration Services', icon: 'flight_takeoff', routerLink: ['/registry', 'MGS']} - {label: 'MNCH Services', icon: 'pregnant_woman', routerLink: ['/registry', 'MNCH']} + {label: 'MNCH Services', icon: 'pregnant_woman', routerLink: ['/registry', 'MNCH']}, + {label: 'PrEP Services', icon: 'crop_square', routerLink: ['/registry', 'PREP']}, + {label: 'Client Registry Services', icon: 'credit_card', routerLink: ['/registry', 'CRS']} ] }, {label: 'EMR Settings', icon: 'dvr', routerLink: ['/emrconfig']} @@ -42,7 +44,9 @@ export class AppMenuComponent implements OnInit { {label: 'PKV Services', icon: 'search', routerLink: ['/cbs']}, {label: 'HIV Testing Services', icon: 'local_hospital', routerLink: ['/hts']}, // {label: 'Migration Services', icon: 'flight_takeoff', routerLink: ['/mgs']} - {label: 'MNCH Services', icon: 'pregnant_woman', routerLink: ['/mnch']} + {label: 'MNCH Services', icon: 'pregnant_woman', routerLink: ['/mnch']}, + {label: 'PrEP Services', icon: 'crop_square', routerLink: ['/prep']}, + {label: 'Client Registry Services', icon: 'credit_card', routerLink: ['/crs']} ] } ]; diff --git a/src/Dwapi/client-src/app/app.module.ts b/src/Dwapi/client-src/app/app.module.ts index 28fec774..da2c6f2a 100644 --- a/src/Dwapi/client-src/app/app.module.ts +++ b/src/Dwapi/client-src/app/app.module.ts @@ -143,6 +143,7 @@ import {HtsSenderService} from '../dockets/services/hts-sender.service'; import {HtsClientService} from '../dockets/services/hts-client.service'; import {HtsClientPartnerService} from '../dockets/services/hts-client-partner.service'; import {HtsClientLinkageService} from '../dockets/services/hts-client-linkage.service'; +import {HtsEligibilityScreeningService} from '../dockets/services/hts-eligibility-screening.service'; import {HtsClientsService} from '../dockets/services/hts-clients.service'; import {HtsClientTestsService} from '../dockets/services/hts-client-tests.service'; @@ -173,6 +174,18 @@ import {MnchExtractDetailsComponent} from '../dockets/mnch-docket/mnch-extract-d import {MnchInvalidComponent} from '../dockets/mnch-docket/mnch-extract-details/mnch-invalid/mnch-invalid.component'; import {MnchValidComponent} from '../dockets/mnch-docket/mnch-extract-details/mnch-valid/mnch-valid.component'; import {MnchSummaryService} from "../dockets/services/mnch-summary.service"; +import {PrepDocketComponent} from "../dockets/prep-docket/prep-docket.component"; +import {PrepConsoleComponent} from "../dockets/prep-docket/prep-console/prep-console.component"; +import {PrepValidComponent} from "../dockets/prep-docket/prep-extract-details/prep-valid/prep-valid.component"; +import {PrepInvalidComponent} from "../dockets/prep-docket/prep-extract-details/prep-invalid/prep-invalid.component"; +import {PrepExtractDetailsComponent} from "../dockets/prep-docket/prep-extract-details/prep-extract-details.component"; +import {PrepService} from "../dockets/services/prep.service"; +import {PrepClientLinkageService} from "../dockets/services/prep-client-linkage.service"; +import {PrepSummaryService} from "../dockets/services/prep-summary.service"; +import {PrepClientService} from "../dockets/services/prep-client.service"; +import {PrepSenderService} from "../dockets/services/prep-sender.service"; +import {CrsService} from "../dockets/services/crs.service"; +import {CrsDocketComponent} from "../dockets/crs-docket/crs-docket.component"; @NgModule({ imports: [ @@ -301,6 +314,12 @@ import {MnchSummaryService} from "../dockets/services/mnch-summary.service"; MnchExtractDetailsComponent, MnchInvalidComponent, MnchValidComponent, + PrepDocketComponent, + PrepConsoleComponent, + PrepExtractDetailsComponent, + PrepInvalidComponent, + PrepValidComponent, + CrsDocketComponent ], providers: [ {provide: LocationStrategy, useClass: HashLocationStrategy}, BreadcrumbService, @@ -312,7 +331,10 @@ import {MnchSummaryService} from "../dockets/services/mnch-summary.service"; HtsClientsService, HtsClientTestsService, HtsClientsLinkageService, HtsTestKitsService, HtsClientTracingService, HtsPartnerTracingService, HtsPartnerNotificationServicesService, HtsClientService, HtsClientPartnerService, HtsClientLinkageService, MetricsService, MgsService, MgsSenderService, MetricMigrationService, NdwhSummaryService, - MnchService, MnchSenderService, MnchClientService, MnchClientLinkageService, MnchSummaryService + MnchService, MnchSenderService, MnchClientService, MnchClientLinkageService, MnchSummaryService, + PrepService, PrepSenderService, PrepClientService, PrepClientLinkageService, PrepSummaryService, + CrsService, HtsEligibilityScreeningService + ], bootstrap: [AppComponent] }) diff --git a/src/Dwapi/client-src/app/app.routes.ts b/src/Dwapi/client-src/app/app.routes.ts index 284d5922..d51afb0f 100644 --- a/src/Dwapi/client-src/app/app.routes.ts +++ b/src/Dwapi/client-src/app/app.routes.ts @@ -10,6 +10,8 @@ import { MpiSearchComponent } from '../dockets/cbs-docket/mpi-search/mpi-search. import {HtsDocketComponent} from '../dockets/hts-docket/hts-docket.component'; import {MgsDocketComponent} from '../dockets/mgs-docket/mgs-docket.component'; import {MnchDocketComponent} from '../dockets/mnch-docket/mnch-docket.component'; +import {PrepDocketComponent} from "../dockets/prep-docket/prep-docket.component"; +import {CrsDocketComponent} from "../dockets/crs-docket/crs-docket.component"; export const routes: Routes = [ {path: 'dashboard', component: DashboardComponent}, @@ -22,6 +24,8 @@ export const routes: Routes = [ {path: 'hts', component: HtsDocketComponent}, {path: 'mgs', component: MgsDocketComponent}, {path: 'mnch', component: MnchDocketComponent}, + {path: 'prep', component: PrepDocketComponent}, + {path: 'crs', component: CrsDocketComponent}, {path: '', redirectTo: '/dashboard', pathMatch: 'full'}, {path: '**', component: DashboardComponent } ]; diff --git a/src/Dwapi/client-src/app/footer/footer.component.html b/src/Dwapi/client-src/app/footer/footer.component.html index e4cc8464..ff445491 100644 --- a/src/Dwapi/client-src/app/footer/footer.component.html +++ b/src/Dwapi/client-src/app/footer/footer.component.html @@ -1,7 +1,10 @@