forked from ashankland/prior-auth
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added parallel support for $match and $idi-match operations. Added va…
…lidation options for match operation for incoming Patient resource
- Loading branch information
1 parent
7b3fb39
commit 07dd74d
Showing
8 changed files
with
334 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
325 changes: 253 additions & 72 deletions
325
src/main/java/ca/uhn/fhir/jpa/starter/operations/IdentityMatching.java
Large diffs are not rendered by default.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
src/main/java/ca/uhn/fhir/jpa/starter/operations/models/IdentityMatchParams.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package ca.uhn.fhir.jpa.starter.operations.models; | ||
|
||
import org.hl7.fhir.r4.model.BooleanType; | ||
import org.hl7.fhir.r4.model.IntegerType; | ||
import org.hl7.fhir.r4.model.Patient; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
public class IdentityMatchParams { | ||
|
||
@Getter @Setter | ||
Patient patient; | ||
|
||
@Getter @Setter | ||
BooleanType onlyCertainMatches = new BooleanType(false); | ||
|
||
@Getter @Setter | ||
IntegerType count; | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/ca/uhn/fhir/jpa/starter/operations/models/IdentityMatchValidationLevel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package ca.uhn.fhir.jpa.starter.operations.models; | ||
|
||
|
||
/** | ||
* The level of validation to perform on the Patient resource parameter when performing an identity match operation | ||
*/ | ||
public enum IdentityMatchValidationLevel { | ||
|
||
/** | ||
* Requires that the Patient validates against an IDI-Patient profile specified in the meta.profile field. | ||
* If no profile is provided, the Patient will be validated against the base IDI-Patient profile: | ||
* http://hl7.org/fhir/us/identity-matching/StructureDefinition/IDI-Patient | ||
*/ | ||
DEFAULT, | ||
|
||
/** | ||
* Validate the Patient resource against the most restrictive IDI-Patient profile specified in the meta.profile field. | ||
* If an expected IDI-Patient profile is not found, the validation will fail. | ||
*/ | ||
META_PROFILE, | ||
|
||
/** | ||
* Do not perform any validation of the Patient resource | ||
*/ | ||
NONE | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters