Class DefaultMemberMatchStrategy
- java.lang.Object
-
- com.ibm.fhir.operation.davinci.hrex.provider.strategy.AbstractMemberMatch
-
- com.ibm.fhir.operation.davinci.hrex.provider.strategy.DefaultMemberMatchStrategy
-
- All Implemented Interfaces:
MemberMatchStrategy
public class DefaultMemberMatchStrategy extends AbstractMemberMatch
Per the HREX IG, the $member-match operation does the following: 1. HealthPlan (Linked) makes a request to $member-match with: - demographic details - coverage to match - coverage to link (e.g. the HealthPlan that is to be enrolled or currently enrolled) 2. HealthPlan (Match) checks the incoming Parameters validates against the profile. 3. HealthPlan (Match) executes a local Search to find the Coverage 4. HealhPlan (Match) (optionally) augments the Coverage details on the local system with a LINK.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultMemberMatchStrategy.GetPatientIdentifierGets the FIRST Patient Identifier.static classDefaultMemberMatchStrategy.MemberMatchCovergeSearchCompilerCompiles the Coverage Search for the Patient.static classDefaultMemberMatchStrategy.MemberMatchPatientSearchCompilerEnables the Processing of a Patient Resource into a MultivaluedMap, which is subsequently used for the Search Operation.
-
Constructor Summary
Constructors Constructor Description DefaultMemberMatchStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberMatchResultexecuteMemberMatch()StringgetMemberMatchIdentifier()used to uniquely identify the strategy.voidvalidate(Parameters input)validates the contents and type of the member matchvoidvalidateResource(FHIRValidator validator, Class<? extends Resource> cls, Resource resource, String profile)validates the resource (we do this as we don't yet support nested discriminators)-
Methods inherited from class com.ibm.fhir.operation.davinci.hrex.provider.strategy.AbstractMemberMatch
execute, output, resourceHelper, returnMultipleMatchesException, returnNoMatchException, setFHIROperationContext
-
-
-
-
Method Detail
-
getMemberMatchIdentifier
public String getMemberMatchIdentifier()
Description copied from interface:MemberMatchStrategyused to uniquely identify the strategy.- Returns:
- the member match strategy identifier
-
validate
public void validate(Parameters input) throws FHIROperationException
Description copied from class:AbstractMemberMatchvalidates the contents and type of the member match- Specified by:
validatein classAbstractMemberMatch- Parameters:
input- to the MemberMatchOperation- Throws:
FHIROperationException
-
validateResource
public void validateResource(FHIRValidator validator, Class<? extends Resource> cls, Resource resource, String profile) throws FHIROperationException
validates the resource (we do this as we don't yet support nested discriminators)- Parameters:
cls-resource-profile-- Throws:
FHIROperationException
-
executeMemberMatch
public MemberMatchResult executeMemberMatch() throws FHIROperationException
- Specified by:
executeMemberMatchin classAbstractMemberMatch- Throws:
FHIROperationException- indicating a MemberMatch execution Error
-
-