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_patientFromObjToJson(DateTime dateTime, GenderDto? gender, int weight, int height, int amen, BreastFeedingDto? breast, int creatin, HepaticInsufficiencyDto? hepatic,List<int> allergies, List<int> molecules, List<int> cims) { return vidalProduct.GetService<VidalAPI.Services.DrugPrescriptionAnalysisService>().PatientFromObjToJson(dateTime, GenderDtoHelper.dtoToNative(gender), weight, height, amen, BreastFeedingDtoHelper.dtoToNative(breast), creatin, HepaticDtoHelper.dtoToNative(hepatic), allergies, molecules, cims); }
public List<NumberOfDosesDto> PosoService_searchDosesByProductId(int productId, GenderDto? gender, float ageF, float weight, int height, int creatin, HepaticInsufficiencyDto? hepatic, List<int>indicationsI, List<int>routesI) { ServicePoso.ArrayOfInt indications = new ServicePoso.ArrayOfInt(); foreach (int i in indicationsI) { indications.Add(i); } ServicePoso.ArrayOfInt routes = new ServicePoso.ArrayOfInt(); foreach (int i in routesI) { routes.Add(i); } try { ServicePoso.NumberOfDoses[] result = posoService.searchDosesByProductId(productId, GenderDtoHelper.dtoToPosoService(gender), ageF, weight, height, creatin, HepaticDtoHelper.dtoToPosoService(hepatic), indications, routes); return result != null ? NumberOfDosesDtoHelper.vidalToDtoList(result.ToList<ServicePoso.NumberOfDoses>()) : new List<NumberOfDosesDto>(); } catch (Exception) { return null; } }
public List<NumberOfDosesDto> PosoService_searchDosesByProductId(int productId, GenderDto? gender, float ageF, float weight, int height, int creatin, HepaticInsufficiencyDto? hepatic, List<int> indications, List<int> routes) { VidalAPI.Domain.NumberOfDosesList result = vidalProduct.GetService<VidalAPI.Services.PosologyService>().SearchDosesByProductId(productId, GenderDtoHelper.dtoToNative(gender), ageF, weight, height, creatin, HepaticDtoHelper.dtoToNative(hepatic), indications, routes); return result!=null?NumberOfDosesDtoHelper.vidalToDtoList(result.ToList<VidalAPI.Domain.NumberOfDoses>()):null; }