private ITypedElement GetTestElement(string fileName) { var fhirConfiguration = new FhirServerConfiguration() { Version = FhirVersion.R4, }; var fhirParser = new FhirSerializer(Options.Create(fhirConfiguration)); return(fhirParser.DeserializeToElement(File.ReadAllText(fileName))); }
public static ITypedElement GetBundleElementFromFile(string filePath) { var bundleContent = GetBundleFromFile(filePath); var fhirConfiguration = new FhirServerConfiguration() { Version = FhirVersion.R4, }; var fhirSerializer = new FhirSerializer(Options.Create(fhirConfiguration)); return(fhirSerializer.DeserializeToElement(bundleContent)); }