Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Example OperationDefinition/Resource-filter (JSON)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: Informative

Raw JSON (canonical form + also see JSON Format Specification)

Operation Definition

{
  "resourceType" : "OperationDefinition",
  "id" : "Resource-filter",
  "text" : {
    "status" : "extensions",
    "div" : "<div>!-- Snipped for Brevity --></div>"
  },
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 0
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "trial-use"
  }],
  "url" : "http://hl7.org/fhir/OperationDefinition/Resource-filter",
  "version" : "5.0.0-ballot",
  "name" : "Filter",
  "title" : "Filter an array in a large resource",
  "status" : "draft",
  "kind" : "operation",
  "experimental" : false,
  "date" : "2022-09-07T10:58:29+10:00",
  "publisher" : "HL7 (FHIR Project)",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://hl7.org/fhir"
    },
    {
      "system" : "email",
      "value" : "fhir@lists.hl7.org"
    }]
  }],
  "description" : "Filter content from an array in a large resource such as List or Group. See [Operations for Large Resources](operations-for-large-resources.html).",
  "affectsState" : true,
  "code" : "filter",
  "resource" : ["Resource"],
  "system" : false,
  "type" : false,
  "instance" : true,
  "parameter" : [{
    "name" : "probes",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "documentation" : "Resource containing content that acts as a filter. See [Operations for Large Resources](operations-for-large-resources.html).",
    "type" : "Resource"
  },
  {
    "name" : "return",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "documentation" : "Resource containing content matching the filter. See [Operations for Large Resources](operations-for-large-resources.html).",
    "type" : "Resource"
  }]
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.