public Boolean IsDeleted(ResourceKey key)
        {
            throw new NotSupportedException();

            //return _context.Call(FhirSchema.Name, FhirSchema.Func.IsDeleted)
            //    .WithString(key.ResourceType)
            //    .WithString(key.ID)
            //    .Cast<Boolean>();
        }
        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;
        }
        public Boolean IsExists(ResourceKey key)
        {
            var resource = Read(key);

            return resource != null;
        }
        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;
        }
        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;
        }
Exemple #6
0
 public static T Delete <T>(this IFhirbaseStore store, ResourceKey key) where T : Resource
 {
     return((T)store.Delete(key));
 }
Exemple #7
0
 public static T VersionRead <T>(this IFhirbaseStore store, ResourceKey key) where T : Resource
 {
     return((T)store.VersionRead(key));
 }
        public Boolean IsExists(ResourceKey key)
        {
            var resource = Read(key);

            return(resource != null);
        }