{
  "resourceType" : "OperationDefinition",
  "id" : "geo-hierarchy",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: DefinicionDeOperacion geo-hierarchy</b></p><a name=\"geo-hierarchy\"> </a><a name=\"hcgeo-hierarchy\"> </a><p>URL: [base]/CodeSystem/$geo-hierarchy</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>code</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</a></td><td/><td><div><p>The PSGC code to resolve</p>\n</div></td></tr><tr><td>OUT</td><td>Reg</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#Coding\">Coding</a></td><td/><td><div><p>Region ancestor</p>\n</div></td></tr><tr><td>OUT</td><td>Prov</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#Coding\">Coding</a></td><td/><td><div><p>Province ancestor</p>\n</div></td></tr><tr><td>OUT</td><td>City</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#Coding\">Coding</a></td><td/><td><div><p>City (if applicable)</p>\n</div></td></tr><tr><td>OUT</td><td>Mun</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#Coding\">Coding</a></td><td/><td><div><p>Municipality (if applicable)</p>\n</div></td></tr><tr><td>OUT</td><td>Bgy</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#Coding\">Coding</a></td><td/><td><div><p>Barangay (if applicable)</p>\n</div></td></tr></table></div>"
  },
  "url" : "https://australian-e-health-research-centre.gitlab.io/psgc-fhir-ig/OperationDefinition/geo-hierarchy",
  "version" : "0.1.0",
  "name" : "GeoHierarchy",
  "title" : "Geographic Hierarchy",
  "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" : "Resolve the full geographic ancestry path for a PSGC code — from region down to the code's own level.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "PH",
      "display" : "Philippines"
    }]
  }],
  "code" : "geo-hierarchy",
  "resource" : ["CodeSystem"],
  "system" : false,
  "type" : true,
  "instance" : false,
  "parameter" : [{
    "name" : "code",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "documentation" : "The PSGC code to resolve",
    "type" : "code"
  },
  {
    "name" : "Reg",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "documentation" : "Region ancestor",
    "type" : "Coding"
  },
  {
    "name" : "Prov",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "documentation" : "Province ancestor",
    "type" : "Coding"
  },
  {
    "name" : "City",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "documentation" : "City (if applicable)",
    "type" : "Coding"
  },
  {
    "name" : "Mun",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "documentation" : "Municipality (if applicable)",
    "type" : "Coding"
  },
  {
    "name" : "Bgy",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "documentation" : "Barangay (if applicable)",
    "type" : "Coding"
  }]
}