コード例 #1
0
ファイル: FhirService.cs プロジェクト: HowardEdidin/spark
        public Bundle History(string collection, DateTimeOffset?since)
        {
            RequestValidator.ValidateCollectionName(collection);
            if (since == null)
            {
                since = DateTimeOffset.MinValue;
            }
            string  title = String.Format("Full server-wide history for updates since {0}", since);
            RestUrl self  = new RestUrl(this.Endpoint).AddPath(collection, RestOperation.HISTORY);

            IEnumerable <BundleEntry> entries = _store.ListVersionsInCollection(collection, since, Const.MAX_HISTORY_RESULT_SIZE);
            Bundle bundle = BundleEntryFactory.CreateBundleWithEntries(title, self.Uri, Const.AUTHOR, Settings.AuthorUri, entries);

            return(exportPagedBundle(bundle));
        }