Class MeasureCollectDataOperation
- java.lang.Object
-
- org.linuxforhealth.fhir.server.spi.operation.AbstractOperation
-
- org.linuxforhealth.fhir.operation.cqf.AbstractMeasureOperation
-
- org.linuxforhealth.fhir.operation.cqf.EvaluateMeasureOperation
-
- org.linuxforhealth.fhir.operation.cqf.MeasureCollectDataOperation
-
- All Implemented Interfaces:
FHIROperation
public class MeasureCollectDataOperation extends EvaluateMeasureOperation
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PARAM_OUT_MEASURE_REPORT
static java.lang.String
PARAM_OUT_RESOURCE
-
Fields inherited from class org.linuxforhealth.fhir.operation.cqf.EvaluateMeasureOperation
PARAM_IN_MEASURE, PARAM_IN_PRACTITIONER, PARAM_IN_REPORT_TYPE, PARAM_IN_SUBJECT, PARAM_OUT_RETURN
-
Fields inherited from class org.linuxforhealth.fhir.operation.cqf.AbstractMeasureOperation
CQL_PARAM_MEASUREMENT_PERIOD, PARAM_IN_PERIOD_END, PARAM_IN_PERIOD_START
-
Fields inherited from class org.linuxforhealth.fhir.server.spi.operation.AbstractOperation
definition
-
-
Constructor Summary
Constructors Constructor Description MeasureCollectDataOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addEvaluatedResourcesToParameters(Bundle contained, Parameters.Builder parameters, FHIRResourceHelpers resourceHelper)
protected OperationDefinition
buildOperationDefinition()
protected 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 void
resolveReferences(Resource resource, Parameters.Builder parameters, java.util.Map<java.lang.String,Resource> resourceMap, FHIRResourceHelpers resourceHelper)
Loop through all the data elements of the structure looking for things that are references.-
Methods inherited from class org.linuxforhealth.fhir.operation.cqf.EvaluateMeasureOperation
getPractitioner, getReportType, getSubject
-
Methods inherited from class org.linuxforhealth.fhir.operation.cqf.AbstractMeasureOperation
doMeasureEvaluation, getMeasurementPeriod, getRetrieveProvider, getTerminologyProvider, getZoneOffset
-
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
-
PARAM_OUT_MEASURE_REPORT
public static final java.lang.String PARAM_OUT_MEASURE_REPORT
- See Also:
- Constant Field Values
-
PARAM_OUT_RESOURCE
public static final java.lang.String PARAM_OUT_RESOURCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildOperationDefinition
protected OperationDefinition buildOperationDefinition()
- Overrides:
buildOperationDefinition
in classEvaluateMeasureOperation
-
doInvoke
protected 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.- Overrides:
doInvoke
in classEvaluateMeasureOperation
- Returns:
- the Parameters object to return or null if there is no response Parameters object to return
- Throws:
FHIROperationException
-
addEvaluatedResourcesToParameters
protected void addEvaluatedResourcesToParameters(Bundle contained, Parameters.Builder parameters, FHIRResourceHelpers resourceHelper) throws FHIROperationException
- Throws:
FHIROperationException
-
resolveReferences
protected void resolveReferences(Resource resource, Parameters.Builder parameters, java.util.Map<java.lang.String,Resource> resourceMap, FHIRResourceHelpers resourceHelper) throws FHIROperationException
Loop through all the data elements of the structure looking for things that are references. Pull in each referenced resource and add it to the output.- Throws:
FHIROperationException
-
-