Health New Zealand Te Whatu Ora Shared Care FHIR API
0.4.5 - release

Health New Zealand Te Whatu Ora Shared Care FHIR API - Local Development build (v0.4.5) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## : RunOperation - JSON Representation

Active as of 2026-03-03

Raw json | Download

    {
      "resourceType" : "OperationDefinition",
      "id" : "RunOperation",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition RunOperation</b></p><a name=\"RunOperation\"> </a><a name=\"hcRunOperation\"> </a><p>URL: [base]/$$run</p><h3>Parameters</h3><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>viewReference</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/references.html#Reference\">Reference</a></td><td/><td><div><p>Reference to the ViewDefinition to be used for data aggregation.</p>\n</div></td></tr><tr><td>IN</td><td>patient</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/references.html#Reference\">Reference</a></td><td/><td><div><p>The patient for whom the data is to be aggregated.</p>\n</div></td></tr><tr><td>OUT</td><td>return</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/binary.html\">Binary</a></td><td/><td><div><p>The output of the operation with a Content-Type of application/json.</p>\n</div></td></tr></table></div>"
      },
      "url" : "https://fhir-ig.digital.health.nz/shared-care/OperationDefinition/RunOperation",
      "version" : "0.4.5",
      "name" : "run",
      "status" : "active",
      "kind" : "operation",
      "date" : "2026-03-03T21:51:04+00:00",
      "publisher" : "Te Whatu Ora",
      "contact" : [
        {
          "name" : "Te Whatu Ora",
          "telecom" : [
            {
              "system" : "url",
              "value" : "https://www.tewhatuora.govt.nz/"
            }
          ]
        },
        {
          "name" : "Te Whatu Ora Integration Team",
          "telecom" : [
            {
              "system" : "email",
              "value" : "integration@tewhatuora.govt.nz",
              "use" : "work"
            }
          ]
        }
      ],
      "description" : "Run a flat data view operation to aggregate data for a specific patient using a defined ViewDefinition.",
      "jurisdiction" : [
        {
          "coding" : [
            {
              "system" : "urn:iso:std:iso:3166",
              "code" : "NZ",
              "display" : "New Zealand"
            }
          ]
        }
      ],
      "code" : "run",
      "system" : true,
      "type" : false,
      "instance" : false,
      "parameter" : [
        {
          "name" : "viewReference",
          "use" : "in",
          "min" : 1,
          "max" : "1",
          "documentation" : "Reference to the ViewDefinition to be used for data aggregation.",
          "type" : "Reference"
        },
        {
          "name" : "patient",
          "use" : "in",
          "min" : 1,
          "max" : "1",
          "documentation" : "The patient for whom the data is to be aggregated.",
          "type" : "Reference"
        },
        {
          "name" : "return",
          "use" : "out",
          "min" : 1,
          "max" : "1",
          "documentation" : "The output of the operation with a Content-Type of application/json.",
          "type" : "Binary"
        }
      ]
    }