<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="BCCorePatient" />
  <url value="http://hlth.gov.bc.ca/fhir/bccore/StructureDefinition/BCCorePatient" />
  <name value="BCCorePatient" />
  <status value="draft" />
  <description value="An example profile of the Patient resource." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Patient" />
  <baseDefinition value="http://fhir.infoway-inforoute.ca/cacore/StructureDefinition/patient-ca-core" />
  <derivation value="constraint" />
  <differential>
    <element id="Patient.identifier">
      <path value="Patient.identifier" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <comment value="PHN must be supported as the identifier system, other identifiers can be supplied but only BC PHN for the patient is used" />
      <min value="1" />
    </element>
    <element id="Patient.identifier:PHN">
      <path value="Patient.identifier" />
      <sliceName value="PHN" />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.identifier:PHN.type">
      <path value="Patient.identifier.type" />
      <patternCodeableConcept>
        <coding>
          <code value="JHN" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Patient.identifier:PHN.system">
      <path value="Patient.identifier.system" />
      <patternUri value="https://fhir.infoway-inforoute.ca/NamingSystem/ca-bc-patient-healthcare-id" />
    </element>
    <element id="Patient.name.period">
      <path value="Patient.name.period" />
      <mustSupport value="true" />
    </element>
    <element id="Patient.generalPractitioner.extension:MRP">
      <path value="Patient.generalPractitioner.extension" />
      <sliceName value="MRP" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://hlth.gov.bc.ca/fhir/bccore/StructureDefinition/MRP" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>