Beispiel #1
0
 internal static VidalAPI.Domain.DoseUnit dtoToNative(DoseUnitDto? DoseUnit)
 {
     switch (DoseUnit)
     {
         case DoseUnitDto.G: return VidalAPI.Domain.DoseUnit.DOSEUNIT_G;
         case DoseUnitDto.KU: return VidalAPI.Domain.DoseUnit.DOSEUNIT_KU;
         case DoseUnitDto.MCG: return VidalAPI.Domain.DoseUnit.DOSEUNIT_MCG;
         case DoseUnitDto.MG: return VidalAPI.Domain.DoseUnit.DOSEUNIT_MG;
         case DoseUnitDto.ML: return VidalAPI.Domain.DoseUnit.DOSEUNIT_ML;
         case DoseUnitDto.MMOL: return VidalAPI.Domain.DoseUnit.DOSEUNIT_MMOL;
         case DoseUnitDto.MU: return VidalAPI.Domain.DoseUnit.DOSEUNIT_MU;
         case DoseUnitDto.U: return VidalAPI.Domain.DoseUnit.DOSEUNIT_U;
        }
     return VidalAPI.Domain.DoseUnit.DOSEUNIT_JNULL;
 }
Beispiel #2
0
 internal static ServicePoso.DoseUnit? dtoToPosoService(DoseUnitDto? DoseUnit)
 {
     switch (DoseUnit)
     {
         case DoseUnitDto.G: return ServicePoso.DoseUnit.G;
         case DoseUnitDto.KU: return ServicePoso.DoseUnit.KU;
         case DoseUnitDto.MCG: return ServicePoso.DoseUnit.MCG;
         case DoseUnitDto.MG: return ServicePoso.DoseUnit.MG;
         case DoseUnitDto.ML: return ServicePoso.DoseUnit.ML;
         case DoseUnitDto.MMOL: return ServicePoso.DoseUnit.MMOL;
         case DoseUnitDto.MU: return ServicePoso.DoseUnit.MU;
         case DoseUnitDto.U: return ServicePoso.DoseUnit.U;
     }
     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_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));
 }