コード例 #1
0
    /// <summary>
    /// Add patient allergies.
    /// </summary>
    private void AddAllergies()
    {
        NhsCui.Toolkit.Web.Allergy allergy = new NhsCui.Toolkit.Web.Allergy();

        allergy.AllergyName   = "Dust";
        allergy.LastUpdatedOn = new DateTime(2007, 6, 1);
        this.patientBanner.Allergies.Add(allergy);

        allergy               = new NhsCui.Toolkit.Web.Allergy();
        allergy.AllergyName   = "Smoke";
        allergy.LastUpdatedOn = new DateTime(2007, 6, 10);
        this.patientBanner.Allergies.Add(allergy);

        allergy               = new NhsCui.Toolkit.Web.Allergy();
        allergy.AllergyName   = "Perfume";
        allergy.LastUpdatedOn = new DateTime(2006, 6, 14);
        this.patientBanner.Allergies.Add(allergy);

        allergy               = new NhsCui.Toolkit.Web.Allergy();
        allergy.AllergyName   = "Latex";
        allergy.LastUpdatedOn = new DateTime(2004, 6, 21);
        this.patientBanner.Allergies.Add(allergy);

        allergy               = new NhsCui.Toolkit.Web.Allergy();
        allergy.AllergyName   = "Pollen";
        allergy.LastUpdatedOn = new DateTime(2005, 6, 11);
        this.patientBanner.Allergies.Add(allergy);

        allergy               = new NhsCui.Toolkit.Web.Allergy();
        allergy.AllergyName   = "Serum";
        allergy.LastUpdatedOn = new DateTime(2007, 1, 1);
        this.patientBanner.Allergies.Add(allergy);
    }
コード例 #2
0
ファイル: PatientBanner.aspx.cs プロジェクト: rbirkby/mscui
    /// <summary>
    /// Add allergies to the list.
    /// </summary>
    private void AddAllergies()
    {
        NhsCui.Toolkit.Web.Allergy allergy = new NhsCui.Toolkit.Web.Allergy();

        allergy.AllergyName = "Dust";
        allergy.LastUpdatedOn = new DateTime(2007, 7, 1);
        this.patientBanner.Allergies.Add(allergy);

        allergy = new NhsCui.Toolkit.Web.Allergy();
        allergy.AllergyName = "Smoke";
        allergy.LastUpdatedOn = new DateTime(2007, 6, 10);
        this.patientBanner.Allergies.Add(allergy);

        allergy = new NhsCui.Toolkit.Web.Allergy();
        allergy.AllergyName = "Perfume";
        allergy.LastUpdatedOn = new DateTime(2006, 6, 14);
        this.patientBanner.Allergies.Add(allergy);

        allergy = new NhsCui.Toolkit.Web.Allergy();
        allergy.AllergyName = "Latex";
        allergy.LastUpdatedOn = new DateTime(2006, 6, 21);
        this.patientBanner.Allergies.Add(allergy);

        allergy = new NhsCui.Toolkit.Web.Allergy();
        allergy.AllergyName = "Peanuts";
        allergy.LastUpdatedOn = new DateTime(2007, 1, 6);
        this.patientBanner.Allergies.Add(allergy);

        allergy = new NhsCui.Toolkit.Web.Allergy();
        allergy.AllergyName = "Hay";
        allergy.LastUpdatedOn = new DateTime(2007, 3, 6);
        this.patientBanner.Allergies.Add(allergy);
    }