Class AbstractDataRequirementsOperation
- java.lang.Object
-
- org.linuxforhealth.fhir.server.spi.operation.AbstractOperation
-
- org.linuxforhealth.fhir.operation.cqf.AbstractDataRequirementsOperation
-
- All Implemented Interfaces:
FHIROperation
- Direct Known Subclasses:
LibraryDataRequirementsOperation
,MeasureDataRequirementsOperation
public abstract class AbstractDataRequirementsOperation extends AbstractOperation
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PARAM_OUT_RETURN
-
Fields inherited from class org.linuxforhealth.fhir.server.spi.operation.AbstractOperation
definition
-
-
Constructor Summary
Constructors Constructor Description AbstractDataRequirementsOperation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Parameters
doDataRequirements(java.util.List<Library> fhirLibraries)
Perform the data requirements operation for the provided list of Library resources.protected Parameters
doDataRequirements(java.util.List<Library> fhirLibraries, java.util.function.Supplier<java.util.List<RelatedArtifact>> additionalRelated)
Perform the data requirements operation for the provided list of Library resources.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.-
Methods inherited from class org.linuxforhealth.fhir.server.spi.operation.AbstractOperation
buildExceptionWithIssue, buildExceptionWithIssue, buildOperationDefinition, countParameters, findOpDefParameter, getDefinition, getName, getParameter, getParameterDefinitions, getParameters, getResourceTypeNames, invoke, isAbstractResourceTypesDisallowed, isAdditionalMethodAllowed, validateInputParameters, validateOperationContext, validateOutputParameters, validateParameters
-
-
-
-
Field Detail
-
PARAM_OUT_RETURN
public static final java.lang.String PARAM_OUT_RETURN
- See Also:
- Constant Field Values
-
-
Method Detail
-
doDataRequirements
protected Parameters doDataRequirements(java.util.List<Library> fhirLibraries)
Perform the data requirements operation for the provided list of Library resources.- Parameters:
fhirLibraries
- List of library resources.- Returns:
- Library data requirements
-
doDataRequirements
protected Parameters doDataRequirements(java.util.List<Library> fhirLibraries, java.util.function.Supplier<java.util.List<RelatedArtifact>> additionalRelated)
Perform the data requirements operation for the provided list of Library resources.- Parameters:
fhirLibraries
- List of library resources.additionalRelated
- Supplier of additional RelatedArtifacts that should be addeded to the generated data requirements.- Returns:
- Library data requirements
-
doInvoke
public 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
-
-