Пример #1
0
        private static SpecificationBuilder createSpecificationBuilder(SpecificationProvider provider, string[] uris)
        {
            var builder = new SpecificationBuilder(provider);

            builder.Add(StructureFactory.PrimitiveTypes());
            builder.Add(StructureFactory.MetaTypes());
            builder.Add(StructureFactory.NonFhirNamespaces());
            foreach (string uri in uris)
            {
                builder.Add(uri);
            }
            builder.Expand();
            return(builder);
        }
Пример #2
0
        public static Specification GetSpecification(Uri uri, bool expand)
        {
            SpecificationProvider provider = GetSpecificationResolver();
            SpecificationBuilder  builder  = new SpecificationBuilder(provider);

            builder.Add(StructureFactory.PrimitiveTypes());
            builder.Add(StructureFactory.NonFhirNamespaces());
            builder.Add(uri);
            if (expand)
            {
                builder.Expand();
            }

            return(builder.ToSpecification());
        }