Validator - FATAL error, SSL connection #1833
-
Hi guys! We are working with the latest version(s) of your library ("Hl7.Fhir.R5" Version="3.4.0" & "Hl7.Fhir.Specification.R5" Version="3.4.0") and seeing bunch of FATALs as a result of validation process, see image below: I was not able to find much information about this issue online, the exception message itself does not explain why, in cases where the system's node value is a generally available url (e.g. https://terminology.hl7.org/CodeSystem/v3-DataOperation), we are still experiencing SSL connection issues (and from our understanding those urls are supposed to be URNs ? we do have a separate code system definition file defined for this which seems to be ignored)... Here is a snippet of our XML with resource (Provenance) nodes resulting in two FATALs seen in the screenshot above:
(note the https://spor.ema.europa.eu/v1/lists/100000152091 [requires auth] and https://terminology.hl7.org/CodeSystem/v3-DataOperation [generally available] pointers) Would you guys be able to share some insights as to why we could be seeing those errors please? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @mtomorowicz, I tried to reproduce your validation error with the following unit test: public void Issue_1833()
{
var provenanceBundleXml = File.ReadAllText(Path.Combine("TestData", "validation", "provenanceBundle.xml"));
var provenanceBundle = new FhirXmlParser().Parse<Bundle>(provenanceBundleXml);
Assert.NotNull(provenanceBundle);
var settings = new ValidationSettings()
{
ResourceResolver = ZipSource.CreateValidationSource(),
GenerateSnapshot = true,
EnableXsdValidation = true,
ResolveExternalReferences = true
};
var validator = new Validator(settings);
var report = validator.Validate(provenanceBundle);
report.Issue.Should().NotContain(i => i.Details.Text.Contains("SSL"));
} And I think you are validating a Bundle here, so I put the Provenance resource in a bundle: <?xml version="1.0" encoding="utf-8" ?>
<Bundle xmlns="http://hl7.org/fhir">
<type value="collection"/>
<entry>
<fullUrl value="http://example.org/fhir/Organization/23"/>
<resource>
<Provenance xmlns="http://hl7.org/fhir">
<id value="prov-id"/>
<target>
<reference value="PackagedProductDefinition/omitted-on-purpose"/>
</target>
<occurredDateTime value="2021-03-29T10:10:00Z"/>
<recorded value="2021-03-30T10:10:00Z"/>
<reason>
<coding>
<system value="https://spor.ema.europa.eu/v1/lists/100000152091"/>
<code value="100000152447"/>
<display value="_Redacted out_"/>
</coding>
</reason>
<!-- what sort of change (edit, add) -->
<activity>
<coding>
<system value="https://terminology.hl7.org/CodeSystem/v3-DataOperation"/>
<code value="CREATE"/>
</coding>
</activity>
<agent>
<who>
<reference value="PractitionerRole/applicant-person-id"/>
</who>
</agent>
</Provenance>
</resource>
</entry>
</Bundle> In my case (R5, version 3.4.0) this unit test is succeeding. I suspect you are using other resource resolvers as well, maybe that's creating the errors. In other words: what are you doing different from me? |
Beta Was this translation helpful? Give feedback.
Hi @mtomorowicz,
I tried to reproduce your validation error with the following unit test: