I would like to validate a FHIR resource using .NET API and the resource has to confirm to US Core structure definition (profile). I looked at Furore.Fhir.Validation.Demo code, but I am not sure how to modify the code in order for the validation to be successful. I want be be able to input a resource such as https://www.hl7.org/fhir/us/core/AllergyIntolerance-example.json.html and have the validator return success.
var ctx = new ValidationSettings()
var validator = new Validator(ctx); var result = validator.Validate(data);