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