private void forDoc()
        {
            FhirXmlParser parser = new FhirXmlParser(new ParserSettings {
                AcceptUnknownMembers = true
            });
            IFhirReader xmlWithPatientData = null;
            var         patient            = parser.Parse <Patient>(xmlWithPatientData);

            // -----

            ArtifactResolver source = ArtifactResolver.CreateCachedDefault();
            var settings            = new SnapshotGeneratorSettings {
                IgnoreMissingTypeProfiles = true
            };
            StructureDefinition profile = null;

            var generator = new SnapshotGenerator(source, _settings);

            generator.Generate(profile);
        }
Пример #2
0
 internal ProfileKnowledgeProvider(string baseUrl)
 {
     _loader  = new StructureLoader(ArtifactResolver.CreateCachedDefault());
     _baseUrl = baseUrl;
 }
 internal ProfileKnowledgeProvider(string baseName, string imageOutputDirectory)
 {
     this.baseName        = baseName;
     _loader              = new StructureLoader(ArtifactResolver.CreateCachedDefault());
     ImageOutputDirectory = imageOutputDirectory;
 }
Пример #4
0
        public static SpecificationProvider CreateDefault()
        {
            IArtifactSource source = ArtifactResolver.CreateCachedDefault();

            return(new SpecificationProvider(source));
        }
Пример #5
0
 public OldValidator()
 {
     Source = ArtifactResolver.CreateCachedDefault();
 }