Exemple #1
0
        public static async Task SubmitLaboratoryTest(StanlabApi stanlab, Guid sampleId)
        {
            var command = new SubmitLaboratoryTestRequest
            {
                Applicant = new Actor
                {
                    Company = "DK29809577",
                    Person  = ""
                },

                Laboratory = new Actor
                {
                    Company = "DK29809577",
                    Person  = "Christian Lykke"
                },

                Reference = "Rapport nr. 2018-0299123-22",

                Registered = DateTime.Now,
                Finished   = DateTime.Now,

                StorageTemperature = 0,

                Remarks = "Detektionsgrænse hævet for Total-P pga. interferens",

                Analyses = new List <AnalysisResult>
                {
                    new AnalysisResult
                    {
                        Parameter = 176, // BI5 modif. Biokemisk iltforbrug,modifificeret 5 døgn
                        Fraction  = 1,   // Total

                        Unit   = 1,      // mg/L
                        Method = 0,      // Ikke oplyst

                        Attribute = null,
                        Value     = 10,

                        Laboratory = "Miljøstyrelsens Laboratorium - DANAK 556",
                        Accredited = true,

                        Time = DateTime.Now,

                        DetectionLimit      = 0.1,
                        QuantificationLimit = 0.3,

                        RelativeUncertainty = 0.2,
                        AbsoluteUncertainty = 2
                    }
                },

                Appendix = null
            };

            await stanlab.SubmitLaboratoryTestAsync("puls", sampleId, command);
        }
Exemple #2
0
 public override Task SubmitLaboratoryTest([BindRequired] Guid sampleId, [FromBody] SubmitLaboratoryTestRequest body)
 {
     _repository.SaveLaboratoryTestRequest(sampleId, body);
     return(Task.CompletedTask);
 }