Custom Profile validation

46 views
Skip to first unread message

pritam malunjkar

unread,
Dec 1, 2023, 3:28:07 AM12/1/23
to FHIR DOTNET
Hello Team,
I am getting error -
Resolution of profile at 'http://hl7.org/fhir/StructureDefinition/Bundle' failed: End of Central Directory record could not be found. (at Bundle)

As the same code is working fine on other machine , could any plz guide what will be the reason, What is missing,

string profiledirectory = "<path for customized profiles>";

                IResourceResolver resolver = new CachedResolver(new MultiResolver(ZipSource.CreateValidationSource("pathfor-specification.zip"), new DirectorySource(profiledirectory, new DirectorySourceSettings()
                {
                    IncludeSubDirectories = true,
                })
                ));
                ValidationSettings settings = new ValidationSettings()
                {
                    ResourceResolver = resolver,
                };
                Validator validator = new Validator(settings);
                var outcome = validator.Validate(ProfileInstance);
Reply all
Reply to author
Forward
0 new messages