<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://example.org/fhir/StructureDefinition/PASConnectPractitioner" />
  <name value="PASConnectPractitioner" />
  <status value="draft" />
  <date value="2022-11-29T01:10:40.6591509+00:00" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Practitioner" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
  <derivation value="constraint" />
  <differential>
    <element id="Practitioner.identifier.use">
      <path value="Practitioner.identifier.use" />
      <definition value="The Professional carer’s main identifier is mandatory data in i.PM and so the identifier.use element with the code ‘official’ must be passed from the third-party system for POST and PUT practitioner interface." />
      <fixedCode value="Official" />
    </element>
    <element id="Practitioner.identifier.type">
      <path value="Practitioner.identifier.type" />
      <short value="The Professional carer’s main identifier value in PAS" />
      <definition value="Professional Carer Identifier Type code received in identifier.type element must be matched to an existing reference value identifier in reference value domain CITYP in i.PM where RITYP_CODE = FHIR or PIMS" />
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="IdentifierType" />
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true" />
        </extension>
        <strength value="extensible" />
        <valueSet value="http://Server/PASConnectR4/api/R4/v1/ValueSet/CITYP" />
      </binding>
    </element>
    <element id="Practitioner.identifier.type.coding">
      <path value="Practitioner.identifier.type.coding" />
      <mustSupport value="false" />
    </element>
    <element id="Practitioner.identifier.system">
      <path value="Practitioner.identifier.system" />
      <short value="Not used" />
      <max value="0" />
      <mustSupport value="false" />
    </element>
    <element id="Practitioner.identifier.value">
      <path value="Practitioner.identifier.value" />
      <short value="The Professional carer’s main identifier value" />
      <definition value="Main and other identifiers will be processed and inserted/updated in PROF_CARER_IDS.IDENTIFIER. The main identifier will also be inserted in PROF_CARERS.MAIN_IDENT." />
    </element>
    <element id="Practitioner.identifier.period">
      <path value="Practitioner.identifier.period" />
      <short value="Active from date" />
      <definition value="This is the date that the identifier was assigned" />
      <comment value="Active from and to date can be a future date but to date cannot be before the from date.  &#xD;&#xA;&#xD;&#xA;A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. &quot;the patient was an inpatient of the hospital for this time range&quot;) or one value from the range applies (e.g. &quot;give to the patient between these two times&quot;).&#xA;&#xA;Period is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration)." />
      <min value="1" />
    </element>
    <element id="Practitioner.identifier.assigner">
      <path value="Practitioner.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="Practitioner.active">
      <path value="Practitioner.active" />
      <max value="0" />
    </element>
    <element id="Practitioner.name">
      <path value="Practitioner.name" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Practitioner.name.use">
      <path value="Practitioner.name.use" />
      <max value="0" />
    </element>
    <element id="Practitioner.name.text">
      <path value="Practitioner.name.text" />
      <max value="0" />
    </element>
    <element id="Practitioner.name.family">
      <path value="Practitioner.name.family" />
      <comment value="Surname is mandatory data in i.PM and must be passed from the third-party system.&#xD;&#xA;The practitioner details will not be inserted if the name.family element is not received or received with an empty string." />
      <min value="1" />
    </element>
    <element id="Practitioner.name.given">
      <path value="Practitioner.name.given" />
      <label value="PROF_CARERS.FORENAME" />
      <definition value="Forename" />
      <comment value="Forename is optional data in i.PM that will be passed from the third-party system.&#xD;&#xA;If the name.given element is received with value, then it will be inserted in i.PM. &#xD;&#xA;If the name.given element is not received or received with an empty string, then the forename in i.PM will be blank." />
    </element>
    <element id="Practitioner.gender">
      <path value="Practitioner.gender" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>