Class AbstractTermOperation
- java.lang.Object
-
- org.linuxforhealth.fhir.server.spi.operation.AbstractOperation
-
- org.linuxforhealth.fhir.operation.term.AbstractTermOperation
-
- All Implemented Interfaces:
FHIROperation
- Direct Known Subclasses:
ClosureOperation
,CodeSystemClearCacheOperation
,CodeSystemValidateCodeOperation
,ExpandOperation
,LookupOperation
,SubsumesOperation
,TranslateOperation
,ValueSetClearCacheOperation
,ValueSetValidateCodeOperation
public abstract class AbstractTermOperation extends AbstractOperation
-
-
Field Summary
Fields Modifier and Type Field Description protected FHIRTermService
service
-
Fields inherited from class org.linuxforhealth.fhir.server.spi.operation.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, java.lang.Class<? extends Resource> resourceType, java.lang.String logicalId, java.lang.String versionId, Parameters parameters, FHIRResourceHelpers resourceHelper, SearchHelper searchHelper)
This is the method that concrete subclasses must implement to perform the operation logic.protected Element
getCodedElement(Parameters parameters, java.lang.String codeableConceptParameterName, java.lang.String codingParameterName, java.lang.String codeParameterName)
protected Element
getCodedElement(Parameters parameters, java.lang.String codeableConceptParameterName, java.lang.String codingParameterName, java.lang.String codeParameterName, boolean systemRequired)
protected Coding
getCoding(Parameters parameters, java.lang.String codingParameterName, java.lang.String codeParameterName)
protected Coding
getCoding(Parameters parameters, java.lang.String codingParameterName, java.lang.String codeParameterName, boolean systemRequired)
protected <T extends Resource>
TgetResource(FHIROperationContext operationContext, java.lang.String logicalId, Parameters parameters, FHIRResourceHelpers resourceHelper, java.lang.Class<T> resourceType)
-
Methods inherited from class org.linuxforhealth.fhir.server.spi.operation.AbstractOperation
buildExceptionWithIssue, buildExceptionWithIssue, countParameters, findOpDefParameter, getDefinition, getName, getParameter, getParameterDefinitions, getParameters, getResourceTypeNames, invoke, isAbstractResourceTypesDisallowed, isAdditionalMethodAllowed, 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, java.lang.Class<? extends Resource> resourceType, java.lang.String logicalId, java.lang.String versionId, Parameters parameters, FHIRResourceHelpers resourceHelper, SearchHelper searchHelper) 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, java.lang.String logicalId, Parameters parameters, FHIRResourceHelpers resourceHelper, java.lang.Class<T> resourceType) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getCodedElement
protected Element getCodedElement(Parameters parameters, java.lang.String codeableConceptParameterName, java.lang.String codingParameterName, java.lang.String codeParameterName) throws FHIROperationException
- Throws:
FHIROperationException
-
getCodedElement
protected Element getCodedElement(Parameters parameters, java.lang.String codeableConceptParameterName, java.lang.String codingParameterName, java.lang.String codeParameterName, boolean systemRequired) throws FHIROperationException
- Throws:
FHIROperationException
-
getCoding
protected Coding getCoding(Parameters parameters, java.lang.String codingParameterName, java.lang.String codeParameterName) throws FHIROperationException
- Throws:
FHIROperationException
-
getCoding
protected Coding getCoding(Parameters parameters, java.lang.String codingParameterName, java.lang.String codeParameterName, boolean systemRequired) throws FHIROperationException
- Throws:
FHIROperationException
-
-