<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://bghmc.org/fhir/StructureDefinition/PhilhealthPerson" />
  <name value="PhilhealthPerson" />
  <status value="draft" />
  <date value="2023-11-06T04:54:59.1556306+00:00" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Person" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Person" />
  <derivation value="constraint" />
  <differential>
    <element id="Person.identifier">
      <path value="Person.identifier" />
      <short value="PHIC Number" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Person.identifier.use">
      <path value="Person.identifier.use" />
      <short value="PHIC Number" />
      <max value="0" />
    </element>
    <element id="Person.identifier.type">
      <path value="Person.identifier.type" />
      <min value="1" />
    </element>
    <element id="Person.identifier.type.coding">
      <path value="Person.identifier.type.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Person.identifier.type.coding.system">
      <path value="Person.identifier.type.coding.system" />
      <min value="1" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/v2-0203" />
    </element>
    <element id="Person.identifier.type.coding.version">
      <path value="Person.identifier.type.coding.version" />
      <max value="0" />
    </element>
    <element id="Person.identifier.type.coding.code">
      <path value="Person.identifier.type.coding.code" />
      <min value="1" />
      <fixedCode value="MB" />
    </element>
    <element id="Person.identifier.type.coding.display">
      <path value="Person.identifier.type.coding.display" />
      <min value="1" />
      <fixedString value="Member number" />
    </element>
    <element id="Person.identifier.type.coding.userSelected">
      <path value="Person.identifier.type.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Person.identifier.type.text">
      <path value="Person.identifier.type.text" />
      <min value="1" />
      <fixedString value="PhilHealth Identification Number (PIN)" />
    </element>
    <element id="Person.identifier.system">
      <path value="Person.identifier.system" />
      <max value="0" />
    </element>
    <element id="Person.identifier.value">
      <path value="Person.identifier.value" />
      <min value="1" />
    </element>
    <element id="Person.identifier.period">
      <path value="Person.identifier.period" />
      <max value="0" />
    </element>
    <element id="Person.identifier.assigner">
      <path value="Person.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="Person.name">
      <path value="Person.name" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="HumanName" />
        <profile value="https://bghmc.org/fhir/StructureDefinition/BaseHumanName" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Person.telecom">
      <path value="Person.telecom" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Person.telecom:mobile">
      <path value="Person.telecom" />
      <sliceName value="mobile" />
      <type>
        <code value="ContactPoint" />
        <profile value="https://bghmc.org/fhir/StructureDefinition/MobileContactPoint" />
      </type>
    </element>
    <element id="Person.telecom:landline">
      <path value="Person.telecom" />
      <sliceName value="landline" />
      <type>
        <code value="ContactPoint" />
        <profile value="https://bghmc.org/fhir/StructureDefinition/LandlineContactPoint" />
      </type>
    </element>
    <element id="Person.telecom:email">
      <path value="Person.telecom" />
      <sliceName value="email" />
      <type>
        <code value="ContactPoint" />
        <profile value="https://bghmc.org/fhir/StructureDefinition/EmailContactPoint" />
      </type>
    </element>
    <element id="Person.gender">
      <path value="Person.gender" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Person.birthDate">
      <path value="Person.birthDate" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Person.address">
      <path value="Person.address" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Person.address:permanent">
      <path value="Person.address" />
      <sliceName value="permanent" />
      <max value="1" />
      <type>
        <code value="Address" />
        <profile value="https://bghmc.org/fhir/StructureDefinition/PermanentAddress" />
      </type>
    </element>
    <element id="Person.address:temporary">
      <path value="Person.address" />
      <sliceName value="temporary" />
      <max value="1" />
      <type>
        <code value="Address" />
        <profile value="https://bghmc.org/fhir/StructureDefinition/TemporaryAddress" />
      </type>
    </element>
    <element id="Person.photo">
      <path value="Person.photo" />
      <max value="0" />
    </element>
    <element id="Person.managingOrganization">
      <path value="Person.managingOrganization" />
      <max value="0" />
    </element>
    <element id="Person.active">
      <path value="Person.active" />
      <max value="0" />
    </element>
    <element id="Person.link">
      <path value="Person.link" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>