public string AddConcreteDiagnosis(DtoConcreteDiagnosis dtoConcreteDiagnosis)
        {
            var concreteDiagnosis = new ConcreteDiagnosis()
            {
                Diagnosis = new Diagnosis()
                {
                    Id = DiagnosisMethods.Instance.GetDiagnosisByCode(dtoConcreteDiagnosis.Diagnosis.Code).Id
                },
                Order = new Order()
                {
                    Id = OrderMethods.Instance.GetOrderByNumber(dtoConcreteDiagnosis.Order.Number).Id
                }
            };

            return(ConcreteDiagnosisMethods.Instance.InsertConcreteDiagnosis(concreteDiagnosis));
        }
        public string EditConcreteDiagnosis(DtoConcreteDiagnosis dtoConcreteDiagnosis)
        {
            var concreteDiagnosis = new ConcreteDiagnosis()
            {
                Id        = ConcreteDiagnosisMethods.Instance.GetConcreteDiagnosisByCode(dtoConcreteDiagnosis.Code).Id,
                Code      = ConcreteDiagnosisMethods.Instance.GenerateConcreteDiagnosisNumber(),
                Diagnosis = new Diagnosis()
                {
                    Id = DiagnosisMethods.Instance.GetDiagnosisByCode(dtoConcreteDiagnosis.Diagnosis.Code).Id
                },
                Order = new Order()
                {
                    Id = OrderMethods.Instance.GetOrderByNumber(dtoConcreteDiagnosis.Order.Number).Id
                }
            };

            return(ConcreteDiagnosisMethods.Instance.UpdateConcreteDiagnosis(concreteDiagnosis));
        }