Package com.ibm.fhir.persistence
Class SingleResourceResult<T extends Resource>
- java.lang.Object
-
- com.ibm.fhir.persistence.SingleResourceResult<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSingleResourceResult.Builder<T extends Resource>
-
Field Summary
Fields Modifier and Type Field Description (package private) OperationOutcomeoutcome(package private) Tresource(package private) booleansuccess
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationOutcomegetOutcome()An OperationOutcome that represents the outcome of the interactionTgetResource()The resource resulting from the interactionbooleanisSuccess()Whether or not the interaction was successful
-
-
-
Field Detail
-
success
final boolean success
-
outcome
final OperationOutcome outcome
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
Whether or not the interaction was successful- Returns:
- whether the interaction was successful
-
getResource
public T getResource()
The resource resulting from the interaction- Returns:
- An immutable object of type
Resource.
-
getOutcome
public OperationOutcome getOutcome()
An OperationOutcome that represents the outcome of the interaction- Returns:
- An immutable object of type
OperationOutcome
-
-