Exemplo n.º 1
0
        public Block07PatientResultLotInfo(List <string> data)
        {
            var line53 = data.FirstOrDefault(a => a.StartsWith("53"));
            var line56 = data.FirstOrDefault(a => a.StartsWith("56"));
            var line15 = data.FirstOrDefault(a => a.StartsWith("15"));
            var line16 = data.FirstOrDefault(a => a.StartsWith("16"));
            var line55 = data.FirstOrDefault(a => a.StartsWith("55"));
            var line11 = data.FirstOrDefault(a => a.StartsWith("11"));
            var line00 = data.FirstOrDefault(a => a.StartsWith("00"));

            OrderId        = new Line53OrderId().Detect(line53);
            SampleName     = new Line56SampleName().Detect(line56);
            AccessDateTime = new Line15AccessDateTime().Detect(line15);
            ResultIndexes  = new Line16ResultIndexes().Detect(line16);
            TestId         = new Line55TestId().Detect(line55);
            ReagentLotInfo = new Line11ReagentLotInfo().Detect(line11);
            ResultData     = new Line00ResultData().Detect(line00);
        }
        public Block06ControlResultLotInfo(List <string> data)
        {
            var line55 = data.FirstOrDefault(a => a.StartsWith("55"));
            var line15 = data.FirstOrDefault(a => a.StartsWith("15"));
            var line16 = data.FirstOrDefault(a => a.StartsWith("16"));
            var line11 = data.FirstOrDefault(a => a.StartsWith("11"));
            var line02 = data.FirstOrDefault(a => a.StartsWith("02"));
            var line12 = data.FirstOrDefault(a => a.StartsWith("12"));
            var line00 = data.FirstOrDefault(a => a.StartsWith("00"));


            TestId         = new Line55TestId().Detect(line55);
            AccessDateTime = new Line15AccessDateTime().Detect(line15);
            ResultIndexes  = new Line16ResultIndexes().Detect(line16);
            ReagentLotInfo = new Line11ReagentLotInfo().Detect(line11);
            ControlId      = new Line02ControlId().Detect(line02);
            ControlLotInfo = new Line12ControlLotInfo().Detect(line12);
            ResultData     = new Line00ResultData().Detect(line00);
        }
        public Block05CalibrationResultLotInfo(List <string> data)
        {
            var line55 = data.FirstOrDefault(a => a.StartsWith("55"));
            var line15 = data.FirstOrDefault(a => a.StartsWith("15"));
            var line16 = data.FirstOrDefault(a => a.StartsWith("16"));
            var line03 = data.FirstOrDefault(a => a.StartsWith("03"));
            var line04 = data.FirstOrDefault(a => a.StartsWith("04"));
            var line13 = data.FirstOrDefault(a => a.StartsWith("13"));
            var line11 = data.FirstOrDefault(a => a.StartsWith("11"));
            var line00 = data.FirstOrDefault(a => a.StartsWith("00"));
            var line07 = data.FirstOrDefault(a => a.StartsWith("07"));

            TestId            = new Line55TestId().Detect(line55);
            AccessDateTime    = new Line15AccessDateTime().Detect(line15);
            ResultIndexes     = new Line16ResultIndexes().Detect(line16);
            StandardRates     = new Line03StandardRates().Detect(line03);
            CalibrateCurve    = new Line04CalibrateCurve().Detect(line04);
            CalibratorLotInfo = new Line13CalibratorLotInfo().Detect(line13);
            ReagentLotInfo    = new Line11ReagentLotInfo().Detect(line11);
            ResultData        = new Line00ResultData().Detect(line00);
            ABSSampleCheck    = new Line07ABSSampleCheck().Detect(line07);
        }