Class DefaultMemberMatchStrategy
- java.lang.Object
-
- org.linuxforhealth.fhir.operation.davinci.hrex.provider.strategy.AbstractMemberMatch
-
- org.linuxforhealth.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 class
DefaultMemberMatchStrategy.GetPatientIdentifier
Gets the FIRST Patient Identifier.static class
DefaultMemberMatchStrategy.MemberMatchCovergeSearchCompiler
Compiles the Coverage Search for the Patient.static class
DefaultMemberMatchStrategy.MemberMatchPatientSearchCompiler
Enables 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 MemberMatchResult
executeMemberMatch()
java.lang.String
getMemberMatchIdentifier()
used to uniquely identify the strategy.void
validate(Parameters input)
validates the contents and type of the member matchvoid
validateResource(FHIRValidator validator, java.lang.Class<? extends Resource> cls, Resource resource, java.lang.String profile)
validates the resource (we do this as we don't yet support nested discriminators)-
Methods inherited from class org.linuxforhealth.fhir.operation.davinci.hrex.provider.strategy.AbstractMemberMatch
execute, output, resourceHelper, returnMultipleMatchesException, returnNoMatchException, setFHIROperationContext
-
-
-
-
Method Detail
-
getMemberMatchIdentifier
public java.lang.String getMemberMatchIdentifier()
Description copied from interface:MemberMatchStrategy
used to uniquely identify the strategy.- Returns:
- the member match strategy identifier
-
validate
public void validate(Parameters input) throws FHIROperationException
Description copied from class:AbstractMemberMatch
validates the contents and type of the member match- Specified by:
validate
in classAbstractMemberMatch
- Parameters:
input
- to the MemberMatchOperation- Throws:
FHIROperationException
-
validateResource
public void validateResource(FHIRValidator validator, java.lang.Class<? extends Resource> cls, Resource resource, java.lang.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:
executeMemberMatch
in classAbstractMemberMatch
- Throws:
FHIROperationException
- indicating a MemberMatch execution Error
-
-