Пример #1
0
        public PatientControl(IVidalHelper helper)
        {
            if (helper == null)
            {
                InitializeComponent();
            }
            InitializeComponent();
            this.helper = helper;
            //Initialisation de la boîte du choix du sexe

            genderBox.Items.Add(GenderDto.MALE);
            genderBox.Items.Add(GenderDto.FEMALE);

            genderBox.SelectedIndex = 0;

            //Initialisation des insuffisances hépatique :

            hepaticBox.Items.Add(HepaticInsufficiencyDto.NONE);
            hepaticBox.Items.Add(HepaticInsufficiencyDto.MODERATE);
            hepaticBox.Items.Add(HepaticInsufficiencyDto.SEVERE);
            //hepaticBox.Items.Add(ServiceAnalysis.HepaticInsufficiency.HEPATICINSUFFICIENCY_JNULL);

            hepaticBox.SelectedIndex = 0;

            //Initialisation du contexte d'allaitement
            breathFeedingBox.Items.Add(BreastFeedingDto.NONE);
            breathFeedingBox.Items.Add(BreastFeedingDto.ALL);
            breathFeedingBox.Items.Add(BreastFeedingDto.LESS_THAN_ONE_MONTH);
            breathFeedingBox.Items.Add(BreastFeedingDto.MORE_THAN_ONE_MONTH);
            //breathFeedingBox.Items.Add(ServiceAnalysis..Breastfeeding.BREASTFEEDING_JNULL);
            breathFeedingBox.SelectedIndex = 0;
        }
Пример #2
0
 public CircuitMedic(IVidalHelper helper, int? ucdId)
 {
     if (helper == null)
     {
         InitializeComponent();
     }
     InitializeComponent();
     this.helper = helper;
     this.ucdId=ucdId;
     initCircuit((int)ucdId);
     initCompo((int)ucdId);
 }
Пример #3
0
 public RecosForm(List<string> prescription, String patient,IVidalHelper helper)
 {
     InitializeComponent();
     this.helper = helper;
     ServiceAnalysis.ArrayOfCodedReco recos  = helper.recos(prescription, patient);
     foreach (ServiceAnalysis.codedReco reco in recos)
     {
         if (reco != null && reco.recommendation != null)
         {
             recoslistBox.Items.Add(reco.recommendation);
         }
     }
 }
Пример #4
0
        public FormEPPWS(IVidalHelper helper)
        {
            this.helper = helper;
            InitializeComponent();

            //Initialisation de la boîte de sélection des fréquence posologiques
            freqComboBox.Items.Add(PosologyFrequencyTypeDto.PER_2_DAYS);
            freqComboBox.Items.Add(PosologyFrequencyTypeDto.PER_24_HOURS);
            freqComboBox.Items.Add(PosologyFrequencyTypeDto.PER_DAY);
            freqComboBox.Items.Add(PosologyFrequencyTypeDto.PER_HOUR);
            freqComboBox.Items.Add(PosologyFrequencyTypeDto.PER_MINUTE);
            freqComboBox.Items.Add(PosologyFrequencyTypeDto.PER_MONTH);
            //freqComboBox.Items.Add(PosologyFrequencyTypeDto.PER_N_HOURS);
            freqComboBox.Items.Add(PosologyFrequencyTypeDto.PER_WEEK);
            freqComboBox.Items.Add(PosologyFrequencyTypeDto.PER_YEAR);
            freqComboBox.Items.Add(PosologyFrequencyTypeDto.THIS_DAY);
            //freqComboBox.Items.Add(PosologyFrequencyTypeDto.TYPE_44);
            //freqComboBox.Items.Add(PosologyFrequencyTypeDto.TYPE_46);
            //freqComboBox.Items.Add(PosologyFrequencyTypeDto.TYPE_66);
            //freqComboBox.Items.Add(null);

            freqComboBox.SelectedIndex = 2;

            //Initialisation de la boîte de sélection des durées
            dureeComboBox.Items.Add(DurationTypeDto.DAY);
            dureeComboBox.Items.Add(DurationTypeDto.HOUR);
            dureeComboBox.Items.Add(DurationTypeDto.MINUTE);
            dureeComboBox.Items.Add(DurationTypeDto.MONTH);
            dureeComboBox.Items.Add(DurationTypeDto.WEEK);
            dureeComboBox.Items.Add(DurationTypeDto.YEAR);
            dureeComboBox.Items.Add(DurationTypeDto.NULL);
            //dureeComboBox.Items.Add(null);

            dureeComboBox.SelectedIndex = 0;

            //Initialisation de la boîte de ActiveDose
            activeDosecomboBox.Items.Add(DoseUnitDto.G);
            activeDosecomboBox.Items.Add(DoseUnitDto.KU);
            activeDosecomboBox.Items.Add(DoseUnitDto.MCG);
            activeDosecomboBox.Items.Add(DoseUnitDto.MG);
            activeDosecomboBox.Items.Add(DoseUnitDto.U);
            activeDosecomboBox.Items.Add(DoseUnitDto.MU);
            activeDosecomboBox.Items.Add(DoseUnitDto.ML);
            activeDosecomboBox.Items.Add(DoseUnitDto.MMOL);
            //activeDosecomboBox.Items.Add(null);

            activeDosecomboBox.SelectedIndex = 0;
        }