FHIR Chat · Operation $match · implementers

Stream: implementers

Topic: Operation $match


view this post on Zulip Bapi Behera (Jun 18 2021 at 12:34):

In $match operation, the parameters are used to pass the values. My question is the parameters be only the resource search parameter?
For example, In patient resource we can use only "identifier", "name" etc which are part of search parameter ?
or
we can add any "patient" resource element as parameter to match?

And one more related question:
can we add user defined parameters inside "patient" resource?

{
"resourceType": "Parameters",
"id": "example",
"parameter": [
{
"name": "resource",
"resource": {
"resourceType": "Patient",
"identifier": [
{
"use": "usual",
"type": {
"coding": [
{
"system": "http://hl7.org/fhir/v2/0203",
"code": "MR"
}
]
},
"system": "urn:oid:1.2.36.146.595.217.0.1",
"value": "12345"
}
],
"name": [
{
"family": [
"Chalmers"
],
"given": [
"Peter"
]
}
],
"gender": "male",
"birthDate": "1974-12-25"
}
},
{
"name": "count",
"valueInteger": "3"
},
{
"name": "onlyCertainMatches",
"valueBoolean": "false"
}
]
}
Response: Results from imaginary MPI algorithm

HTTP/1.1 200 OK
[other headers]

{
"resourceType": "Bundle",
"id": "26419249-18b3-45de-b10e-dca0b2e72b",
"meta": {
"lastUpdated": "2016-03-18T03:28:49Z"
},
"type": "searchset",
"total": 2,
"entry": [{
"fullUrl": "http://server/path/Patient/example",
"resource": {
"resourceType": "Patient",
"id": "example",
.. snip ...
},
"search": {
"extension": [{
"url": "http://hl7.org/fhir/StructureDefinition/match-grade",
"valueCode": "certain"
}],
"mode": "match",
"score": 0.9
}
},{
"fullUrl": "http://server/path/Patient/292",
"resource": {
"resourceType": "Patient",
"id": "292",
.. snip ...
},
"search": {
"extension": [{
"url": "http://hl7.org/fhir/StructureDefinition/match-grade",
"valueCode": "possible"
}],
"mode": "match",
"score": 0.2
}
}]
}

https://www.hl7.org/fhir/patient-operation-match.html

view this post on Zulip Brian Postlethwaite (Jun 21 2021 at 10:03):

The match doesn't consider search parameters at all. It's just a patient resource (or fragment) and is up to the server to perform the match as it sees fit.
Some systems might provide a profile on Patient which provides guidance on what values it will consider in the match.

view this post on Zulip Brian Postlethwaite (Jun 21 2021 at 10:05):

(yes is the resource property)


Last updated: Apr 12 2022 at 19:14 UTC