コード例 #1
0
        private IList <Interaction> GetIncludesFor(IList <Interaction> interactions, IEnumerable <string> includes)
        {
            if (includes == null)
            {
                return(new List <Interaction>());
            }

            IEnumerable <string> paths       = includes.SelectMany(i => IncludeToPath(i));
            IList <string>       identifiers = interactions.GetResources().GetReferences(paths).Distinct().ToList();

            IList <Interaction> entries = fhirStore.GetCurrent(identifiers, null).ToList();

            return(entries);
        }