Package com.ibm.fhir.operation.term
Class AbstractTermOperation
- java.lang.Object
-
- com.ibm.fhir.server.operation.spi.AbstractOperation
-
- com.ibm.fhir.operation.term.AbstractTermOperation
-
- All Implemented Interfaces:
FHIROperation
- Direct Known Subclasses:
ClosureOperation
,CodeSystemValidateCodeOperation
,ExpandOperation
,LookupOperation
,SubsumesOperation
,TranslateOperation
,ValueSetValidateCodeOperation
public abstract class AbstractTermOperation extends AbstractOperation
-
-
Field Summary
Fields Modifier and Type Field Description protected FHIRTermService
service
-
Fields inherited from class com.ibm.fhir.server.operation.spi.AbstractOperation
definition
-
-
Constructor Summary
Constructors Constructor Description AbstractTermOperation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract OperationDefinition
buildOperationDefinition()
protected abstract Parameters
doInvoke(FHIROperationContext operationContext, Class<? extends Resource> resourceType, String logicalId, String versionId, Parameters parameters, FHIRResourceHelpers resourceHelper)
This is the method that concrete subclasses must implement to perform the operation logic.protected Element
getCodedElement(Parameters parameters, String codeableConceptParameterName, String codingParameterName, String codeParameterName)
protected Element
getCodedElement(Parameters parameters, String codeableConceptParameterName, String codingParameterName, String codeParameterName, boolean systemRequired)
protected Coding
getCoding(Parameters parameters, String codingParameterName, String codeParameterName)
protected Coding
getCoding(Parameters parameters, String codingParameterName, String codeParameterName, boolean systemRequired)
protected <T extends Resource>
TgetResource(FHIROperationContext operationContext, String logicalId, Parameters parameters, FHIRResourceHelpers resourceHelper, Class<T> resourceType)
-
Methods inherited from class com.ibm.fhir.server.operation.spi.AbstractOperation
buildExceptionWithIssue, buildExceptionWithIssue, countParameters, findOpDefParameter, getDefinition, getName, getParameter, getParameterDefinitions, getParameters, getResourceTypeNames, invoke, validateInputParameters, validateOperationContext, validateOutputParameters, validateParameters
-
-
-
-
Field Detail
-
service
protected final FHIRTermService service
-
-
Method Detail
-
buildOperationDefinition
protected abstract OperationDefinition buildOperationDefinition()
- Specified by:
buildOperationDefinition
in classAbstractOperation
-
doInvoke
protected abstract Parameters doInvoke(FHIROperationContext operationContext, Class<? extends Resource> resourceType, String logicalId, String versionId, Parameters parameters, FHIRResourceHelpers resourceHelper) throws FHIROperationException
Description copied from class:AbstractOperation
This is the method that concrete subclasses must implement to perform the operation logic.- Specified by:
doInvoke
in classAbstractOperation
- Returns:
- The Parameters object to return or null if there is no response Parameters object to return
- Throws:
FHIROperationException
-
getResource
protected <T extends Resource> T getResource(FHIROperationContext operationContext, String logicalId, Parameters parameters, FHIRResourceHelpers resourceHelper, Class<T> resourceType) throws Exception
- Throws:
Exception
-
getCodedElement
protected Element getCodedElement(Parameters parameters, String codeableConceptParameterName, String codingParameterName, String codeParameterName) throws FHIROperationException
- Throws:
FHIROperationException
-
getCodedElement
protected Element getCodedElement(Parameters parameters, String codeableConceptParameterName, String codingParameterName, String codeParameterName, boolean systemRequired) throws FHIROperationException
- Throws:
FHIROperationException
-
getCoding
protected Coding getCoding(Parameters parameters, String codingParameterName, String codeParameterName) throws FHIROperationException
- Throws:
FHIROperationException
-
getCoding
protected Coding getCoding(Parameters parameters, String codingParameterName, String codeParameterName, boolean systemRequired) throws FHIROperationException
- Throws:
FHIROperationException
-
-