Пример #1
0
        public Boolean IsDeleted(ResourceKey key)
        {
            throw new NotSupportedException();

            //return _context.Call(FhirSchema.Name, FhirSchema.Func.IsDeleted)
            //    .WithString(key.ResourceType)
            //    .WithString(key.ID)
            //    .Cast<Boolean>();
        }
Пример #2
0
        public Resource Delete(ResourceKey key)
        {
            var resourceJson = _context
                .Call(FhirSchema.Name, FhirSchema.Func.Delete)
                .WithJson(key.ToJson())
                .Cast<String>();

            var deletedResource = ResourceDataHelper.JsonToFhirResource(resourceJson);

            return deletedResource;
        }
Пример #3
0
        public Boolean IsExists(ResourceKey key)
        {
            var resource = Read(key);

            return resource != null;
        }
Пример #4
0
        public Resource VersionRead(ResourceKey key)
        {
            var resourceJson = _context
                .Call(FhirSchema.Name, FhirSchema.Func.VRead)
                .WithJson(key.ToJson())
                .Cast<String>();

            var resource = ResourceDataHelper.JsonToFhirResource(resourceJson);

            return resource;
        }
Пример #5
0
        public Boolean IsLatest(ResourceKey key)
        {
            throw new NotSupportedException();

            //var result = _context.Call(FhirSchema.Name, FhirSchema.Func.IsLatest)
            //   .WithString(key.ResourceType)
            //   .WithString(key.ID)
            //   .WithString(key.VersionID)
            //   .Cast<Boolean>();

            //return result;
        }
Пример #6
0
 public static T Delete <T>(this IFhirbaseStore store, ResourceKey key) where T : Resource
 {
     return((T)store.Delete(key));
 }
Пример #7
0
 public static T VersionRead <T>(this IFhirbaseStore store, ResourceKey key) where T : Resource
 {
     return((T)store.VersionRead(key));
 }
Пример #8
0
        public Boolean IsExists(ResourceKey key)
        {
            var resource = Read(key);

            return(resource != null);
        }