internal static RelatedElementDto vidalToDto(ServiceAnalysis.relatedElement wsRE) { RelatedElementDto dto = new RelatedElementDto(); dto.Id = wsRE.id; dto.Type = wsRE.type; return dto; }
public SummarizedDrugDto(ServiceAnalysis.summarizedDrug drug) { this.Id = drug.id; this.Name = drug.name; this.Type = DrugTypeDtoHelper.wsToDrugTypeDto(drug.type); this.safetyAlert = drug.safetyAlert; }
internal static List<ReferenceDto> vidalToReferenceDtoList(ServiceAnalysis.ArrayOfReference wsReferences) { List<ReferenceDto> result = new List<ReferenceDto>(); foreach (ServiceAnalysis.reference reference in wsReferences) { result.Add(new ReferenceDto(reference)); } return result; }
internal static List<DrugSummarizedAlertCoupleDto> vidalToDtoList(ServiceAnalysis.DrugSummarizedAlertCouple[] couples) { List<DrugSummarizedAlertCoupleDto> result = new List<DrugSummarizedAlertCoupleDto>(); foreach (ServiceAnalysis.DrugSummarizedAlertCouple couple in couples) { result.Add(new DrugSummarizedAlertCoupleDto(couple)); } return result; }
internal static List<AlertDto> vidalToAlertDtoList(ServiceAnalysis.ArrayOfAlert wsAlerts) { List<AlertDto> Result = new List<AlertDto>(); foreach (ServiceAnalysis.alert Alert in wsAlerts) { Result.Add(new AlertDto(Alert)); } return Result; }
internal static List<RelatedElementDto> vidalToDtoList(ServiceAnalysis.ArrayOfRelatedElement wsREs) { List<RelatedElementDto> cngs = new List<RelatedElementDto>(); foreach (ServiceAnalysis.relatedElement RE in wsREs) { cngs.Add(vidalToDto(RE)); } return cngs; }
internal static List<PrescriptionLineAnalysisDto> vidalToDtoList(ServiceAnalysis.ArrayOfPrescriptionLineAnalysis wsLines) { List<PrescriptionLineAnalysisDto> Result = new List<PrescriptionLineAnalysisDto>(); foreach (ServiceAnalysis.prescriptionLineAnalysis line in wsLines) { Result.Add(new PrescriptionLineAnalysisDto(line)); } return Result; }
public AlertDto(ServiceAnalysis.alert alert) { this.Comment = alert.comment; this.ReferenceList =ReferenceDtoHelper.vidalToReferenceDtoList(alert.referenceList); this.Severity = SeverityLevelDtoHelper.wsToSeverityLevelDto(alert.severity); this.Title = alert.title; this.Type = alert.type; this.relatedElements = RelatedElementDtoHelper.vidalToDtoList(alert.relatedElementList); }
internal static SummarizedRedundantInteractionAlertDto? wsToSummarizedRedundantInteractionAlertDto(ServiceAnalysis.SummarizedRedundantInteractionAlert? wsSummarizedRedundantInteractionAlert) { switch (wsSummarizedRedundantInteractionAlert) { case ServiceAnalysis.SummarizedRedundantInteractionAlert.HAS_ALERT: return SummarizedRedundantInteractionAlertDto.HAS_ALERT; case ServiceAnalysis.SummarizedRedundantInteractionAlert.NO_ALERT: return SummarizedRedundantInteractionAlertDto.NO_ALERT; case ServiceAnalysis.SummarizedRedundantInteractionAlert.UNKNOWN_ALERT: return SummarizedRedundantInteractionAlertDto.UNKNOWN_ALERT; } return null; }
internal static GenderDto? vidalToDto(ServiceAnalysis.Gender wsBreast) { switch (wsBreast) { case ServiceAnalysis.Gender.FEMALE: return GenderDto.FEMALE; case ServiceAnalysis.Gender.MALE: return GenderDto.MALE; } return null; }
public PrescriptionLineAnalysisDto(ServiceAnalysis.prescriptionLineAnalysis line) { this.AlertList = AlertDtoHelper.vidalToAlertDtoList(line.alertList); this.Dose = line.dose; this.Drug = line.drug != null ? new SummarizedDrugDto(line.drug) : null; this.Dur = line.dur; this.DurUnit = DurationTypeDtoHelper.vidalToDto(line.durUnit); this.PosologyFrequency = PosologyFrequencyTypeDtoHelper.wsToPosologyFrequencyTypeDto(line.posologyFrequency); this.Unit = line.unit; }
public SummarizedAlertDto(ServiceAnalysis.summarizedAlert alert) { this.AllergiesAlert = SummarizedAllergyAlertDtoHelper.wsToSummarizedAllergyAlertDto(alert.allergiesAlert); this.ContraIndicationsAlert = SummarizedContraIndicationAlertDtoHelper.wsToSummarizedContraIndicationAlertDto(alert.contraIndicationsAlert); this.InteractionsAlert = SummarizedInteractionAlertDtoHelper.wsToSummarizedInteractionAlertDto(alert.interactionsAlert); this.PhysicoChemicalAlert = SummarizedPhysicoChemicalAlertDtoHelper.wsToSummarizedPhysicoChemicalAlertDto(alert.physicoChemicalAlert); this.PosologyAlert = SummarizedPosologyAlertDtoHelper.wsToSummarizedPosologyAlertDto(alert.posologyAlert); this.PrecautionsAlert = SummarizedPrecautionAlertDtoHelper.wsToSummarizedPrecautionAlertDto(alert.precautionsAlert); this.RedundantInteractionsAlert = SummarizedRedundantInteractionAlertDtoHelper.wsToSummarizedRedundantInteractionAlertDto(alert.redundantInteractionsAlert); }
internal static SummarizedPhysicoChemicalAlertDto? wsToSummarizedPhysicoChemicalAlertDto(ServiceAnalysis.SummarizedPhysicoChemicalAlert? wsSummarizedPhysicoChemicalAlert) { switch (wsSummarizedPhysicoChemicalAlert) { case ServiceAnalysis.SummarizedPhysicoChemicalAlert.HAS_ALERT: return SummarizedPhysicoChemicalAlertDto.HAS_ALERT; case ServiceAnalysis.SummarizedPhysicoChemicalAlert.NO_ALERT: return SummarizedPhysicoChemicalAlertDto.NO_ALERT; case ServiceAnalysis.SummarizedPhysicoChemicalAlert.UNKNOWN_ALERT: return SummarizedPhysicoChemicalAlertDto.UNKNOWN_ALERT; } return null; }
internal static BreastFeedingDto? wsToBreastfeedingDto(ServiceAnalysis.Breastfeeding wsBreast) { switch (wsBreast) { case ServiceAnalysis.Breastfeeding.ALL: return BreastFeedingDto.ALL; case ServiceAnalysis.Breastfeeding.LESS_THAN_ONE_MONTH: return BreastFeedingDto.LESS_THAN_ONE_MONTH; case ServiceAnalysis.Breastfeeding.MORE_THAN_ONE_MONTH: return BreastFeedingDto.MORE_THAN_ONE_MONTH; case ServiceAnalysis.Breastfeeding.NONE: return BreastFeedingDto.NONE; } return null; }
internal static SummarizedContraIndicationAlertDto? wsToSummarizedContraIndicationAlertDto(ServiceAnalysis.SummarizedContraIndicationAlert? wsSummarizedContraIndicationAlert) { switch (wsSummarizedContraIndicationAlert) { case ServiceAnalysis.SummarizedContraIndicationAlert.ABSOLUTE_ALERT: return SummarizedContraIndicationAlertDto.ABSOLUTE_ALERT; case ServiceAnalysis.SummarizedContraIndicationAlert.NO_ALERT: return SummarizedContraIndicationAlertDto.NO_ALERT; case ServiceAnalysis.SummarizedContraIndicationAlert.RELATIVE_ALERT: return SummarizedContraIndicationAlertDto.RELATIVE_ALERT; case ServiceAnalysis.SummarizedContraIndicationAlert.UNKNOWN_ALERT: return SummarizedContraIndicationAlertDto.UNKNOWN_ALERT; } return null; }
internal static SeverityLevelDto? wsToSeverityLevelDto(ServiceAnalysis.SeverityLevel? wsSeverityLevel) { switch (wsSeverityLevel) { case ServiceAnalysis.SeverityLevel.INFO: return SeverityLevelDto.INFO; case ServiceAnalysis.SeverityLevel.LEVEL_1: return SeverityLevelDto.LEVEL_1; case ServiceAnalysis.SeverityLevel.LEVEL_2: return SeverityLevelDto.LEVEL_2; case ServiceAnalysis.SeverityLevel.LEVEL_3: return SeverityLevelDto.LEVEL_3; case ServiceAnalysis.SeverityLevel.LEVEL_4: return SeverityLevelDto.LEVEL_4; case ServiceAnalysis.SeverityLevel.UNKNOWN: return SeverityLevelDto.UNKNOWN; } return null; }
internal static SummarizedInteractionAlertDto? wsToSummarizedInteractionAlertDto(ServiceAnalysis.SummarizedInteractionAlert? wsSummarizedInteractionAlert) { switch (wsSummarizedInteractionAlert) { case ServiceAnalysis.SummarizedInteractionAlert.CONTRAINDICATIONS: return SummarizedInteractionAlertDto.CONTRAINDICATIONS; case ServiceAnalysis.SummarizedInteractionAlert.DISADVISES_ASSOCIATION: return SummarizedInteractionAlertDto.DISADVISES_ASSOCIATION; case ServiceAnalysis.SummarizedInteractionAlert.NO_ALERT: return SummarizedInteractionAlertDto.NO_ALERT; case ServiceAnalysis.SummarizedInteractionAlert.PRECAUTION_USE: return SummarizedInteractionAlertDto.PRECAUTION_USE; case ServiceAnalysis.SummarizedInteractionAlert.TAKE_INTO_ACCOUNT: return SummarizedInteractionAlertDto.TAKE_INTO_ACCOUNT; case ServiceAnalysis.SummarizedInteractionAlert.UNKNOWN_ALERT: return SummarizedInteractionAlertDto.UNKNOWN_ALERT; } return null; }
internal static DrugTypeDto? wsToDrugTypeDto(ServiceAnalysis.DrugType? wsDrugType) { switch (wsDrugType) { case ServiceAnalysis.DrugType.ACCESSORY_RANGE: return DrugTypeDto.ACCESSORY_RANGE; case ServiceAnalysis.DrugType.BRANDED_PRESCRIBABLE: return DrugTypeDto.BRANDED_PRESCRIBABLE; case ServiceAnalysis.DrugType.COMMON_NAME_GROUP: return DrugTypeDto.COMMON_NAME_GROUP; case ServiceAnalysis.DrugType.PACK: return DrugTypeDto.PACK; case ServiceAnalysis.DrugType.PRODUCT: return DrugTypeDto.PRODUCT; case ServiceAnalysis.DrugType.UCD: return DrugTypeDto.UCD; case ServiceAnalysis.DrugType.UNKNOWN: return DrugTypeDto.UNKNOWN; } return null; }
internal static DurationTypeDto? vidalToDto(ServiceAnalysis.DurationType? wsBreast) { switch (wsBreast) { case ServiceAnalysis.DurationType.DAY: return DurationTypeDto.DAY; case ServiceAnalysis.DurationType.HOUR: return DurationTypeDto.HOUR; case ServiceAnalysis.DurationType.WEEK: return DurationTypeDto.WEEK; case ServiceAnalysis.DurationType.YEAR: return DurationTypeDto.YEAR; case ServiceAnalysis.DurationType.MINUTE: return DurationTypeDto.MINUTE; case ServiceAnalysis.DurationType.MONTH: return DurationTypeDto.MONTH; } return null; }
internal static DoseUnitDto? wsToDoseUnitDto(ServiceAnalysis.DoseUnit wsDoseUnit) { switch (wsDoseUnit) { case ServiceAnalysis.DoseUnit.G: return DoseUnitDto.G; case ServiceAnalysis.DoseUnit.KU: return DoseUnitDto.KU; case ServiceAnalysis.DoseUnit.MCG: return DoseUnitDto.MCG; case ServiceAnalysis.DoseUnit.MG: return DoseUnitDto.MG; case ServiceAnalysis.DoseUnit.ML: return DoseUnitDto.ML; case ServiceAnalysis.DoseUnit.MMOL: return DoseUnitDto.MMOL; case ServiceAnalysis.DoseUnit.MU: return DoseUnitDto.MU; case ServiceAnalysis.DoseUnit.U: return DoseUnitDto.U; } return null; }
public ReferenceDto(ServiceAnalysis.reference reference) { // this.ReferenceDate = reference.referenceDate; this.ReferenceName = reference.referenceName; this.ReferenceType = reference.referenceType; }
public DrugSummarizedAlertCoupleDto(ServiceAnalysis.DrugSummarizedAlertCouple couple) { this.SummarizedAlert = couple.summarizedAlert != null ? new SummarizedAlertDto(couple.summarizedAlert) : null; this.SummarizedDrug = couple.summarizedDrug != null ? new SummarizedDrugDto(couple.summarizedDrug) : null; }
public PrescriptionAnalysisDto(ServiceAnalysis.prescriptionAnalysis analysis) { this.PrescriptionLineAnalysisList =PrescriptionLineAnalysisDtoHelper.vidalToDtoList(analysis.prescriptionLineAnalysisList); }
internal static PosologyFrequencyTypeDto? wsToPosologyFrequencyTypeDto(ServiceAnalysis.PosologyFrequencyType? PosologyFrequencyType) { switch (PosologyFrequencyType) { case ServiceAnalysis.PosologyFrequencyType.PER_2_DAYS: return PosologyFrequencyTypeDto.PER_2_DAYS; case ServiceAnalysis.PosologyFrequencyType.PER_24_HOURS: return PosologyFrequencyTypeDto.PER_24_HOURS; case ServiceAnalysis.PosologyFrequencyType.PER_DAY: return PosologyFrequencyTypeDto.PER_DAY; case ServiceAnalysis.PosologyFrequencyType.PER_HOUR: return PosologyFrequencyTypeDto.PER_HOUR; case ServiceAnalysis.PosologyFrequencyType.PER_MINUTE: return PosologyFrequencyTypeDto.PER_MINUTE; case ServiceAnalysis.PosologyFrequencyType.PER_MONTH: return PosologyFrequencyTypeDto.PER_MONTH; case ServiceAnalysis.PosologyFrequencyType.PER_N_HOURS: return PosologyFrequencyTypeDto.PER_24_HOURS; case ServiceAnalysis.PosologyFrequencyType.PER_WEEK: return PosologyFrequencyTypeDto.PER_WEEK; case ServiceAnalysis.PosologyFrequencyType.PER_YEAR: return PosologyFrequencyTypeDto.PER_YEAR; case ServiceAnalysis.PosologyFrequencyType.THIS_DAY: return PosologyFrequencyTypeDto.THIS_DAY; case ServiceAnalysis.PosologyFrequencyType.TYPE_44: return PosologyFrequencyTypeDto.PER_24_HOURS; case ServiceAnalysis.PosologyFrequencyType.TYPE_46: return PosologyFrequencyTypeDto.PER_24_HOURS; case ServiceAnalysis.PosologyFrequencyType.TYPE_66: return PosologyFrequencyTypeDto.PER_24_HOURS; } return null; }