FhirResourceService

Retrofit Service for communication with HAPI FHIR server. Used for querying FHIR Resources

Functions

Link copied to clipboard
@DELETE(value = "{resourceType}/{id}")
abstract suspend fun deleteResource(@Path(value = "resourceType") resourceType: String, @Path(value = "id") id: String): OperationOutcome
Link copied to clipboard
@GET
abstract suspend fun fetchImage(@Url url: String): ResponseBody?
Link copied to clipboard
@GET
abstract suspend fun getResource(@Url url: String): Bundle
Link copied to clipboard
@GET
abstract suspend fun getResourceWithGatewayModeHeader(@Header(value = "FHIR-Gateway-Mode") fhirGatewayMode: String? = null, @Url url: String): Bundle
Link copied to clipboard
@PUT(value = "{resourceType}/{id}")
abstract suspend fun insertResource(@Path(value = "resourceType") resourceType: String, @Path(value = "id") id: String, @Body body: RequestBody): Resource
Link copied to clipboard
@POST
abstract suspend fun post(@Url url: String, @Body body: RequestBody): Bundle
Link copied to clipboard
@GET(value = "{resourceType}/_search")
abstract suspend fun searchResource(@Path(value = "resourceType") resourceType: String, @QueryMap(encoded = false) searchParameters: Map<String, String>): Bundle
Link copied to clipboard
@PATCH(value = "{resourceType}/{id}")
abstract suspend fun updateResource(@Path(value = "resourceType") resourceType: String, @Path(value = "id") id: String, @Body body: RequestBody): OperationOutcome