Пример #1
0
        public void DataTable_ContainsRkiColumns()
        {
            var sut    = CreateExportDefinition();
            var county = Counties.First();

            Sending.SamplingLocation       = SamplingLocation.Other;
            Sending.OtherSamplingLocation  = "Other Location";
            Sending.Patient.BirthDate      = new DateTime(2005, 8, 31);
            Sending.Patient.County         = county.Name;
            Sending.Patient.State          = State.BB;
            Sending.Patient.Gender         = Gender.Female;
            Sending.Patient.HibVaccination = VaccinationStatus.Yes;
            Sending.Isolate.Evaluation     = Evaluation.HaemophilusTypeA;
            Sending.Isolate.BetaLactamase  = TestResult.Negative;

            var export = sut.ToDataTable(Sendings);

            export.Rows[0]["klhi_nr"].Should().Be(Sending.Isolate.StemNumber);
            export.Rows[0]["eing"].ToString().Should().Match("??.??.????");
            export.Rows[0]["ent"].ToString().Should().Match("??.??.????");
            export.Rows[0]["mat"].Should().Be("Other Location");
            export.Rows[0]["geb_monat"].Should().Be(8);
            export.Rows[0]["geb_jahr"].Should().Be(2005);
            export.Rows[0]["geschlecht"].Should().Be("w");
            export.Rows[0]["hib_impf"].Should().Be("Ja");
            export.Rows[0]["styp"].Should().Be("Hia");
            export.Rows[0]["b_lac"].Should().Be("negativ");
            export.Rows[0]["kreis_nr"].Should().Be(county.CountyNumber);
            export.Rows[0]["bundesland"].Should().Be("12");
            export.Rows[0]["einsender"].Should().Be(Sending.SenderId);
            export.Rows[0]["landkreis"].Should().Be(Sending.Patient.County);
            export.Rows[0]["bundeslandName"].Should().Be("Brandenburg");
            export.Rows[0]["ampicillinMHK"].Should().Be(2.0);
            export.Rows[0]["ampicillinBewertung"].Should().Be("resistent");
            export.Rows[0]["amoxicillinClavulansaeureMHK"].Should().Be(0.75);
            export.Rows[0]["bewertungAmoxicillinClavulansaeure"].Should().Be("sensibel");
        }