Stream: implementers
Topic: Create Snapshot profile
Odd A. S. Dahl (Dec 08 2016 at 13:32):
Hi. We are trying to validate sample messages that conform to our FHIR profiles using the Furore validator tool for .NET, but it seems the version we have requires the profiles are self contained (snapshots). Here is the error message:
<OperationOutcome xmlns="http://hl7.org/fhir">
<issue>
<severity value="error" />
<code value="incomplete" />
<details>
<coding>
<system value="http://hl7.org/fhir/dotnet-api-operation-outcome" />
<code value="4002" />
</coding>
<text value="Profile 'http://helse-nord.no/FHIR/profiles/Workflow.Notification/CommunicationRequest' does not include a snapshot." />
</details>
<location value="CommunicationRequest" />
</issue>
</OperationOutcome>
Is there a straight forward approach to export a profile with the snapshot information? Some of the profiles on Simplifier contain snapshot information, but it seems to not be included in the Forge tool. @Jon-Vidar Schneider
Odd A. S. Dahl (Dec 08 2016 at 14:44):
We found a global property in the Forge that saves all the profiles as snapshots ("Options > Save snapshot component"), so problem solved.
Ewout Kramer (Dec 09 2016 at 13:28):
Yes, but alternatively (and more robust, since you might want to use profiles from others that you don't have control over), the Validator constructor accepts a settings object which allows you to configure the snapshot behaviour:
var ctx = new ValidationSettings() { ResourceResolver = _source, GenerateSnapshot = true, EnableXsdValidation = true, Trace = false, ResolveExteralReferences = true };
In which case the validator will generate snapshot for any profiles encountered that don't have one.
Last updated: Apr 12 2022 at 19:14 UTC