コード例 #1
0
 /// <summary>
 /// Updates patient data value for specified ID (Stardard Code)
 /// </summary>
 public virtual void SetValue(PatInfoField.PatInfoIDs ID, string Value, string Name = null, bool AlwaysAdd = false)
 {
     SetValue((uint)ID, Value, Name, AlwaysAdd);
 }
コード例 #2
0
        /// <summary>
        /// Updates patient data value for specified ID (numeric Code)
        /// </summary>
        public virtual void SetValue(uint IDCode, string Value, string Name = null, bool AlwaysAdd = false)
        {
            if (AlwaysAdd == false)
            {
                foreach (PatInfoField field in PatInfoFields)
                {
                    if ((uint)field.ID == IDCode)
                    {
                        //field.Name = PatInfoField.GetNameFromID(id);
                        field.Value = Value;
                        field.Name = Name;
                        return;
                    }
                }
            }

            PatInfoField new_field = new PatInfoField(IDCode, Value, Name);
            PatInfoFields.Add(new_field);
        }
コード例 #3
0
 /// <summary>
 /// Retuns value for specified ID
 /// </summary>
 public virtual string GetValue(PatInfoField.PatInfoIDs ID)
 {
     foreach (PatInfoField field in PatInfoFields)
     {
         if (field.ID == ID)
             return field.Value;
     }
     return "";
 }