<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://example.org/fhir/StructureDefinition/PatientProfile" />
  <name value="PatientProfile" />
  <status value="active" />
  <publisher value="InterSystems Iberia" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Patient" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient" />
  <derivation value="constraint" />
  <differential>
    <element id="Patient.identifier">
      <path value="Patient.identifier" />
      <short value="Medical Record Number" />
      <definition value="At least one identifier must be an MRN (Medical Record Number)." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Identifier" />
      </type>
    </element>
    <element id="Patient.identifier.system">
      <path value="Patient.identifier.system" />
      <short value="System for MRN" />
      <definition value="The identifier system must be the MRN system." />
    </element>
    <element id="Patient.identifier.value">
      <path value="Patient.identifier.value" />
      <short value="MRN value is required" />
      <definition value="The MRN value is required for the identifier." />
      <min value="1" />
    </element>
    <element id="Patient.telecom">
      <path value="Patient.telecom" />
      <short value="Mobile phone number" />
      <definition value="At least one mobile phone number is required for the patient." />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="ContactPoint" />
      </type>
    </element>
    <element id="Patient.telecom.system">
      <path value="Patient.telecom.system" />
      <short value="The contact point must be a phone number" />
      <patternCode value="phone" />
    </element>
    <element id="Patient.telecom.use">
      <path value="Patient.telecom.use" />
      <short value="The phone number must be a mobile number" />
      <patternCode value="mobile" />
    </element>
    <element id="Patient.deceased">
      <path value="Patient.deceased" />
      <short value="Deceased backbone is not supported" />
      <definition value="This profile removes the deceased backbone element entirely." />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Patient.gender">
      <path value="Patient.gender" />
      <short value="Gender is required" />
      <definition value="The patient's gender must be provided and adhere to the administrative-gender ValueSet." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/administrative-gender" />
      </binding>
    </element>
    <element id="Patient.birthDate">
      <path value="Patient.birthDate" />
      <short value="Birth date is required" />
      <definition value="The patient's birth date must be provided." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="date" />
      </type>
    </element>
    <element id="Patient.name">
      <path value="Patient.name" />
      <short value="Patient Name" />
      <definition value="At least one Name must be provided." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="HumanName" />
      </type>
    </element>
    <element id="Patient.name.extension">
      <path value="Patient.name.extension" />
      <short value="Maternal last name as part of the first HumanName" />
      <definition value="Optional extension to specify the maternal last name for the first HumanName element." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="extension" />
        <profile value="http://example.org/fhir/StructureDefinition/maternalLastName" />
      </type>
    </element>
  </differential>
</StructureDefinition>