FhirResourceDataSource

class FhirResourceDataSource @Inject constructor(resourceService: FhirResourceService)

Interact with HAPI FHIR server

Constructors

Link copied to clipboard
@Inject
constructor(resourceService: FhirResourceService)

Functions

Link copied to clipboard
suspend fun delete(resourceType: String, resourceId: String): OperationOutcome
Link copied to clipboard
suspend fun getResource(path: String): Bundle
Link copied to clipboard
suspend fun getResourceWithGatewayModeHeader(gatewayModeHeaderValue: String, path: String): Bundle
Link copied to clipboard
suspend fun insert(resourceType: String, resourceId: String, payload: String): Resource
Link copied to clipboard
suspend fun post(path: String = "", requestBody: RequestBody): Bundle
Link copied to clipboard
suspend fun search(resourceType: String, searchParameters: Map<String, String>): Bundle
Link copied to clipboard
suspend fun update(resourceType: String, resourceId: String, payload: String): OperationOutcome