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/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/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 index c3bf1588..17a8b488 100644 --- a/src/Dwapi.Contracts/Prep/IPatientPrep.cs +++ b/src/Dwapi.Contracts/Prep/IPatientPrep.cs @@ -33,5 +33,6 @@ public interface IPatientPrep DateTime? DateLastUsedPrev { get; set; } DateTime? Date_Created { get; set; } DateTime? Date_Last_Modified { get; set; } + string NUPI { get; set; } } } 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/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/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/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/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/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/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/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/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/Model/Destination/Dwh/PatientExtract.cs b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Dwh/PatientExtract.cs index 8449e1e0..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(); 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/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 index 34e8275a..ae544793 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PatientPrepExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Destination/Prep/PatientPrepExtract.cs @@ -34,6 +34,7 @@ public class PatientPrepExtract : PrepClientExtract, IPatientPrep 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(); 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/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/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 index b7df95b1..1a058ed7 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtract.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtract.cs @@ -35,6 +35,7 @@ public class TempPatientPrepExtract:TempExtract,IPatientPrep 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 index 4d8a1d67..b9f2932c 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtractError.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtractError.cs @@ -37,6 +37,7 @@ public class TempPatientPrepExtractError : TempExtract, IPatientPrep 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 index cc0fa39e..9ff76802 100644 --- a/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtractErrorSummary.cs +++ b/src/Dwapi.ExtractsManagement.Core/Model/Source/Prep/TempPatientPrepExtractErrorSummary.cs @@ -37,5 +37,6 @@ public class TempPatientPrepExtractErrorSummary:TempPrepExtractErrorSummary,IPat 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/Profiles/Dwh/CtExtractProfile.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/Dwh/CtExtractProfile.cs index 0067ef08..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)); @@ -227,6 +228,7 @@ public CtExtractProfile() .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)))); diff --git a/src/Dwapi.ExtractsManagement.Core/Profiles/Dwh/DiffCtExtractProfile.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/Dwh/DiffCtExtractProfile.cs index d954fa25..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)); @@ -272,6 +274,8 @@ 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.RefillDate, o => o.MapFrom(s => s.GetOptionalNullDateOrDefault(nameof(TempPatientVisitExtract.RefillDate)))) + .ForMember(x => x.ClinicalNotes, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientVisitExtract.ClinicalNotes)))); CreateMap(); 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/MnchExtractProfile.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/Mnch/MnchExtractProfile.cs index d554d4fd..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)))); diff --git a/src/Dwapi.ExtractsManagement.Core/Profiles/Prep/PrepExtractProfile.cs b/src/Dwapi.ExtractsManagement.Core/Profiles/Prep/PrepExtractProfile.cs index c3c9356e..bc2ecacc 100644 --- a/src/Dwapi.ExtractsManagement.Core/Profiles/Prep/PrepExtractProfile.cs +++ b/src/Dwapi.ExtractsManagement.Core/Profiles/Prep/PrepExtractProfile.cs @@ -75,7 +75,8 @@ public PrepExtractProfile() .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)))); + o => o.MapFrom(s => s.GetNullDateOrDefault(nameof(TempPatientPrepExtract.DateLastUsedPrev)))) + .ForMember(x => x.NUPI, o => o.MapFrom(s => s.GetOptionalStringOrDefault(nameof(TempPatientPrepExtract.NUPI)))); CreateMap() diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/ExtractsContext.cs b/src/Dwapi.ExtractsManagement.Infrastructure/ExtractsContext.cs index 445818e0..490cba89 100644 --- a/src/Dwapi.ExtractsManagement.Infrastructure/ExtractsContext.cs +++ b/src/Dwapi.ExtractsManagement.Infrastructure/ExtractsContext.cs @@ -96,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; } @@ -104,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; } + @@ -115,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; } @@ -127,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; } @@ -227,7 +232,7 @@ public DbSet TempPatientAdverseEvent 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; } @@ -266,7 +271,7 @@ public DbSet TempPatientAdverseEvent 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; } @@ -278,13 +283,12 @@ public DbSet TempPatientAdverseEvent #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) { @@ -377,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}); @@ -587,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)}"); @@ -599,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)}"); @@ -679,7 +691,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) 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/20220511103424_CrsInitialViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103424_CrsInitialViews.cs index 3cdf59c9..98587f97 100644 --- a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103424_CrsInitialViews.cs +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220511103424_CrsInitialViews.cs @@ -6,7 +6,7 @@ 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 vTempClientRegistryExtractError as SELECT * FROM TempClientRegistryExtracts WHERE (CheckError = 1)"); migrationBuilder.Sql(@" CREATE VIEW vTempClientRegistryExtractErrorSummary @@ -33,7 +33,7 @@ CREATE VIEW vTempClientRegistryExtractErrorSummary vTempClientRegistryExtractError.LastName, vTempClientRegistryExtractError.LastRegimen, vTempClientRegistryExtractError.LastRegimenLine, -. vTempClientRegistryExtractError.Location, + vTempClientRegistryExtractError.Location, vTempClientRegistryExtractError.MaritalStatus, vTempClientRegistryExtractError.MFLCode, vTempClientRegistryExtractError.MiddleName, diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084653_CrsHIVConfirmedVLResultViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084653_CrsHIVConfirmedVLResultViews.cs index cbdcced5..089a002e 100644 --- a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084653_CrsHIVConfirmedVLResultViews.cs +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220518084653_CrsHIVConfirmedVLResultViews.cs @@ -33,7 +33,7 @@ ALTER VIEW vTempClientRegistryExtractErrorSummary vTempClientRegistryExtractError.LastName, vTempClientRegistryExtractError.LastRegimen, vTempClientRegistryExtractError.LastRegimenLine, -. vTempClientRegistryExtractError.Location, + vTempClientRegistryExtractError.Location, vTempClientRegistryExtractError.MaritalStatus, vTempClientRegistryExtractError.MFLCode, vTempClientRegistryExtractError.MiddleName, diff --git a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130828_CtContactPatientPKViews.cs b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130828_CtContactPatientPKViews.cs index d57e0bd1..ef8a5af5 100644 --- a/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130828_CtContactPatientPKViews.cs +++ b/src/Dwapi.ExtractsManagement.Infrastructure/Migrations/20220608130828_CtContactPatientPKViews.cs @@ -6,7 +6,7 @@ public partial class CtContactPatientPKViews : Migration { protected override void Up(MigrationBuilder migrationBuilder) { - migrationBuilder.Sql(@"alter view vTempContactListingExtractError as SELECT * FROM vTempContactListingExtracts WHERE (CheckError = 1)"); + migrationBuilder.Sql(@"alter view vTempContactListingExtractError as SELECT * FROM TempContactListingExtracts WHERE (CheckError = 1)"); migrationBuilder.Sql(@" ALTER VIEW vTempContactListingExtractErrorSummary 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 0c3ef81c..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 => { @@ -1319,6 +1317,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MaritalStatus"); + b.Property("NUPI"); + b.Property("Occupation"); b.Property("Orphan"); @@ -1671,6 +1671,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("QueueId"); + b.Property("RefillDate"); + b.Property("RespiratoryRate"); b.Property("SecondlineRegimenChangeDate"); @@ -1783,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"); @@ -2036,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"); @@ -2167,6 +2177,166 @@ protected override void BuildModel(ModelBuilder modelBuilder) 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") @@ -3209,6 +3379,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MaritalStatus"); + b.Property("NUPI"); + b.Property("Occupation"); b.Property("PatientHeiID"); @@ -3468,6 +3640,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MaritalStatus"); + b.Property("NUPI"); + b.Property("PatientID"); b.Property("PopulationType"); @@ -6657,6 +6831,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MaritalStatus"); + b.Property("NUPI"); + b.Property("Occupation"); b.Property("Orphan"); @@ -6757,6 +6933,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MaritalStatus"); + b.Property("NUPI"); + b.Property("Orphan"); b.Property("PatientID"); @@ -6835,6 +7013,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("KeyPopulationType"); + b.Property("NUPI"); + b.Property("Orphan"); b.Property("PatientID"); @@ -7405,6 +7585,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("PwP"); + b.Property("RefillDate"); + b.Property("RespiratoryRate"); b.Property("SecondlineRegimenChangeDate"); @@ -7507,6 +7689,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("PwP"); + b.Property("RefillDate"); + b.Property("SecondlineRegimenChangeDate"); b.Property("SecondlineRegimenChangeReason"); @@ -7595,6 +7779,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("RecordId"); + b.Property("RefillDate"); + b.Property("SecondlineRegimenChangeDate"); b.Property("SecondlineRegimenChangeReason"); @@ -7799,10 +7985,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MaritalStatus"); + b.Property("NUPI"); + b.Property("PatientDisabled"); b.Property("PatientPk"); + b.Property("Pkv"); + b.Property("PopulationType"); b.Property("Project"); @@ -7841,10 +8031,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MaritalStatus"); + b.Property("NUPI"); + b.Property("PatientDisabled"); b.Property("PatientPk"); + b.Property("Pkv"); + b.Property("PopulationType"); b.Property("Project"); @@ -7885,10 +8079,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MaritalStatus"); + b.Property("NUPI"); + b.Property("PatientDisabled"); b.Property("PatientPK"); + b.Property("Pkv"); + b.Property("PopulationType"); b.Property("RecordId"); @@ -8190,6 +8388,160 @@ protected override void BuildModel(ModelBuilder modelBuilder) 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") @@ -8677,12 +9029,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("Project"); @@ -8761,12 +9117,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("Project"); @@ -8841,8 +9201,12 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MonthsLastTested"); + b.Property("NUPI"); + b.Property("PatientPK"); + b.Property("Pkv"); + b.Property("RecordId"); b.Property("SiteCode"); @@ -10115,6 +10479,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MaritalStatus"); + b.Property("NUPI"); + b.Property("Occupation"); b.Property("PatientHeiID"); @@ -10357,6 +10723,8 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Property("MaritalStatus"); + b.Property("NUPI"); + b.Property("PatientID"); b.Property("PatientPK"); @@ -11002,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") 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.SettingsManagement.Core/Application/Checks/Queries/CheckLiveUpdate.cs b/src/Dwapi.SettingsManagement.Core/Application/Checks/Queries/CheckLiveUpdate.cs index 1b102abd..ac1b3921 100644 --- a/src/Dwapi.SettingsManagement.Core/Application/Checks/Queries/CheckLiveUpdate.cs +++ b/src/Dwapi.SettingsManagement.Core/Application/Checks/Queries/CheckLiveUpdate.cs @@ -28,7 +28,7 @@ public async Task> Handle(CheckLiveUpdate request, Cancellatio try { var response = - await client.GetAsync("https://data.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.Infrastructure/Seed/CentralRegistries.csv b/src/Dwapi.SettingsManagement.Infrastructure/Seed/CentralRegistries.csv index 79266f0b..b033f5fa 100644 --- a/src/Dwapi.SettingsManagement.Infrastructure/Seed/CentralRegistries.csv +++ b/src/Dwapi.SettingsManagement.Infrastructure/Seed/CentralRegistries.csv @@ -6,4 +6,4 @@ a6224bc6-0e85-11e8-ba89-0ed5f89f718b|1983aeda-1a96-30e9-adc0-fa7ae01bbebc|https: 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 +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/Extracts.csv b/src/Dwapi.SettingsManagement.Infrastructure/Seed/Extracts.csv index bb679edb..92e4057a 100644 --- a/src/Dwapi.SettingsManagement.Infrastructure/Seed/Extracts.csv +++ b/src/Dwapi.SettingsManagement.Infrastructure/Seed/Extracts.csv @@ -124,6 +124,7 @@ 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, i.siteCode as SiteCode, i.facilityName as FacilityName, @@ -959,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, @@ -1637,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, @@ -1655,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 @@ -2006,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] @@ -4920,7 +5062,17 @@ 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 @@ -4942,74 +5094,77 @@ A91D30FB-40C1-4453-903D-4E687FF5E20D|Mnch Patient|MNCH|A6221861-0E85-11E8-BA89-0 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, @@ -6613,48 +6768,52 @@ from kenyaemr_etl.etl_patient_demographics d 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.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, - e.in_school 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, - e.kp_type 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 + 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, @@ -7037,3 +7196,4 @@ from kenyaemr_etl.etl_patient_demographics d 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 3bc0a59e..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.7.2.3,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.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.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/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/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/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/Model/Dwh/PatientExtractView.cs b/src/Dwapi.UploadManagement.Core/Model/Dwh/PatientExtractView.cs index 5d0113ad..7b454ba9 100644 --- a/src/Dwapi.UploadManagement.Core/Model/Dwh/PatientExtractView.cs +++ b/src/Dwapi.UploadManagement.Core/Model/Dwh/PatientExtractView.cs @@ -49,6 +49,8 @@ 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; 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/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/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/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.Infrastructure/Data/UploadContext.cs b/src/Dwapi.UploadManagement.Infrastructure/Data/UploadContext.cs index 3670984b..19b3c18a 100644 --- a/src/Dwapi.UploadManagement.Infrastructure/Data/UploadContext.cs +++ b/src/Dwapi.UploadManagement.Infrastructure/Data/UploadContext.cs @@ -34,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; } 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/.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/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/Dwapi.csproj b/src/Dwapi/Dwapi.csproj index 6aa760d0..433389ec 100644 --- a/src/Dwapi/Dwapi.csproj +++ b/src/Dwapi/Dwapi.csproj @@ -4,7 +4,7 @@ Latest true ..\docker-compose.dcproj - 2.7.2.3 + 2.7.2.8 Palladium Group Davidson Gikandi, Danson Koske, Mwenda Gitonga, Brian Mwasi, Teddy Brian, Mary Kilewe https://github.com/palladiumkenya/DWAPI diff --git a/src/Dwapi/EventHandlers/Hts/HtsExtractSentEventHandlers.cs b/src/Dwapi/EventHandlers/Hts/HtsExtractSentEventHandlers.cs index c320696a..527dfd2c 100644 --- a/src/Dwapi/EventHandlers/Hts/HtsExtractSentEventHandlers.cs +++ b/src/Dwapi/EventHandlers/Hts/HtsExtractSentEventHandlers.cs @@ -16,6 +16,8 @@ public class HtsExtractSentEventHandlers : IHandler private readonly IHtsPartnerTracingExtractRepository _partnerTracingExtractRepository; private readonly IHtsTestKitsExtractRepository _testKitsExtractRepository; private readonly IHtsPartnerNotificationServicesExtractRepository _partnerNotificationServicesExtractRepository; + private readonly IHtsEligibilityExtractRepository _htsEligibilityExtractRepository; + public HtsExtractSentEventHandlers() { @@ -26,6 +28,8 @@ public HtsExtractSentEventHandlers() _partnerTracingExtractRepository = Startup.ServiceProvider.GetService(); _testKitsExtractRepository = Startup.ServiceProvider.GetService(); _partnerNotificationServicesExtractRepository = Startup.ServiceProvider.GetService(); + _htsEligibilityExtractRepository = Startup.ServiceProvider.GetService(); + } public Task Handle(HtsExtractSentEvent domainEvent) @@ -46,6 +50,8 @@ public Task 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/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 bd6986d1..e2efe29e 100644 --- a/src/Dwapi/Startup.cs +++ b/src/Dwapi/Startup.cs @@ -507,9 +507,8 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); services.AddScoped(); services.AddScoped(); - services - .AddScoped(); + services.AddScoped(); + services.AddScoped(); services.AddScoped(); services.AddScoped(); @@ -517,9 +516,9 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); services.AddScoped(); services.AddScoped(); - services - .AddScoped(); + services.AddScoped(); + services.AddScoped(); + services .AddScoped(); @@ -548,6 +547,9 @@ public void ConfigureServices(IServiceCollection services) services .AddScoped(); + services + .AddScoped(); //services.AddScoped(); services.AddScoped(); @@ -564,9 +566,8 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); services.AddScoped(); services.AddScoped(); - services - .AddScoped(); + services.AddScoped(); + services.AddScoped(); /*services.AddScoped(); services.AddScoped(); @@ -579,6 +580,7 @@ public void ConfigureServices(IServiceCollection services) services.AddScoped(); services.AddScoped(); services.AddScoped(); + services.AddScoped(); services.AddScoped(); services.AddScoped(); diff --git a/src/Dwapi/client-src/app/app.module.ts b/src/Dwapi/client-src/app/app.module.ts index 20529859..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'; @@ -332,7 +333,7 @@ import {CrsDocketComponent} from "../dockets/crs-docket/crs-docket.component"; MetricsService, MgsService, MgsSenderService, MetricMigrationService, NdwhSummaryService, MnchService, MnchSenderService, MnchClientService, MnchClientLinkageService, MnchSummaryService, PrepService, PrepSenderService, PrepClientService, PrepClientLinkageService, PrepSummaryService, - CrsService + CrsService, HtsEligibilityScreeningService ], bootstrap: [AppComponent] diff --git a/src/Dwapi/client-src/app/footer/footer.component.html b/src/Dwapi/client-src/app/footer/footer.component.html index 23a2020c..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 @@