<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-RelatedPerson-delegate" />
  <url value="https://bpcs.exchange/fhir/StructureDefinition/profile-RelatedPerson-delegate" />
  <name value="RelatedPersonDelegate" />
  <title value="Related Person Delegate" />
  <status value="active" />
  <experimental value="false" />
  <date value="2024-04-24T13:53:52.9992177+00:00" />
  <description value="Represents a search or operation result for a contact person for a family coverage other than the family." />
  <fhirVersion value="5.0.0" />
  <mapping>
    <identity value="BPCS" />
    <name value="Internal BPCS API" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="RelatedPerson" />
  <baseDefinition value="https://bpcs.exchange/fhir/StructureDefinition/profile-RelatedPerson-delegate-create" />
  <derivation value="constraint" />
  <differential>
    <element id="RelatedPerson.id">
      <path value="RelatedPerson.id" />
      <min value="1" />
    </element>
    <element id="RelatedPerson.contained">
      <path value="RelatedPerson.contained" />
      <slicing>
        <discriminator>
          <type value="profile" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="RelatedPerson.contained:provenance">
      <path value="RelatedPerson.contained" />
      <sliceName value="provenance" />
      <short value="Creation/Update/etc. Metadata" />
      <definition value="Nested Provenance information referring to this resource that describes the creation, and sometimes the most recent update and/or inactivation of the record, specifically who was responsible and when it occurred" />
      <min value="1" />
      <type>
        <code value="Provenance" />
        <profile value="https://bpcs.exchange/fhir/StructureDefinition/profile-Provenance" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="RelatedPerson.address.extension:municipalityCode">
      <path value="RelatedPerson.address.extension" />
      <sliceName value="municipalityCode" />
      <comment value="The binding is extensible to allow for the addition of new codes.  Codes will always be found in the current expansion of the value set." />
      <type>
        <code value="Extension" />
        <profile value="https://bpcs.exchange/fhir/StructureDefinition/ext-Address-MunicipalityCode" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://bpcs.exchange/fhir/ValueSet/vs-Municipality" />
      </binding>
      <mapping>
        <identity value="BPCS" />
        <map value="ContactDTO.rdbMunicipality" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>