public SummarizedDrugDto(VidalAPI.Domain.SummarizedDrug drug) { this.Id = drug.Id; this.Name = drug.Name; this.Type = DrugTypeDtoHelper.nativeToDrugTypeDto(drug.Type); this.safetyAlert = drug.SafetyAlert; }
internal static RelatedElementDto vidalToDto(VidalAPI.Domain.RelatedElement relativeElement) { RelatedElementDto dto = new RelatedElementDto(); dto.Id = relativeElement.Id; dto.Type = relativeElement.Type; return dto; }
internal static PosologyUnitDto vidalToDto(VidalAPI.Domain.PosologyUnit nativePosologyUnit) { PosologyUnitDto dto = new PosologyUnitDto(); dto.Id = nativePosologyUnit.Id; dto.Name = nativePosologyUnit.Name; return dto; }
internal static AllergyDto vidalToDto(VidalAPI.Domain.Allergy nativeAllergy) { AllergyDto dto = new AllergyDto(); dto.Id = nativeAllergy.Id; dto.Name = nativeAllergy.Name; return dto; }
internal static RouteDto nativeToRouteDto(VidalAPI.Domain.Route nativeRoute) { RouteDto dto = new RouteDto(); dto.Id = nativeRoute.Id; dto.Name = nativeRoute.Name; dto.ParentId = nativeRoute.ParentId; return dto; }
internal static Cim10Dto vidalToDto(VidalAPI.Domain.Cim10 nativeCim10) { Cim10Dto dto = new Cim10Dto(); dto.Code = nativeCim10.Code; dto.Id = nativeCim10.Id; dto.Name = nativeCim10.Name; return dto; }
internal static MoleculeDto vidalToDto(VidalAPI.Domain.Molecule nativeMolecule) { MoleculeDto dto = new MoleculeDto(); dto.AllergyAlert = nativeMolecule.AllergyAlert; dto.Homeopathy = nativeMolecule.Homeopathy; dto.Id = nativeMolecule.Id; dto.Name = nativeMolecule.Name; return dto; }
internal static List<MoleculeDto> vidalToDtoList(VidalAPI.Domain.MoleculeList nativeMolecules) { List<MoleculeDto> Molecules = new List<MoleculeDto>(); foreach (VidalAPI.Domain.Molecule Molecule in nativeMolecules) { Molecules.Add(vidalToDto(Molecule)); } return Molecules; }
internal static List<AllergyDto> vidalToDtoList(VidalAPI.Domain.AllergyList nativeAllergys) { List<AllergyDto> Allergys = new List<AllergyDto>(); foreach (VidalAPI.Domain.Allergy Allergy in nativeAllergys) { Allergys.Add(vidalToDto(Allergy)); } return Allergys; }
internal static CNGDto vidalToDto(VidalAPI.Domain.CommonNameGroup nativeCNG) { CNGDto dto = new CNGDto(); dto.Id = nativeCNG.Id; dto.MaxUcdRangePrice = nativeCNG.MaxUcdRangePrice; dto.MinUcdRangePrice = nativeCNG.MinUcdRangePrice; dto.Name = nativeCNG.Name; return dto; }
internal static List<CNGDto> vidalToDtoList(VidalAPI.Domain.CommonNameGroupList nativeCNGs) { List<CNGDto> cngs = new List<CNGDto>(); foreach (VidalAPI.Domain.CommonNameGroup cng in nativeCNGs) { cngs.Add(vidalToDto(cng)); } return cngs; }
internal static List<SimplePosologyAlertDto> vidalToRouteDtoList(VidalAPI.Domain.SimplePosologyAlertList nativeAlerts) { List<SimplePosologyAlertDto> result = new List<SimplePosologyAlertDto>(); foreach (VidalAPI.Domain.SimplePosologyAlert Alert in nativeAlerts) { result.Add(new SimplePosologyAlertDto(Alert)); } return result; }
public NumberOfDosesDto(VidalAPI.Domain.NumberOfDoses doses) { this.AbsoluteDurationRange = doses.AbsoluteDurationRange!=null?new DurationRangeDto(doses.AbsoluteDurationRange):null; this.Alerts = SimplePosologyAlertDtoHelper.vidalToRouteDtoList(doses.Alerts); this.MaxAbsoluteNumberOfDose =doses.MaxAbsoluteNumberOfDose!=null?new NumberOfDoseDto(doses.MaxAbsoluteNumberOfDose):null; this.Routes = RouteDtoHelper.vidalToRouteDtoList(doses.Routes); this.UsualDurationRange = doses.UsualDurationRange!=null?new DurationRangeDto(doses.UsualDurationRange):null; this.UsualNumberOfDoseRange = doses.UsualNumberOfDoseRange!=null?new NumberOfDoseRangeDto(doses.UsualNumberOfDoseRange):null; }
internal static List<PrescriptionLineAnalysisDto> vidalToDtoList(VidalAPI.Domain.PrescriptionLineAnalysisList lines) { List<PrescriptionLineAnalysisDto> Result = new List<PrescriptionLineAnalysisDto>(); foreach (VidalAPI.Domain.PrescriptionLineAnalysis line in lines) { Result.Add(new PrescriptionLineAnalysisDto(line)); } return Result; }
internal static List<AlertDto> vidalToAlertDtoList(VidalAPI.Domain.AlertList nativeAlerts) { List<AlertDto> result = new List<AlertDto>(); foreach (VidalAPI.Domain.Alert Alert in nativeAlerts) { result.Add(new AlertDto(Alert)); } return result; }
internal static List<ReferenceDto> vidalToReferenceDtoList(VidalAPI.Domain.ReferenceList wsReferences) { List<ReferenceDto> result = new List<ReferenceDto>(); foreach (VidalAPI.Domain.Reference reference in wsReferences) { result.Add(new ReferenceDto(reference)); } return result; }
public AlertDto(VidalAPI.Domain.Alert alert) { this.Comment = alert.Comment; this.ReferenceList = ReferenceDtoHelper.vidalToReferenceDtoList(alert.ReferenceList); this.Severity = SeverityLevelDtoHelper.nativeToSeverityLevelDto(alert.Severity); this.Title = alert.Title; this.Type = alert.Type; this.relatedElements = RelatedElementDtoHelper.vidalToDtoList(alert.RelatedElementList); }
internal static List<DrugSummarizedAlertCoupleDto> vidalToDtoList(VidalAPI.Domain.DrugSummarizedAlertCoupleList nativeCouples) { List<DrugSummarizedAlertCoupleDto> result = new List<DrugSummarizedAlertCoupleDto>(); foreach (VidalAPI.Domain.DrugSummarizedAlertCouple couple in nativeCouples) { result.Add(new DrugSummarizedAlertCoupleDto(couple) ); } return result; }
internal static List<Cim10Dto> vidalToDtoList(VidalAPI.Domain.Cim10List nativeCim10s) { List<Cim10Dto> Cim10s = new List<Cim10Dto>(); foreach (VidalAPI.Domain.Cim10 Cim10 in nativeCim10s) { Cim10s.Add(vidalToDto(Cim10)); } return Cim10s; }
internal static List<PosologyUnitDto> vidalToDtoList(VidalAPI.Domain.PosologyUnitList nativePosologyUnits) { List<PosologyUnitDto> PosologyUnits = new List<PosologyUnitDto>(); foreach (VidalAPI.Domain.PosologyUnit PosologyUnit in nativePosologyUnits) { PosologyUnits.Add(vidalToDto(PosologyUnit)); } return PosologyUnits; }
internal static List<RouteDto> vidalToRouteDtoList(VidalAPI.Domain.RouteList nativeRoutes) { List<RouteDto> Routes = new List<RouteDto>(); foreach (VidalAPI.Domain.Route Route in nativeRoutes) { Routes.Add(nativeToRouteDto(Route)); } return Routes; }
internal static GenderDto? nativeToBrestFeedingDto(VidalAPI.Domain.Gender nativeBreast) { switch (nativeBreast) { case VidalAPI.Domain.Gender.GENDER_FEMALE: return GenderDto.FEMALE; case VidalAPI.Domain.Gender.GENDER_MALE: return GenderDto.MALE; } return null; }
internal static SummarizedPosologyAlertDto? nativeToSummarizedPosologyAlertDto(VidalAPI.Domain.SummarizedPosologyAlert nativeSummarizedPosologyAlert) { switch (nativeSummarizedPosologyAlert) { case VidalAPI.Domain.SummarizedPosologyAlert.SUMMARIZEDPOSOLOGYALERT_HAS_ALERT: return SummarizedPosologyAlertDto.HAS_ALERT; case VidalAPI.Domain.SummarizedPosologyAlert.SUMMARIZEDPOSOLOGYALERT_NO_ALERT: return SummarizedPosologyAlertDto.NO_ALERT; case VidalAPI.Domain.SummarizedPosologyAlert.SUMMARIZEDPOSOLOGYALERT_UNKNOWN_ALERT: return SummarizedPosologyAlertDto.UNKNOWN_ALERT; } return null; }
public PrescriptionLineAnalysisDto(VidalAPI.Domain.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.nativeToPosologyFrequencyTypeDto(line.PosologyFrequency); this.Unit = line.Unit; }
internal static GenericTypeDto? vidalToDto(VidalAPI.Domain.GenericType nativeGenericType) { switch (nativeGenericType) { case VidalAPI.Domain.GenericType.GENERICTYPE_GENERIC: return GenericTypeDto.GENERIC; case VidalAPI.Domain.GenericType.GENERICTYPE_NULL: return GenericTypeDto.NULL; case VidalAPI.Domain.GenericType.GENERICTYPE_REFERENT: return GenericTypeDto.REFERENT; } return null; }
internal static SummarizedPhysicoChemicalAlertDto? nativeToSummarizedPhysicoChemicalAlertDto(VidalAPI.Domain.SummarizedPhysicoChemicalAlert nativeSummarizedPhysicoChemicalAlert) { switch (nativeSummarizedPhysicoChemicalAlert) { case VidalAPI.Domain.SummarizedPhysicoChemicalAlert.SUMMARIZEDPHYSICOCHEMICALALERT_HAS_ALERT: return SummarizedPhysicoChemicalAlertDto.HAS_ALERT; case VidalAPI.Domain.SummarizedPhysicoChemicalAlert.SUMMARIZEDPHYSICOCHEMICALALERT_NO_ALERT: return SummarizedPhysicoChemicalAlertDto.NO_ALERT; case VidalAPI.Domain.SummarizedPhysicoChemicalAlert.SUMMARIZEDPHYSICOCHEMICALALERT_UNKNOWN_ALERT: return SummarizedPhysicoChemicalAlertDto.UNKNOWN_ALERT; } return null; }
internal static SummarizedRedundantInteractionAlertDto? nativeToSummarizedRedundantInteractionAlertDto(VidalAPI.Domain.SummarizedRedundantInteractionAlert nativeSummarizedRedundantInteractionAlert) { switch (nativeSummarizedRedundantInteractionAlert) { case VidalAPI.Domain.SummarizedRedundantInteractionAlert.SUMMARIZEDREDUNDANTINTERACTIONALERT_HAS_ALERT: return SummarizedRedundantInteractionAlertDto.HAS_ALERT; case VidalAPI.Domain.SummarizedRedundantInteractionAlert.SUMMARIZEDREDUNDANTINTERACTIONALERT_NO_ALERT: return SummarizedRedundantInteractionAlertDto.NO_ALERT; case VidalAPI.Domain.SummarizedRedundantInteractionAlert.SUMMARIZEDREDUNDANTINTERACTIONALERT_UNKNOWN_ALERT: return SummarizedRedundantInteractionAlertDto.UNKNOWN_ALERT; } return null; }
internal static SummarizedPrecautionAlertDto? nativeToSummarizedPrecautionAlertDto(VidalAPI.Domain.SummarizedPrecautionAlert nativeSummarizedPrecautionAlert) { switch (nativeSummarizedPrecautionAlert) { case VidalAPI.Domain.SummarizedPrecautionAlert.SUMMARIZEDPRECAUTIONALERT_HAS_ALERT: return SummarizedPrecautionAlertDto.HAS_ALERT; case VidalAPI.Domain.SummarizedPrecautionAlert.SUMMARIZEDPRECAUTIONALERT_NO_ALERT: return SummarizedPrecautionAlertDto.NO_ALERT; case VidalAPI.Domain.SummarizedPrecautionAlert.SUMMARIZEDPRECAUTIONALERT_UNKNOWN_ALERT: return SummarizedPrecautionAlertDto.UNKNOWN_ALERT; } return null; }
internal static BreastFeedingDto? nativeToBrestFeedingDto(VidalAPI.Domain.Breastfeeding nativeBreast) { switch (nativeBreast) { case VidalAPI.Domain.Breastfeeding.BREASTFEEDING_ALL: return BreastFeedingDto.ALL; case VidalAPI.Domain.Breastfeeding.BREASTFEEDING_LESS_THAN_ONE_MONTH: return BreastFeedingDto.LESS_THAN_ONE_MONTH; case VidalAPI.Domain.Breastfeeding.BREASTFEEDING_MORE_THAN_ONE_MONTH: return BreastFeedingDto.MORE_THAN_ONE_MONTH; case VidalAPI.Domain.Breastfeeding.BREASTFEEDING_NONE: return BreastFeedingDto.NONE; } return null; }
internal static List<RelatedElementDto> vidalToDtoList(VidalAPI.Domain.RelatedElementList nativeRE) { List<RelatedElementDto> cngs = new List<RelatedElementDto>(); //if (nativeRE != null && nativeRE.Count > 0) //{ foreach (VidalAPI.Domain.RelatedElement cng in nativeRE) { cngs.Add(vidalToDto(cng)); } //} return cngs; }