toggle menu
OpenSRP
androidJvm
switch theme
search in API
engine
/
org.smartregister.fhircore.engine.data.remote.fhir.resource
/
FhirResourceDataSource
Fhir
Resource
Data
Source
class
FhirResourceDataSource
@
Inject
constructor
(
resourceService
:
FhirResourceService
)
Interact with HAPI FHIR server
Members
Constructors
Fhir
Resource
Data
Source
Link copied to clipboard
@
Inject
constructor
(
resourceService
:
FhirResourceService
)
Functions
delete
Link copied to clipboard
suspend
fun
delete
(
resourceType
:
String
,
resourceId
:
String
)
:
OperationOutcome
get
Resource
Link copied to clipboard
suspend
fun
getResource
(
path
:
String
)
:
Bundle
get
Resource
With
Gateway
Mode
Header
Link copied to clipboard
suspend
fun
getResourceWithGatewayModeHeader
(
gatewayModeHeaderValue
:
String
,
path
:
String
)
:
Bundle
insert
Link copied to clipboard
suspend
fun
insert
(
resourceType
:
String
,
resourceId
:
String
,
payload
:
String
)
:
Resource
post
Link copied to clipboard
suspend
fun
post
(
path
:
String
=
""
,
requestBody
:
RequestBody
)
:
Bundle
search
Link copied to clipboard
suspend
fun
search
(
resourceType
:
String
,
searchParameters
:
Map
<
String
,
String
>
)
:
Bundle
update
Link copied to clipboard
suspend
fun
update
(
resourceType
:
String
,
resourceId
:
String
,
payload
:
String
)
:
OperationOutcome