FHIR match operation is defined on Patient resource. Aidbox extends it to all resource types for which MDM is configured.
This operation finds all resources which match (i.e. are similar to) the given resource.
FHIR definition of the operation:
This operation translates to call. The RPC has simpler syntax and you can adjust threshold values. Consider using it if you are not required to use FHIR syntax.
To use $match operation you need to set up MDM. Read the to learn how to use it.
Syntax
FHIR format
POST /fhir/<resourceType>/$match
resourceType: Parameters
parameter:
- name: resource
resource:
# Resource in FHIR format to match against.
# This must be the resource contents,
# not a reference to another resource
- name: onlyCertainMatches # This parameter is optional
valueBoolean: true # or false
Aidbox format
POST /<resourceType>/$match?threshold=<threshold-value>
# Resource in Aidbox format to match against.
# This must be the resource contents,
# not a reference to another resource.
The threshold parameter is not required. It specifies minimum score for a match to be returned.
Examples
Find certain matches for the specified resource using FHIR format