Custome Profile Validation in NET

35 views
Skip to first unread message

pritam malunjkar

unread,
Dec 1, 2023, 3:28:05 AM12/1/23
to FHIR DOTNET
Dear Team
Following is code -

 string profiledirectory = "path to custom profile structure defination";

                IResourceResolver resolver = new CachedResolver(new MultiResolver(ZipSource.CreateValidationSource("path to 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);

Error -
1. Resolution of profile at 'http://hl7.org/fhir/StructureDefinition/Bundle' failed: End of Central Directory record could not be found. (at Bundle)

This error is coming any one specific machine elsewhere the same code is working fine
We cleared the Cache,temp folder

Can any one guide what will be the reason.

Reply all
Reply to author
Forward
0 new messages