Example #1
0
        public Bundle AllResourcesHistory(HistoryParameters parameters = null)
        {
            if (parameters == null)
            {
                parameters = HistoryParameters.Empty;
            }

            var historyResponse = _context.Call(FhirSchema.Name, FhirSchema.Func.InstanceHistory)
                .WithString(parameters.ToString())
                .Cast<String>();

            var resultBundle = ResourceDataHelper.JsonToBundle(historyResponse);

            return resultBundle;
        }
Example #2
0
        public static HistoryParameters Count(this HistoryParameters parameters, int count)
        {
            parameters.Count = count;

            return(parameters);
        }
Example #3
0
        public Bundle ResourceTypeHistory(string resourceType, HistoryParameters parameters = null)
        {
            if (parameters == null)
            {
                parameters = HistoryParameters.Empty;
            }

            var request = new HistoryRequest()
            {
                ResourceType = resourceType,
                Query = parameters.ToString()
            };

            var historyResponse = _context.Call(FhirSchema.Name, FhirSchema.Func.TypeHistory)
                .WithJson(request.ToJson())
                .Cast<String>();

            var resultBundle = ResourceDataHelper.JsonToBundle(historyResponse);

            return resultBundle;
        }
Example #4
0
        public static HistoryParameters Since(this HistoryParameters parameters, int since)
        {
            parameters.Since = since;

            return(parameters);
        }