Exemplo n.º 1
0
 public SummarizedDrugDto(VidalAPI.Domain.SummarizedDrug drug)
 {
     this.Id = drug.Id;
         this.Name = drug.Name;
         this.Type = DrugTypeDtoHelper.nativeToDrugTypeDto(drug.Type);
         this.safetyAlert = drug.SafetyAlert;
 }
Exemplo n.º 2
0
 internal static RelatedElementDto vidalToDto(VidalAPI.Domain.RelatedElement relativeElement)
 {
     RelatedElementDto dto = new RelatedElementDto();
     dto.Id = relativeElement.Id;
     dto.Type = relativeElement.Type;
     return dto;
 }
Exemplo n.º 3
0
 internal static PosologyUnitDto vidalToDto(VidalAPI.Domain.PosologyUnit nativePosologyUnit)
 {
     PosologyUnitDto dto = new PosologyUnitDto();
     dto.Id = nativePosologyUnit.Id;
     dto.Name = nativePosologyUnit.Name;
     return dto;
 }
Exemplo n.º 4
0
 internal static AllergyDto vidalToDto(VidalAPI.Domain.Allergy nativeAllergy)
 {
     AllergyDto dto = new AllergyDto();
     dto.Id = nativeAllergy.Id;
     dto.Name = nativeAllergy.Name;
     return dto;
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 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;
 }
Exemplo n.º 7
0
 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;
 }
Exemplo n.º 8
0
 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;
 }
Exemplo n.º 9
0
 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;
 }
Exemplo n.º 10
0
 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;
 }
Exemplo n.º 11
0
 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;
 }
Exemplo n.º 13
0
 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;
 }
Exemplo n.º 15
0
 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;
 }
Exemplo n.º 16
0
 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;
 }
Exemplo n.º 17
0
 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;
 }
Exemplo n.º 19
0
 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;
 }
Exemplo n.º 20
0
 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;
 }
Exemplo n.º 21
0
 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;
 }
Exemplo n.º 22
0
        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;
 }
Exemplo n.º 25
0
        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;
        }
Exemplo n.º 29
0
 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;
 }
Exemplo n.º 30
0
 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;
 }