Click or drag to resize

ResourceHandlerBaseTFhirResource, TModelUpdate(String, Resource, TransactionMode) Method

Updates the specified resource with new data in resource

Namespace: SanteDB.Messaging.FHIR.Handlers
Assembly: SanteDB.Messaging.FHIR (in SanteDB.Messaging.FHIR.dll) Version: 3.0.2081-alpha+4e2291b954f20d29cba15591683155ca851b26eb
Syntax
public Resource Update(
	string id,
	Resource resource,
	TransactionMode mode
)

Parameters

id  String
The identifier of the resource to update
resource  Resource
The The resource to update
mode  TransactionMode
The mode of update (commit or rollback)

Return Value

Resource
Returns the FHIR operation result containing the updated resource.

Implements

IFhirResourceHandlerUpdate(String, Resource, TransactionMode)
Exceptions
ExceptionCondition
ArgumentNullExceptionThe resource has not been passed to the function
InvalidDataExceptionThe resource is not valid according to its business constraints
ArgumentExceptionThe resource or id are in an invalid format
AmbiguousMatchExceptionThere are multiple resources which could be the target of this update
KeyNotFoundExceptionThe specified resource could not be found
See Also