public static async Task <byte[]> ToXmlBytesAsync(this ITypedElement source, FhirXmlSerializationSettings settings = null) => await SerializationUtil.WriteXmlToBytesAsync(async writer => await source.WriteToAsync(writer, settings).ConfigureAwait(false)).ConfigureAwait(false);