/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="severity">The level of severity of this medical alert.</param> ///<param name="value">Gets or sets the content value of the &lt;MedicalAlertMessage&gt; element</param> /// public MedicalAlertMessage( MedicalAlertMessageSeverity severity, string value ) : base(StudentDTD.MEDICALALERTMESSAGE) { this.SetSeverity( severity ); this.Value = value; }
/// <summary> /// Sets the value of the <c>Severity</c> attribute. /// </summary> /// <param name="val">A MedicalAlertMessageSeverity object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "The level of severity of this medical alert."</para> /// <para>Version: 2.5</para> /// <para>Since: 2.0</para> /// </remarks> public void SetSeverity( MedicalAlertMessageSeverity val ) { SetField( StudentDTD.MEDICALALERTMESSAGE_SEVERITY, val ); }
/// <summary> /// Sets the value of the <c>Severity</c> attribute. /// </summary> /// <param name="val">A MedicalAlertMessageSeverity object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "The level of severity of this medical alert."</para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetSeverity(MedicalAlertMessageSeverity val) { SetField(StudentDTD.MEDICALALERTMESSAGE_SEVERITY, val); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="severity">The level of severity of this medical alert.</param> ///<param name="value">Gets or sets the content value of the &lt;MedicalAlertMessage&gt; element</param> /// public MedicalAlertMessage(MedicalAlertMessageSeverity severity, string value) : base(StudentDTD.MEDICALALERTMESSAGE) { this.SetSeverity(severity); this.Value = value; }
///<summary>Adds the value of the <c><MedicalAlertMessage></c> element.</summary> /// <param name="Severity">The level of severity of this medical alert.</param> /// <param name="Value">Gets or sets the content value of the &lt;MedicalAlertMessage&gt; element</param> ///<remarks> /// <para>This form of <c>setMedicalAlertMessage</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddMedicalAlertMessage</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void AddMedicalAlertMessage(MedicalAlertMessageSeverity Severity, string Value) { AddChild(StudentDTD.MEDICALALERTMESSAGES_MEDICALALERTMESSAGE, new MedicalAlertMessage(Severity, Value)); }