<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="7fe16c7a-e4b3-4d01-8586-01b9ab4b8f66" />
  <meta>
    <lastUpdated value="2020-12-29T00:43:17.273+00:00" />
  </meta>
  <url value="http://developer.nhs.uk/fhir/StructureDefinition/Vacancy" />
  <version value="2.0" />
  <name value="Vacancy" />
  <status value="draft" />
  <date value="2020-06-09T16:25:39.2392075Z" />
  <fhirVersion value="4.0.1" />
  <kind value="logical" />
  <abstract value="false" />
  <type value="http://example.org/fhir/StructureDefinition/Vacancy" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <derivation value="specialization" />
  <differential>
    <element id="Vacancy">
      <path value="Vacancy" />
      <short value="A vacant Shift, Position" />
      <definition value="This resource is to be used when there is a need to define a vacant shift, position. This is a first step in EMPLOYEE deployment as part of three main resources (VacancyRequest, Booking, Timesheet) which complete the deployment process." />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Element" />
      </type>
    </element>
    <element id="Vacancy.meta">
      <path value="Vacancy.meta" />
      <short value="Metadata ascociated with each record" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Meta" />
      </type>
    </element>
    <element id="Vacancy.meta.versionId">
      <path value="Vacancy.meta.versionId" />
      <short value="Changes each time the content of the resource changes." />
      <definition value="Last updated time of the record" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="id" />
        <profile value="http://hl7.org/fhir/StructureDefinition/id" />
      </type>
    </element>
    <element id="Vacancy.meta.lastUpdated">
      <path value="Vacancy.meta.lastUpdated" />
      <short value="If populated, this value changes each time the content of the resource changes. It can be used by a system or a human" />
      <definition value="Latest version number of the record for this resource type" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
        <profile value="http://hl7.org/fhir/StructureDefinition/dateTime" />
      </type>
    </element>
    <element id="Vacancy.meta.profile">
      <path value="Vacancy.meta.profile" />
      <short value="Profiles this resource claims to conform to" />
      <definition value="The profile would be the profile directly defined by NHS digital or a specialised version of that profile." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="canonical" />
      </type>
    </element>
    <element id="Vacancy.identifier">
      <path value="Vacancy.identifier" />
      <short value="All other identifiers ascociated to this vacancy request" />
      <definition value="This should not be mistaken by the 'id' field. This field refers to External Ids for this item and will be used as a logical reference whilst the .id elements is used as Literal reference" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Identifier" />
      </type>
    </element>
    <element id="Vacancy.status">
      <path value="Vacancy.status" />
      <short value="VacancyRequest Status" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://developer.nhs.uk/fhir/ValueSet/vacancyStatus" />
      </binding>
    </element>
    <element id="Vacancy.Organization">
      <path value="Vacancy.Organization" />
      <short value="Vacancy Location eg. Ward" />
      <definition value="This is WHERE the vacancy is actually required. The data format would be similar to the vacancyOrganisation with the fact that the API endpoint provdier would be responsible for maintaining all the codes provided here. Needless to say the use &quot;reference&quot; and literal reference is preferred." />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="Vacancy.plannedTime">
      <path value="Vacancy.plannedTime" />
      <short value="Planned time for this VacancyRequest" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing">
      <path value="Vacancy.plannedTime.timing" />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.boundsPeriod">
      <path value="Vacancy.plannedTime.timing.boundsPeriod" />
      <short value="Start and End date for this Timing" />
      <definition value="Start and End time for the timing episode as defined" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.servicePeriod">
      <path value="Vacancy.plannedTime.timing.servicePeriod" />
      <short value="Planned shift start hours and end hours and/or Shift duration" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.servicePeriod.start">
      <path value="Vacancy.plannedTime.timing.servicePeriod.start" />
      <short value="Planned Shift Start time" />
      <definition value="The format is time in JSON. &#xD;&#xA;An example value would be &quot;14:25&quot;" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="time" />
        <profile value="http://hl7.org/fhir/StructureDefinition/time" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.servicePeriod.end">
      <path value="Vacancy.plannedTime.timing.servicePeriod.end" />
      <short value="Planned shift end time" />
      <definition value="This could also refer to potential assignment effective end date" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="time" />
        <profile value="http://hl7.org/fhir/StructureDefinition/time" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.servicePeriod.serviceDuration">
      <path value="Vacancy.plannedTime.timing.servicePeriod.serviceDuration" />
      <short value="Planned Hours of work per contract or shift" />
      <definition value="This to be populated if the exact hours (start and end) date both cannot be provided. &#xD;&#xA;Eg. A shift which starts at 9, should work 8 hours per day and hence why the servicePeriod.serviceDuration would be &#xD;&#xA;Unit = h&#xD;&#xA;Value = 8 &#xD;&#xA;which indicated the 8 hours of work, planned for the shift" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.servicePeriod.serviceDuration.unit">
      <path value="Vacancy.plannedTime.timing.servicePeriod.serviceDuration.unit" />
      <short value="s | min | h  - Considering a single shift max duration" />
      <definition value="https://www.hl7.org/fhir/valueset-units-of-time.html&#xD;&#xA;Code Display Definition&#xD;&#xA; s       second second&#xD;&#xA; min  minute minute&#xD;&#xA; h      hour hour&#xD;&#xA; d      day day&#xD;&#xA; wk    week week&#xD;&#xA; mo   month month&#xD;&#xA; a      year year" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.servicePeriod.serviceDuration.value">
      <path value="Vacancy.plannedTime.timing.servicePeriod.serviceDuration.value" />
      <short value="Actual Value for the unit specified above" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
        <profile value="http://hl7.org/fhir/StructureDefinition/decimal" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.breakPeriod">
      <path value="Vacancy.plannedTime.timing.breakPeriod" />
      <short value="Planned shift break start hours and end hours and/or Break Duration" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.breakPeriod.start">
      <path value="Vacancy.plannedTime.timing.breakPeriod.start" />
      <short value="Break Start Time" />
      <definition value="The format is time in JSON. &#xD;&#xA;An example value would be &quot;14:25&quot;" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="time" />
        <profile value="http://hl7.org/fhir/StructureDefinition/time" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.breakPeriod.end">
      <path value="Vacancy.plannedTime.timing.breakPeriod.end" />
      <short value="Break End time" />
      <definition value="The format is time in JSON. &#xD;&#xA;An example value would be &quot;14:25&quot;" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="time" />
        <profile value="http://hl7.org/fhir/StructureDefinition/time" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.breakPeriod.breakDuration">
      <path value="Vacancy.plannedTime.timing.breakPeriod.breakDuration" />
      <definition value="This to be populated if the exact break hours (start and end) date both cannot be provided. &#xD;&#xA;Eg. A break for a shift which starts at 12 and can be upto half an hour would be having the following values &#xD;&#xA;Unit = m&#xD;&#xA;Value = 30 &#xD;&#xA;which indicated the half an hour break for the shift" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Quantity" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.breakPeriod.breakDuration.unit">
      <path value="Vacancy.plannedTime.timing.breakPeriod.breakDuration.unit" />
      <short value="s | min | h  - Considering a single shift max duration" />
      <definition value="hhttps://www.hl7.org/fhir/valueset-units-of-time.html&#xD;&#xA;Code Display Definition&#xD;&#xA; s       second second&#xD;&#xA; min  minute minute&#xD;&#xA; h      hour hour&#xD;&#xA; d      day day&#xD;&#xA; wk    week week&#xD;&#xA; mo   month month&#xD;&#xA; a      year year" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.breakPeriod.breakDuration.value">
      <path value="Vacancy.plannedTime.timing.breakPeriod.breakDuration.value" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
        <profile value="http://hl7.org/fhir/StructureDefinition/decimal" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.timing.daysOfWeek">
      <path value="Vacancy.plannedTime.timing.daysOfWeek" />
      <short value="mon | tue | wed | thu | fri | sat | sun" />
      <definition value="This indicated the days which this shift is planned to be worked" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.earliestStartDate">
      <path value="Vacancy.plannedTime.earliestStartDate" />
      <short value="Earliest Assignment Start Date" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
        <profile value="http://hl7.org/fhir/StructureDefinition/dateTime" />
      </type>
    </element>
    <element id="Vacancy.plannedTime.contractPeriod">
      <path value="Vacancy.plannedTime.contractPeriod" />
      <short value="Contract Effective Start and End date" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
    </element>
    <element id="Vacancy.reasonCode">
      <path value="Vacancy.reasonCode" />
      <short value="Vacancy request reason code - Or delete Reason Code" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Vacancy.cancellationReason">
      <path value="Vacancy.cancellationReason" />
      <short value="Vacancy request reason code - Or delete Reason Code" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Vacancy.authorisationDate">
      <path value="Vacancy.authorisationDate" />
      <short value="When the shift was authorised to sent to a BMS system to fullfil" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
        <profile value="http://hl7.org/fhir/StructureDefinition/dateTime" />
      </type>
    </element>
    <element id="Vacancy.authorisationCode">
      <path value="Vacancy.authorisationCode" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.trigerredBy">
      <path value="Vacancy.trigerredBy" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.trigerredBy.Name">
      <path value="Vacancy.trigerredBy.Name" />
      <short value="Requested Full Name or Initial" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.trigerredBy.Type">
      <path value="Vacancy.trigerredBy.Type" />
      <short value="Requester Type" />
      <definition value="This can be a valueset including but not limited to:&#xD;&#xA;employee | agency | trustAdmin" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
        <profile value="http://hl7.org/fhir/StructureDefinition/code" />
      </type>
    </element>
    <element id="Vacancy.trigerredBy.date">
      <path value="Vacancy.trigerredBy.date" />
      <short value="Method of Request" />
      <definition value="This may be a valueset including but not limited to:&#xD;&#xA;web | API | telephon" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
        <profile value="http://hl7.org/fhir/StructureDefinition/dateTime" />
      </type>
    </element>
    <element id="Vacancy.cancellationDate">
      <path value="Vacancy.cancellationDate" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
        <profile value="http://hl7.org/fhir/StructureDefinition/dateTime" />
      </type>
    </element>
    <element id="Vacancy.gender">
      <path value="Vacancy.gender" />
      <short value="Required EMPLOYEE Gender" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Vacancy.workerType">
      <path value="Vacancy.workerType" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.workerType.multipleWorker">
      <path value="Vacancy.workerType.multipleWorker" />
      <short value="Is multiple performer is allowed" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
        <profile value="http://hl7.org/fhir/StructureDefinition/boolean" />
      </type>
    </element>
    <element id="Vacancy.workerType.AgencyNotPreferred">
      <path value="Vacancy.workerType.AgencyNotPreferred" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
        <profile value="http://hl7.org/fhir/StructureDefinition/boolean" />
      </type>
    </element>
    <element id="Vacancy.workerType.type">
      <path value="Vacancy.workerType.type" />
      <short value="Type of performer" />
      <definition value="A perfomer may be an Agency or Bank worker... Any other performer type can be addressed here" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.workerType.type.coding">
      <path value="Vacancy.workerType.type.coding" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </type>
    </element>
    <element id="Vacancy.workerType.type.priority">
      <path value="Vacancy.workerType.type.priority" />
      <short value="performer type priority" />
      <definition value="This is where you can specify you preferred performer type. &#xD;&#xA;0 always indicates the highest priority&#xD;&#xA;&#xD;&#xA;Different priority system can be used by different supplier" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
        <profile value="http://hl7.org/fhir/StructureDefinition/code" />
      </type>
    </element>
    <element id="Vacancy.workerType.type.fallback">
      <path value="Vacancy.workerType.type.fallback" />
      <short value="fallback from one performer type to another" />
      <definition value="Fallback options from one required performer type to another. There are two ways of using this field &#xD;&#xA;A) Percentile : This would the percentage of the time prior to shift start date/time to match the performer type. So if this is a 2nd preferred performer type and the unit is &quot;Percentage&quot; and the value &quot;50&quot; then the second performer starts to kick in (for matching) when 50% of the time prior to shift start date is rached &#xD;&#xA;B) Literall: This would be the literall time prior to shif start date/time. So if this is a secondry a 2nd preferred performer type and the unit is &quot;min&quot; and value is &quot;120&quot; then the second performer type starts to kick in (for matching) when 120 min  prior to the shift start time is rached &#xD;&#xA;&#xD;&#xA;The same logic happens when its moved to third and fourth performer type if applicable" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.workerType.type.fallback.unit">
      <path value="Vacancy.workerType.type.fallback.unit" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
        <profile value="http://hl7.org/fhir/StructureDefinition/code" />
      </type>
    </element>
    <element id="Vacancy.workerType.type.fallback.value">
      <path value="Vacancy.workerType.type.fallback.value" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.shiftType">
      <path value="Vacancy.shiftType" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/StructureDefinition/CodeableConcept" />
      </type>
    </element>
    <element id="Vacancy.directEngagement">
      <path value="Vacancy.directEngagement" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.directEngagement.flag">
      <path value="Vacancy.directEngagement.flag" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
    </element>
    <element id="Vacancy.directEngagement.contract">
      <path value="Vacancy.directEngagement.contract" />
      <short value="reference to the DE contract listing the comercials" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.qualifications">
      <path value="Vacancy.qualifications" />
      <short value="An Assignment code that classifies the vacancy" />
      <definition value="Certification, licenses, or training pertaining to the provision of care" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.qualifications.type">
      <path value="Vacancy.qualifications.type" />
      <definition value="speciality, assignmentCode, grade, skills, NMC registration, qualification" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
        <profile value="http://hl7.org/fhir/StructureDefinition/code" />
      </type>
      <binding>
        <strength value="extensible" />
        <valueSet value="https://nhsdigital.comValueSet/qualification-Type" />
      </binding>
    </element>
    <element id="Vacancy.qualifications.priority">
      <path value="Vacancy.qualifications.priority" />
      <short value="Primary or Secondry Assignment" />
      <definition value="P = Primary Assignment Code&#xD;&#xA;S = Secondry Assignment Code" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
        <profile value="http://hl7.org/fhir/StructureDefinition/code" />
      </type>
    </element>
    <element id="Vacancy.qualifications.code">
      <path value="Vacancy.qualifications.code" />
      <short value="Coded representation of the qualification" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Vacancy.qualifications.period">
      <path value="Vacancy.qualifications.period" />
      <short value="Period during which the qualification is valid" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
    </element>
    <element id="Vacancy.qualifications.issuer">
      <path value="Vacancy.qualifications.issuer" />
      <short value="Organization that regulates and issues the qualification" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <profile value="http://developer.nhs.uk/fhir/StructureDefinition/organisation" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="Vacancy.qualifications.fallback">
      <path value="Vacancy.qualifications.fallback" />
      <short value="Fallback Options" />
      <definition value="Fallback options from one required qualification to another. There are two ways of using thi sfield &#xD;&#xA;A) Percentile : This would the percentage of the time prior to shift start date/time to match the qualification instant. So if this is a secondry qualifications and the unit is &quot;Percentage&quot; and the value &quot;50&quot; then the secondry qualification starts to kick in (for matching) when 50% of the time prior to shift start date is rached &#xD;&#xA;B) Literall: This would be the literall time prior to shif start date/time. So if this is a secondry qualifications and the unit is &quot;min&quot; and value is &quot;120&quot; then the seconfry qualification qualification starts to kick in (for matching) when 120 min  prior to the shift start time is rached &#xD;&#xA;&#xD;&#xA;The same logic happens when its moved to third and fourth qualifications" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.qualifications.fallback.unit">
      <path value="Vacancy.qualifications.fallback.unit" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
        <profile value="http://hl7.org/fhir/StructureDefinition/code" />
      </type>
    </element>
    <element id="Vacancy.qualifications.fallback.value">
      <path value="Vacancy.qualifications.fallback.value" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="integer" />
        <profile value="http://hl7.org/fhir/StructureDefinition/integer" />
      </type>
    </element>
    <element id="Vacancy.notes">
      <path value="Vacancy.notes" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.notes.text">
      <path value="Vacancy.notes.text" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.notes.audience">
      <path value="Vacancy.notes.audience" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="code" />
        <profile value="http://hl7.org/fhir/StructureDefinition/code" />
      </type>
    </element>
    <element id="Vacancy.notes.date">
      <path value="Vacancy.notes.date" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="dateTime" />
        <profile value="http://hl7.org/fhir/StructureDefinition/dateTime" />
      </type>
    </element>
    <element id="Vacancy.notes.madeBy">
      <path value="Vacancy.notes.madeBy" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.staffGroup">
      <path value="Vacancy.staffGroup" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Vacancy.payScale">
      <path value="Vacancy.payScale" />
      <short value="A unique description, code of a PAYSCALE for the POSITION or SHIFT" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.payScale.code">
      <path value="Vacancy.payScale.code" />
      <short value="NHS Grade Flexfield" />
      <definition value="e.g. XN02" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
        <profile value="http://hl7.org/fhir/StructureDefinition/code" />
      </type>
    </element>
    <element id="Vacancy.payScale.description">
      <path value="Vacancy.payScale.description" />
      <short value="Payscale Code Description if required" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.payScale.spinePoint">
      <path value="Vacancy.payScale.spinePoint" />
      <short value="Grade Spinal Point" />
      <definition value="The Grade Spinal starting Point as the job starts for an employee. This would be changed as the assigned employee years of experience." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
        <profile value="http://hl7.org/fhir/StructureDefinition/code" />
      </type>
    </element>
    <element id="Vacancy.payScale.type">
      <path value="Vacancy.payScale.type" />
      <short value="National/Local Identifier (Grade)" />
      <definition value="National Codes:&#xD;&#xA;&#xD;&#xA;01 National&#xD;&#xA;02 Local" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
        <profile value="http://hl7.org/fhir/StructureDefinition/code" />
      </type>
    </element>
    <element id="Vacancy.supervisor">
      <path value="Vacancy.supervisor" />
      <short value="Reference to Supervisor" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://developer.nhs.uk/fhir/StructureDefinition/Employee" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="Vacancy.workingPattern">
      <path value="Vacancy.workingPattern" />
      <short value="Assignment work pattern" />
      <definition value="Flexible Working Pattern (if present), &#xD;&#xA;Values are&#xD;&#xA;‘Annualised Hours’&#xD;&#xA;‘Other Flexible Working’&#xD;&#xA;‘Term Time’&#xD;&#xA;‘Vacation Working’" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Vacancy.costCentre">
      <path value="Vacancy.costCentre" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.source">
      <path value="Vacancy.source" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.source.id">
      <path value="Vacancy.source.id" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.source.software">
      <path value="Vacancy.source.software" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.source.version">
      <path value="Vacancy.source.version" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.source.endpoint">
      <path value="Vacancy.source.endpoint" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
        <profile value="http://hl7.org/fhir/StructureDefinition/string" />
      </type>
    </element>
    <element id="Vacancy.destination">
      <path value="Vacancy.destination" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="Vacancy.destination.receiverType">
      <path value="Vacancy.destination.receiverType" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/StructureDefinition/CodeableConcept" />
      </type>
    </element>
    <element id="Vacancy.destination.receiver">
      <path value="Vacancy.destination.receiver" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
      </type>
    </element>
    <element id="Vacancy.basedOn">
      <path value="Vacancy.basedOn" />
      <short value="The position or shift this request is allocated to fulfill" />
      <definition value="Refrence to Position or Shift..." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://developer.nhs.uk/fhir/StructureDefinition/position| http://developer.nhs.uk/fhir/StructureDefinition/shift" />
        <aggregation value="contained" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="Vacancy.partOF">
      <path value="Vacancy.partOF" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
      </type>
    </element>
  </differential>
</StructureDefinition>