/// <summary> /// Gets back a resource from a definition file. /// </summary> /// <typeparam name="T">The resource type.</typeparam> /// <param name="fileName">The JSON filename, omit the extension</param> public static Bundle GetDefinition(string fileName) { var json = EmbeddedResourceManager.GetStringContent(EmbeddedResourceSubNamespace, fileName, "json"); var parser = new Hl7.Fhir.Serialization.FhirJsonParser(); return((Bundle)parser.Parse(json, typeof(Bundle))); }
public static string GetXml(string fileName) { return(EmbeddedResourceManager.GetStringContent(EmbeddedResourceSubNamespace, fileName, "xml")); }
public static string GetNdJson(string fileName) { return(EmbeddedResourceManager.GetStringContent(EmbeddedResourceSubNamespace, fileName, "ndjson")); }