Class AbstractMemberMatch
- java.lang.Object
-
- org.linuxforhealth.fhir.operation.davinci.hrex.provider.strategy.AbstractMemberMatch
-
- All Implemented Interfaces:
MemberMatchStrategy
- Direct Known Subclasses:
DefaultMemberMatchStrategy
public abstract class AbstractMemberMatch extends java.lang.Object implements MemberMatchStrategy
The MemberMatch Strategy Template which controls the order of processing of the methods and provides integral logic for MemberMatch.
-
-
Constructor Summary
Constructors Constructor Description AbstractMemberMatch()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Parameters
execute(FHIROperationContext ctx, Parameters input, FHIRResourceHelpers resourceHelper)
takes a set of input parameters(package private) abstract MemberMatchResult
executeMemberMatch()
Parameters
output(MemberMatchResult result)
Translates the output to ParametersFHIRResourceHelpers
resourceHelper()
Get the resource helpers.void
returnMultipleMatchesException()
Generates the multiple-match exception.void
returnNoMatchException()
Generates the no-match exception.void
setFHIROperationContext(FHIROperationContext ctx)
sets the context used in the MemberMatch.(package private) abstract void
validate(Parameters input)
validates the contents and type of the member match-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.linuxforhealth.fhir.operation.davinci.hrex.provider.strategy.MemberMatchStrategy
getMemberMatchIdentifier
-
-
-
-
Method Detail
-
execute
public final Parameters execute(FHIROperationContext ctx, Parameters input, FHIRResourceHelpers resourceHelper) throws FHIROperationException
Description copied from interface:MemberMatchStrategy
takes a set of input parameters- Specified by:
execute
in interfaceMemberMatchStrategy
- Returns:
- Throws:
FHIROperationException
-
resourceHelper
public FHIRResourceHelpers resourceHelper()
Get the resource helpers.- Returns:
-
setFHIROperationContext
public void setFHIROperationContext(FHIROperationContext ctx)
sets the context used in the MemberMatch.- Parameters:
ctx
-
-
output
public final Parameters output(MemberMatchResult result)
Translates the output to Parameters- Parameters:
result
- of the MemberMatch execution- Returns:
- output Parameters object
-
returnNoMatchException
public final void returnNoMatchException()
Generates the no-match exception.
-
returnMultipleMatchesException
public final void returnMultipleMatchesException()
Generates the multiple-match exception.
-
executeMemberMatch
abstract MemberMatchResult executeMemberMatch() throws FHIROperationException
- Throws:
FHIROperationException
- indicating a MemberMatch execution Error
-
validate
abstract void validate(Parameters input) throws FHIROperationException
validates the contents and type of the member match- Parameters:
input
- to the MemberMatchOperation- Throws:
FHIROperationException
-
-