{
  "resourceType" : "OperationDefinition",
  "id" : "Patient-History",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition Patient-History</b></p><a name=\"Patient-History\"> </a><a name=\"hcPatient-History\"> </a><p>URL: [base]/Patient/$patient-history</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>NHI</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a></td><td/><td><div><p>The logical id to identify patient/consumer.</p>\n</div></td></tr><tr><td>OUT</td><td>success</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a></td><td/><td><div><p>The patient/consumer version (as an Patient resource).</p>\n</div></td></tr><tr><td>OUT</td><td>failure</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/operationoutcome.html\">OperationOutcome</a></td><td/><td><div><p>Error response</p>\n</div></td></tr></table></div>"
  },
  "url" : "https://standards.digital.health.nz/fhir/air/OperationDefinition/patient-history",
  "version" : "2.7.0",
  "name" : "patient-history",
  "title" : "Patient History",
  "status" : "active",
  "kind" : "operation",
  "experimental" : false,
  "date" : "2026-07-20T21:32:10+00:00",
  "publisher" : "Te Whatu Ora",
  "contact" : [{
    "name" : "Te Whatu Ora",
    "telecom" : [{
      "system" : "url",
      "value" : "https://tewhatuora.govt.nz"
    }]
  }],
  "description" : "Fetch all the versions of an ImmSOT Patient/Consumer.\n\n        Modification information is included in the fetched dataset. Input is a valid NHI.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "US",
      "display" : "New Zealand"
    }]
  }],
  "affectsState" : false,
  "code" : "patient-history",
  "resource" : ["Patient"],
  "system" : false,
  "type" : true,
  "instance" : false,
  "parameter" : [{
    "name" : "NHI",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "documentation" : "The logical id to identify patient/consumer.",
    "type" : "Patient"
  },
  {
    "name" : "success",
    "use" : "out",
    "min" : 0,
    "max" : "*",
    "documentation" : "The patient/consumer version (as an Patient resource).",
    "type" : "Patient"
  },
  {
    "name" : "failure",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "documentation" : "Error response",
    "type" : "OperationOutcome"
  }]
}