本文整理汇总了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;
}
示例2: WithBundle
public static FhirResponse WithBundle(IEnumerable<Interaction> interactions, Uri serviceBase)
{
Bundle bundle = new Bundle();
bundle.Append(interactions);
return WithBundle(bundle, serviceBase);
}
示例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;
}