Example #1
0
        public static IEnumerable <Tuple <string, string> > GetHeaders(this Bundle.BundleEntryResponseComponent interaction)
        {
            foreach (var headerExt in interaction.GetExtensions(EXTENSION_RESPONSE_HEADER))
            {
                if (headerExt.Value != null && headerExt.Value is FhirString)
                {
                    var header = ((FhirString)headerExt.Value).Value;

                    if (header != null)
                    {
                        yield return(header.SplitLeft(':'));
                    }
                }
            }
        }