{
  "resourceType": "SearchParameter",
  "id": "provenance-link-method",
  "url": "https://fhir.apps.health/SearchParameter/provenance-link-method",
  "description": "Filter `Provenance` by how a record was linked to or unlinked from its target.\n\n    GET [base]/Provenance?link-method=https://fhir.apps.health/CodeSystem/nexus-link-method|automatic\n    GET [base]/Provenance?link-method=automatic&recorded=ge2026-09-01\n\nThe method is carried by the `nexus-link-method` extension on `Provenance.activity`, which no base\nparameter reaches. Combine it with the base `activity` parameter to separate links from unlinks.\n\n**A store that has not been given this definition does not refuse a search that names it.** It drops\nthe parameter and answers with everything, so an unfiltered result looks like a successful narrow\nsearch. Load this definition into the store before relying on it, and prove the filter ran with a\nnegative check: a Provenance whose method is NOT the one searched for must be absent from the result.",
  "name": "ProvenanceLinkMethod",
  "status": "draft",
  "experimental": false,
  "date": "2026-09-22",
  "publisher": "WELLSTAR Technologies Corp.",
  "contact": [
    {
      "name": "Nexus EMR FHIR Implementation Guide",
      "telecom": [
        {
          "system": "url",
          "value": "https://fhir.apps.health"
        }
      ]
    }
  ],
  "jurisdiction": [
    {
      "coding": [
        {
          "code": "CA",
          "system": "urn:iso:std:iso:3166",
          "display": "Canada"
        }
      ]
    }
  ],
  "code": "link-method",
  "base": [
    "Provenance"
  ],
  "type": "token",
  "expression": "Provenance.activity.extension('https://fhir.apps.health/StructureDefinition/nexus-link-method').value"
}
