Exemplo n.º 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);
        }
Exemplo n.º 2
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);
        }