<?xml version="1.0" encoding="UTF-8"?>

<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="geo-hierarchy"/>
  <text>
    <status value="generated"/><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>
</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>
</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>
</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>
</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>
</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>
</div></td></tr></table></div>
  </text>
  <url value="https://australian-e-health-research-centre.gitlab.io/psgc-fhir-ig/OperationDefinition/geo-hierarchy"/>
  <version value="0.1.0"/>
  <name value="GeoHierarchy"/>
  <title value="Geographic Hierarchy"/>
  <status value="draft"/>
  <kind value="operation"/>
  <date value="2026-06-23T13:03:53+00:00"/>
  <publisher value="CSIRO Australian e-Health Research Centre"/>
  <contact>
    <name value="CSIRO Australian e-Health Research Centre"/>
    <telecom>
      <system value="url"/>
      <value value="https://aehrc.csiro.au"/>
    </telecom>
  </contact>
  <description value="Resolve the full geographic ancestry path for a PSGC code — from region down to the code's own level."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="PH"/>
      <display value="Philippines"/>
    </coding>
  </jurisdiction>
  <code value="geo-hierarchy"/>
  <resource value="CodeSystem"/>
  <system value="false"/>
  <type value="true"/>
  <instance value="false"/>
  <parameter>
    <name value="code"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <documentation value="The PSGC code to resolve"/>
    <type value="code"/>
  </parameter>
  <parameter>
    <name value="Reg"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="Region ancestor"/>
    <type value="Coding"/>
  </parameter>
  <parameter>
    <name value="Prov"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="Province ancestor"/>
    <type value="Coding"/>
  </parameter>
  <parameter>
    <name value="City"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="City (if applicable)"/>
    <type value="Coding"/>
  </parameter>
  <parameter>
    <name value="Mun"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="Municipality (if applicable)"/>
    <type value="Coding"/>
  </parameter>
  <parameter>
    <name value="Bgy"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <documentation value="Barangay (if applicable)"/>
    <type value="Coding"/>
  </parameter>
</OperationDefinition>