Exemple #1
0
 private void LoadMasterList()
 {
     if (_MasterList == null)
     {
         _MasterList = new List <SearchParameter>();
         var Def             = new DefinitionZip();
         var DefSearchBundle = Def.GetBundle(DefinitionZip.DefinitionsBundleType.SearchParameters);
         foreach (var item in DefSearchBundle.Entry)
         {
             if (item.Resource is SearchParameter SearchParam)
             {
                 _MasterList.Add(SearchParam);
             }
         }
     }
 }
        public List <CompartmentDefinition> GetDefinitionList()
        {
            var ReturnList      = new List <CompartmentDefinition>();
            var Def             = new DefinitionZip();
            var DefSearchBundle = Def.GetBundle(DefinitionZip.DefinitionsBundleType.ProfilesResources);

            foreach (var item in DefSearchBundle.Entry)
            {
                if (item.Resource.ResourceType == ResourceType.CompartmentDefinition)
                {
                    if (item.Resource is CompartmentDefinition CompartmentDef)
                    {
                        ReturnList.Add(CompartmentDef);
                    }
                }
            }
            return(ReturnList);
        }