{
  "resourceType" : "OperationDefinition",
  "id" : "resolve-psgc",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: DefinicionDeOperacion resolve-psgc</b></p><a name=\"resolve-psgc\"> </a><a name=\"hcresolve-psgc\"> </a><p>URL: [base]/Location/$resolve-psgc</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>lat</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#decimal\">decimal</a></td><td/><td><div><p>Latitude (WGS84)</p>\n</div></td></tr><tr><td>IN</td><td>lon</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#decimal\">decimal</a></td><td/><td><div><p>Longitude (WGS84)</p>\n</div></td></tr><tr><td>OUT</td><td>code</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#Coding\">Coding</a></td><td/><td><div><p>Resolved PSGC code (most specific level found)</p>\n</div></td></tr><tr><td>OUT</td><td>hierarchy</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#Coding\">Coding</a></td><td/><td><div><p>Full hierarchy path from region to resolved level</p>\n</div></td></tr></table></div>"
  },
  "url" : "https://australian-e-health-research-centre.gitlab.io/psgc-fhir-ig/OperationDefinition/resolve-psgc",
  "version" : "0.1.0",
  "name" : "ResolvePSGC",
  "title" : "Resolve PSGC from Coordinates",
  "status" : "draft",
  "kind" : "operation",
  "date" : "2026-06-23T13:03:53+00:00",
  "publisher" : "CSIRO Australian e-Health Research Centre",
  "contact" : [{
    "name" : "CSIRO Australian e-Health Research Centre",
    "telecom" : [{
      "system" : "url",
      "value" : "https://aehrc.csiro.au"
    }]
  }],
  "description" : "Reverse geocoding: resolve latitude/longitude to the PSGC code hierarchy via point-in-polygon spatial query.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "PH",
      "display" : "Philippines"
    }]
  }],
  "code" : "resolve-psgc",
  "resource" : ["Location"],
  "system" : false,
  "type" : true,
  "instance" : false,
  "parameter" : [{
    "name" : "lat",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "documentation" : "Latitude (WGS84)",
    "type" : "decimal"
  },
  {
    "name" : "lon",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "documentation" : "Longitude (WGS84)",
    "type" : "decimal"
  },
  {
    "name" : "code",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "documentation" : "Resolved PSGC code (most specific level found)",
    "type" : "Coding"
  },
  {
    "name" : "hierarchy",
    "use" : "out",
    "min" : 0,
    "max" : "*",
    "documentation" : "Full hierarchy path from region to resolved level",
    "type" : "Coding"
  }]
}