Exemplo n.º 1
0
 public bool AreEqual(AnalysisRequestDataModel request)
 {
     if (Age != request.Age)
     {
         return(false);
     }
     if (Cin != request.Cin)
     {
         return(false);
     }
     if (SiteId != request.SiteId)
     {
         return(false);
     }
     if (DateHelper.GetCD4FormatDateTime(CollectionDate) != DateHelper.GetCD4FormatDateTime(request.SampleCollectionDate))
     {
         return(false);
     }
     if (DateHelper.GetCD4FormatDateTime(ReceivedDate) != DateHelper.GetCD4FormatDateTime(request.SampleReceivedDate))
     {
         return(false);
     }
     if (EpisodeNumber != request.EpisodeNumber)
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 2
0
 public bool IsMatch(AnalysisRequestDataModel request)
 {
     if (NidPp != request.NationalIdPassport)
     {
         return(false);
     }
     return(true);
 }
        public RequestSampleAndClinicalDetailsInsertDatabaseModel
            (int patientId, AnalysisRequestDataModel request, IStatusDataAccess statusData, int loggedInUserId)
        {
            //set demo authId
            this.UserId = loggedInUserId;

            PatientId      = patientId;
            EpisodeNumber  = request.EpisodeNumber;
            Age            = request.Age;
            Cin            = request.Cin;
            SampleStatusId = request.StatusId;
            SiteId         = request.SiteId;
            CommaDelimitedClinicalDetailsIds = ClinicalDetailsDataAccess.GetCsvClinicalDetails(request.ClinicalDetails);
            RequestedTestData = ResultDataAccess.GetTestsTableAsync(request.Tests, request.Cin).GetAwaiter().GetResult();
        }