public string[] IndexAllResources() { var indexAllResourcesResult = FHIRbase.Call("fhir.index_all_resources") .Cast <string[]>(); return(indexAllResourcesResult); }
public long DropAllResourceIndexes() { var dropAllResourceIndexesResult = FHIRbase.Call("fhir.drop_all_resource_indexes") .Cast <long>(); return(dropAllResourceIndexesResult); }
/// <summary> /// Generate tables for DSTU2 resources /// </summary> /// <returns></returns> public string GenerateTables() { var result = FHIRbase.Call("fhir.generate_tables") .Cast <string>(); return(result); }
public bool IsExists(string resourceName, string id) { return(FHIRbase.Call("fhir.is_exists") .WithText(resourceName) .WithText(id) .Cast <bool>()); }
public bool IsDeleted(ResourceKey key) { return(FHIRbase.Call("fhir.is_deleted") .WithText(key.TypeName) .WithText(key.ResourceId) .Cast <bool>()); }
public string AdminDiskUsageTop(int limit) { var adminDiskUsageTopResult = FHIRbase.Call("fhir.admin_disk_usage_top") .WithInt(limit) .Cast <string>(); return(adminDiskUsageTopResult); }
/// <summary> /// Generate tables for resources /// </summary> /// <param name="resources"></param> /// <returns></returns> public string GenerateTables(params string[] resources) { var result = FHIRbase.Call("fhir.generate_tables") .WithTextArray(resources) .Cast <string>(); return(result); }
public string[] IndexResource(string resource) { var indexResiurceResult = FHIRbase.Call("fhir.index_resource") .WithText(resource) .Cast <string[]>(); return(indexResiurceResult); }
/// <summary> /// Create FHIR-conformance /// </summary> /// <param name="cfg"></param> /// <returns>JSON with conformance</returns> public Conformance Conformance(string cfg = "{}") { var conformanceResult = FHIRbase.Call("fhir.conformance") .WithJsonb(cfg) .Cast <string>(); return((Conformance)FHIRbaseHelper.JsonToFhirResource(conformanceResult)); }
public long DropResourceIndexes(string resource) { var dropResourceIndexesResult = FHIRbase.Call("fhir.drop_resource_indexes") .WithText(resource) .Cast <long>(); return(dropResourceIndexesResult); }
public Resource Create(Resource entry) { var resourceJson = FHIRbaseHelper.FhirResourceToJson(entry); var resource = FHIRbase.Call("fhir.create") .WithJsonb(resourceJson) .Cast <string>(); return(FHIRbaseHelper.JsonToFhirResource(resource)); }
public long DropIndexSearchParams(string resource, string name) { var dropIndexSearchParamsResult = FHIRbase.Call("fhir.drop_index_search_param") .WithText(resource) .WithText(name) .Cast <long>(); return(dropIndexSearchParamsResult); }
public string IndexSearchParam(string resource, string name) { var indexSearchParamsResult = FHIRbase.Call("fhir.index_search_param") .WithText(resource) .WithText(name) .Cast <string>(); return(indexSearchParamsResult); }
public Bundle Transaction(Bundle bundle) { var transactionJson = FHIRbaseHelper.FhirResourceToJson(bundle); var fhirbaseResult = FHIRbase.Call("fhir.transaction") .WithJsonb(transactionJson) .Cast <string>(); return(FHIRbaseHelper.JsonToBundle(fhirbaseResult)); }
public StructureDefinition StructureDefinition(string resourceName, string cfg = "{}") { var sdResult = FHIRbase.Call("fhir.structuredefinition") .WithJsonb(cfg) .WithText(resourceName) .Cast <string>(); return((StructureDefinition)FHIRbaseHelper.JsonToFhirResource(sdResult)); }
public Resource Read(ResourceKey key) { var readedResponse = FHIRbase.Call("fhir.read") .WithText(key.TypeName) .WithText(key.ResourceId) .Cast <string>(); return(FHIRbaseHelper.JsonToFhirResource(readedResponse)); }
public Resource Update(Resource resource) { var resourceJson = FHIRbaseHelper.FhirResourceToJson(resource); var updateResponse = FHIRbase.Call("fhir.update") .WithJsonb(resourceJson) .Cast <string>(); return(FHIRbaseHelper.JsonToFhirResource(updateResponse)); }
public Resource Delete(ResourceKey key) { var deletedResponse = FHIRbase.Call("fhir.delete") .WithText(key.TypeName) .WithText(key.ResourceId) .Cast <string>(); return(FHIRbaseHelper.JsonToFhirResource(deletedResponse)); }
public bool IsLatest(ResourceKey key) { var result = FHIRbase.Call("fhir.is_latest") .WithText(key.TypeName) .WithText(key.ResourceId) .WithText(key.VersionId) .Cast <bool>(); return(result); }
public Bundle History(HistoryParameters parameters = null) { if (parameters == null) { parameters = new HistoryParameters(); } var historyResponse = FHIRbase.Call("fhir.history") .WithText(parameters.ToString()) .Cast <string>(); return(FHIRbaseHelper.JsonToBundle(historyResponse)); }
public Bundle Search(string resource, SearchParameters parameters) { if (parameters == null) { parameters = new SearchParameters(); } var searchQuery = parameters.ToString(); var searchResult = FHIRbase.Call("fhir.search") .WithText(resource) .WithText(searchQuery) .Cast <string>(); return(FHIRbaseHelper.JsonToBundle(searchResult)); }