示例#1
0
        private void SeedContactRoleType(DataContext context)
        {
            List <string> items = new List <string>()
            {
                "Physician",
                "Nurse Practitioner",
                "Case Manager",
                "Social Worker",
                "Other",
                "PT",
                "CEO",
                "CFO",
                "ICU Director ",
                "OT Director",
                "RT Director",
                "RT Supervisor",
                "Discharge Expeditor",
                "Director of Med or Surg floor",
                "Clinical Supervisor of Med or Surg floor",
                "Director of Telemetry floor",
                "Clinical Supervisor of Telemetry floor ",
                "Director of Emergency Dept",
                "ICU Clinical Supervisor",
                "OT",
                "RN",
                "Rehab Tech",
                "Wound Care",
                "RT  Days",
                "WCC Manager",
                "Director of Revenue Analysis",
                "ER Department",
                "Medical Staff Assistant",
                "Infection Prevention Manager",
                "Patient Safety Coordinator",
                "VP of Performance Improvement",
                "Quality Manager",
                "Stroke Program Coordinator",
                "Quality Analyst",
                "Administrative Assistant",
                "AMP Pharmacist"
            };

            foreach (string item in items)
            {
                var entity = context.ContactRoleTypes.Where(p => p.Name == item && p.Deleted == false).SingleOrDefault();

                if (entity == null)
                {
                    entity      = new ContactRoleType();
                    entity.Name = item;
                    context.ContactRoleTypes.Add(entity);
                }
            }
        }
示例#2
0
        /// <summary>
        ///     Create an object using the contents of the corresponding MzIdentML object
        /// </summary>
        /// <param name="cr"></param>
        /// <param name="idata"></param>
        public ContactRoleObj(ContactRoleType cr, IdentDataObj idata)
            : base(idata)
        {
            ContactRef = cr.contact_ref;

            _role = null;

            if (cr.Role != null)
            {
                _role = new RoleObj(cr.Role, IdentData);
            }
        }