public static List <CodeSystem> GetAllCodeSystems()
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(tdb.CodeSystems.ToList());
     }
 }
Пример #2
0
 public static List <ValueSet> GetAllValueSets()
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(tdb.ValueSets.ToList());
     }
 }
Пример #3
0
 public static List <Template> GetIgTypeTemplates(int implementationGuideTypeId, bool shouldFilter = false)
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(GetIgTypeTemplates(tdb, implementationGuideTypeId));
     }
 }
Пример #4
0
 public static List <Template> GetTemplates()
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(GetTemplates(tdb));
     }
 }
Пример #5
0
 public static List <Template> GetTemplates(int excludeId, bool shouldFilter = false)
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(GetTemplates(tdb, excludeId, shouldFilter));
     }
 }
Пример #6
0
 public static List <Template> GetTemplates(string implementationGuideId)
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(GetTemplates(tdb, implementationGuideId));
     }
 }
Пример #7
0
 public static List <AuditEntry> GetAllEntries()
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(tdb.AuditEntries.ToList());
     }
 }
Пример #8
0
 public static List <ImplementationGuideType> GetAll()
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(tdb.ImplementationGuideTypes.ToList());
     }
 }
 public static IQueryable <ViewIGAuditTrail> GetImplementationGuideAuditEntries(int implementationGuideId)
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(tdb.ViewIGAuditTrails.Where(y => y.ImplementationGuideId == implementationGuideId));
     }
 }
Пример #10
0
 public static List <TemplateType> GetAll()
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(tdb.TemplateTypes.ToList());
     }
 }
Пример #11
0
 public static List <ValueSetMember> GetValueSetMembers()
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(tdb.ValueSetMembers
                .ToList());
     }
 }
 public static List <ImplementationGuideFile> GetImplementationGuideSchematrons(int implementationGuideId)
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(tdb.ImplementationGuideFiles.Where(y => y.ImplementationGuideId == implementationGuideId && y.ContentType == ContentTypeSchematron)
                .ToList());
     }
 }
Пример #13
0
 public static List <ValueSetMember> GetValueSetMembers(int valueSetId)
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(tdb.ValueSetMembers
                .Where(y => y.ValueSetId == valueSetId)
                .ToList());
     }
 }
 public static List <ImplementationGuideFile> GetImplementationGuideSamples(int implementationGuideId)
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(tdb.ImplementationGuideFiles.Where(y => y.ImplementationGuideId == implementationGuideId)
                .Where(y => y.ContentType == ContentTypeGoodSample || y.ContentType == ContentTypeBadSample)
                .ToList());
     }
 }
Пример #15
0
 public static List <TemplateType> GetIgTypeTemplateTypes(int implementationGuideTypeId)
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         return(tdb.TemplateTypes
                .Where(y => y.ImplementationGuideTypeId == implementationGuideTypeId)
                .ToList());
     }
 }
 public static List <ImplementationGuide> SearchImplementationGuides()
 {
     using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
     {
         List <ImplementationGuide> retList = tdb.ImplementationGuides
                                              .OrderBy(y => y.Name)
                                              .ToList();
         return(retList);
     }
 }
            public TempAuditEntry(TemplateDatabaseDataSource context, ObjectStateEntry entry)
            {
                this.context      = context;
                this.entity       = entry.Entity;
                this.changeState  = entry.State;
                this.fieldChanges = this.GetFieldChanges(context, entry);

                if (entry.State == EntityState.Deleted)
                {
                    this.SetIds();
                }
            }
Пример #18
0
        public static List <AuditEntry> GetImplementationGuideEntries(int implementationGuideId)
        {
            using (TemplateDatabaseDataSource tdb = new TemplateDatabaseDataSource())
            {
                List <AuditEntry> igEntries = tdb.AuditEntries.Where(y => y.ImplementationGuideId == implementationGuideId).ToList();

                // Get the template audit entries for the implementation guide
                List <AuditEntry> relatedEntries = (from t in tdb.Templates
                                                    join a in tdb.AuditEntries on t.Id equals a.TemplateId
                                                    where t.OwningImplementationGuideId == implementationGuideId
                                                    select a).ToList();

                return(igEntries.Union(relatedEntries).ToList());
            }
        }