当前位置: 首页>>代码示例>>C#>>正文


C# Bundle.Append方法代码示例

本文整理汇总了C#中Hl7.Fhir.Model.Bundle.Append方法的典型用法代码示例。如果您正苦于以下问题:C# Bundle.Append方法的具体用法?C# Bundle.Append怎么用?C# Bundle.Append使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Hl7.Fhir.Model.Bundle的用法示例。


在下文中一共展示了Bundle.Append方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CreateBundle

        public Bundle CreateBundle(Snapshot snapshot, int start, int count)
        {
            Bundle bundle = new Bundle();
            bundle.Type = snapshot.Type;
            bundle.Total = snapshot.Count;
            bundle.Id = UriHelper.CreateUuid().ToString();

            IList<string> keys = snapshot.Keys.Skip(start).Take(count).ToList();
            IList<Interaction> interactions = store.Get(keys, snapshot.SortBy).ToList();
            transfer.Externalize(interactions);

            bundle.Append(interactions);

            Include(bundle, snapshot.Includes);
            BuildLinks(bundle, snapshot, start, count);

            return bundle;
        }
开发者ID:raysearchlabs,项目名称:spark,代码行数:18,代码来源:Pager.cs

示例2: WithBundle

 public static FhirResponse WithBundle(IEnumerable<Interaction> interactions, Uri serviceBase)
 {
     Bundle bundle = new Bundle();
     bundle.Append(interactions);
     return WithBundle(bundle, serviceBase);
 }
开发者ID:raysearchlabs,项目名称:spark,代码行数:6,代码来源:Respond.cs

示例3: CreateBundle

        public Bundle CreateBundle(Snapshot snapshot, int? start = null)
        {
            Bundle bundle = new Bundle();
            bundle.Type = snapshot.Type;
            bundle.Total = snapshot.Count;
            bundle.Id = UriHelper.CreateUuid().ToString();

            IEnumerable<string> keysInBundle = snapshot.Keys;
            if (start.HasValue)
            {
                keysInBundle = keysInBundle.Skip(start.Value);
            }

            IList<string> keys = keysInBundle.Take(snapshot.CountParam??DEFAULT_PAGE_SIZE).ToList();
            IList<Interaction> interactions = fhirStore.Get(keys, snapshot.SortBy).ToList();

            IList<Interaction> included = GetIncludesRecursiveFor(interactions, snapshot.Includes);
            interactions.Append(included);

            transfer.Externalize(interactions);
            bundle.Append(interactions);
            BuildLinks(bundle, snapshot, start);

            return bundle;
        }
开发者ID:Condeti,项目名称:spark,代码行数:25,代码来源:Pager.cs


注:本文中的Hl7.Fhir.Model.Bundle.Append方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。