{
  "resourceType": "SearchParameter",
  "url": "https://fhir.nhs.uk/STU3/SearchParameter/ODSAPI-OrganizationRole-PrimaryRole-1",
  "version": "1.0.0",
  "name": "ODS API Organization Primary Role",
  "status": "active",
  "date": "2018-04-17",
  "publisher": "NHS Digital",
  "contact": [
    {
      "name": "Interoperability Team",
      "telecom": [
        {
          "system": "email",
          "value": "interoperabilityteam@nhs.net",
          "use": "work"
        }
      ]
    }
  ],
  "purpose": "This search parameter has been defined to enable the ability to query on whether the role of an ODS Organization is primary.",
  "code": "ods-org-primaryRole",
  "base": [
    "Organization"
  ],
  "type": "token",
  "description": "A search parameter to query on whether the role of an ODS Organization is primary.",
  "expression": "Organization.extension('https://fhir.nhs.uk/STU3/StructureDefinition/Extension-ODSAPI-OrganizationRole-1').extension('primaryRole')",
  "xpath": "f:Organization/f:extension[@url='https://fhir.nhs.uk/STU3/StructureDefinition/Extension-ODSAPI-OrganizationRole-1']/f:extension[@url='primaryRole']",
  "xpathUsage": "normal",
  "comparator": [
    "eq"
  ],
  "modifier": [
    "exact"
  ]
}