internal static VidalAPI.Domain.DrugType dtoToNative(DrugTypeDto? DrugType) { switch (DrugType) { case DrugTypeDto.ACCESSORY_RANGE: return VidalAPI.Domain.DrugType.DRUGTYPE_ACCESSORY_RANGE; case DrugTypeDto.BRANDED_PRESCRIBABLE: return VidalAPI.Domain.DrugType.DRUGTYPE_BRANDED_PRESCRIBABLE; case DrugTypeDto.COMMON_NAME_GROUP: return VidalAPI.Domain.DrugType.DRUGTYPE_COMMON_NAME_GROUP; case DrugTypeDto.PACK: return VidalAPI.Domain.DrugType.DRUGTYPE_PACK; case DrugTypeDto.PRODUCT: return VidalAPI.Domain.DrugType.DRUGTYPE_PRODUCT; case DrugTypeDto.UCD: return VidalAPI.Domain.DrugType.DRUGTYPE_UCD; case DrugTypeDto.UNKNOWN: return VidalAPI.Domain.DrugType.DRUGTYPE_UNKNOWN; } return VidalAPI.Domain.DrugType.DRUGTYPE_JNULL; }
internal static ServiceAnalysis.DrugType? dtoToAnalysisService(DrugTypeDto? DrugType) { switch (DrugType) { case DrugTypeDto.ACCESSORY_RANGE: return ServiceAnalysis.DrugType.ACCESSORY_RANGE; case DrugTypeDto.BRANDED_PRESCRIBABLE: return ServiceAnalysis.DrugType.BRANDED_PRESCRIBABLE; case DrugTypeDto.COMMON_NAME_GROUP: return ServiceAnalysis.DrugType.COMMON_NAME_GROUP; case DrugTypeDto.PACK: return ServiceAnalysis.DrugType.PACK; case DrugTypeDto.PRODUCT: return ServiceAnalysis.DrugType.PRODUCT; case DrugTypeDto.UCD: return ServiceAnalysis.DrugType.UCD; case DrugTypeDto.UNKNOWN: return ServiceAnalysis.DrugType.UNKNOWN; } return null; }
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); }
public string AnalysisService_prescriptionLineInDosesFromObjToJson(double dose, int unit,PosologyFrequencyTypeDto freq, List<int> indications, List<int> routes, int id, DrugTypeDto type, int p, DurationTypeDto durationType) { VidalAPI.Domain.PosologyFrequencyType dtoFreq = PosologyFrequencyTypeDtoHelper.dtoToNative(freq); string result = vidalProduct.GetService<VidalAPI.Services.DrugPrescriptionAnalysisService>().PrescriptionLineInDosesFromObjToJson(dose, unit, dtoFreq, indications, routes, id, DrugTypeDtoHelper.dtoToNative(type), p, DurationTypeDtoHelper.dtoToNative(durationType)); return result; }
public string AnalysisService_prescriptionLineInActivePrincipleDosesFromObjToJson(double dose, DoseUnitDto doseUnit, PosologyFrequencyTypeDto freq, List<int>indications, List<int> routes, int id, DrugTypeDto type, int p, DurationTypeDto durationType) { return vidalProduct.GetService<VidalAPI.Services.DrugPrescriptionAnalysisService>().PrescriptionLineInActivePrincipleDosesFromObjToJson(dose, DoseUnitDtoHelper.dtoToNative(doseUnit), PosologyFrequencyTypeDtoHelper.dtoToNative(freq), indications, routes, id, DrugTypeDtoHelper.dtoToNative(type), p, DurationTypeDtoHelper.dtoToNative(durationType)); }