For AI agents: the documentation index is at /docs/mdmbox/llms.txt. A Markdown version of this page is available at /docs/mdmbox/mark-not-a-match.md or by requesting it with the Accept: text/markdown header.
MDMbox Docs

Mark not a match

Use $mark-not-a-match after reviewing a candidate pair and deciding that the records represent different people or entities. MDMbox saves the decision as a Task; it does not change either record.

Request

Both records must exist. Send exactly two distinct record references:

POST https://<mdmbox-host>/api/fhir/$mark-not-a-match
Content-Type: application/fhir+json
{
  "resourceType": "Parameters",
  "parameter": [
    { "name": "record", "valueReference": { "reference": "Patient/123" } },
    { "name": "record", "valueReference": { "reference": "Patient/456" } },
    { "name": "reason", "valueString": "Different people confirmed during review" }
  ]
}
NameTypeRequiredDescription
recordvalueReferenceExactly twoReferences to the reviewed records
reasonvalueString or valueCodeableConceptNoReason for the decision
notevalueStringNoAdditional review note
reviewTaskvalueReferenceNoAn existing Task to associate with the decision

Response and effect

HTTP 200 returns FHIR Parameters with outcome (OperationOutcome) and task (the saved assertion Task). Repeating the request for the same pair returns the existing Task, even if the records are supplied in the opposite order. It does not update the original reason or note.

  • $match: excludes this pair when matching a resource with an ID. An anonymous input resource has no pair decision to apply.
  • Bulk and Continuous matching: keep the scored pair in their results and label it not-a-match at export time. Use ?decisionStatus=pending to export only undecided pairs.
  • Link and merge: refuse an operation that would link or merge the asserted pair.

To find recorded decisions, query Aidbox:

GET https://<aidbox-host>/fhir/Task?code=mark-not-a-match&business-status=not-a-match

The Task's input contains the two record references. MDMbox does not currently provide an operation to revoke a not-a-match decision.

Errors

StatusMeaning
400Invalid request, including fewer or more than two records, or the same reference twice
409The records are already linked; unlink them before recording this decision
422A record or review Task does not exist, or reviewTask is not a Task reference
500The Task or required audit event could not be saved

Errors return an OperationOutcome. This operation has no preview mode. A new decision and its AuditEvent are saved together; repeated requests also produce an audit event. See Audit.

Last updated: