public string AnalysisService_patientFromObjToJson( DateTime dateTime, GenderDto? gender, int weight, int height, int amen, BreastFeedingDto? breast, int creatin, HepaticInsufficiencyDto? hepatic, List<int> allergiesI, List<int> moleculesI, List<int> cimsI) { ServiceAnalysis.ArrayOfInt allergies = new ServiceAnalysis.ArrayOfInt(); foreach(int i in allergiesI){ allergies.Add(i); } ServiceAnalysis.ArrayOfInt molecules = new ServiceAnalysis.ArrayOfInt(); foreach (int i in moleculesI) { molecules.Add(i); } ServiceAnalysis.ArrayOfInt cims = new ServiceAnalysis.ArrayOfInt(); foreach (int i in cimsI) { cims.Add(i); } return analysisService.patientFromObjToJson(dateTime, GenderDtoHelper.dtoToAnalysisService(gender), weight, height, amen, BreastFeedingDtoHelper.dtoToAnalysisService(breast), creatin, HepaticDtoHelper.dtoToAnalysisService(hepatic), allergies, molecules, cims); }
public string AnalysisService_prescriptionLineInActivePrincipleDosesFromObjToJson(double dose, DoseUnitDto doseUnit, PosologyFrequencyTypeDto freq, List<int>indicationsI, List<int> routesI, int id, DrugTypeDto type, int p, DurationTypeDto durationType) { ServiceAnalysis.ArrayOfInt indications = new ServiceAnalysis.ArrayOfInt(); foreach (int i in indicationsI) { indications.Add(i); } ServiceAnalysis.ArrayOfInt routes = new ServiceAnalysis.ArrayOfInt(); foreach (int i in routesI) { routes.Add(i); } return analysisService.prescriptionLineInActivePrincipleDosesFromObjToJson(dose, DoseUnitDtoHelper.dtoToAnalysisService(doseUnit), PosologyFrequencyTypeDtoHelper.dtoToAnalysisService(freq), indications, routes, id, DrugTypeDtoHelper.dtoToAnalysisService(type), p, DurationTypeDtoHelper.dtoToAnalysisService(durationType)); }
public string AnalysisService_prescriptionLineInDosesFromObjToJson(double dose, int unit,PosologyFrequencyTypeDto freq, List<int> indicationsI, List<int> routesI, int id, DrugTypeDto type, int p, DurationTypeDto durationType) { ServiceAnalysis.ArrayOfInt indications = new ServiceAnalysis.ArrayOfInt(); foreach (int i in indicationsI) { indications.Add(i); } ServiceAnalysis.ArrayOfInt routes = new ServiceAnalysis.ArrayOfInt(); foreach (int i in routesI) { routes.Add(i); } return analysisService.prescriptionLineInDosesFromObjToJson(dose, unit, PosologyFrequencyTypeDtoHelper.dtoToAnalysisService(freq), indications, routes, id, DrugTypeDtoHelper.dtoToAnalysisService(type), p, DurationTypeDtoHelper.dtoToAnalysisService(durationType)); // return analysisService.prescriptionLineInDosesFromObjToJson(dose, unit,ServiceAnalysis.PosologyFrequencyType.PER_DAY, indications, routes, id, ServiceAnalysis.DrugType.PRODUCT, p, ServiceAnalysis.DurationType.DAY); }