Vacancy

Create a vacancy

post/nhsapi/v1/Vacancy

Request

  • Base URL: https://www.example.com
  • URL: https://www.example.com/nhsapi/v1/Vacancy
  • Auth: none declared

Headers

X-External-Account-Tokenstring

External account token for authentication

Request body

resourceTypestring required
statusstring
costCentrestring

Example request

{
  "resourceType": "Vacancy",
  "meta": {
    "profile": "https://api.patchwork.health/Booking"
  },
  "status": "requested",
  "organization": [
    {
      "type": "Organization",
      "identifier": {
        "system": "Patchwork",
        "value": "1"
      },
      "display": "Test Organization",
      "coding": {
        "code": "1"
      }
    },
    {
      "type": "Department",
      "identifier": {
        "system": "Patchwork",
        "value": "2"
      },
      "display": "Test Department",
      "coding": {
        "code": "2"
      }
    },
    {
      "type": "Site",
      "identifier": {
        "system": "Patchwork",
        "value": "3"
      },
      "display": "Test Site",
      "coding": {
        "code": "3"
      }
    }
  ],
  "notes": [
    {
      "type": "admin",
      "text": "Administrative note visible to staff only"
    },
    {
      "type": "worker",
      "text": "Note visible to workers"
    }
  ],
  "costCentre": "validcostcentre",
  "qualifications": [
    {
      "type": "grade",
      "code": {
        "coding": [
          {
            "system": "https://api.patchwork.health/fhir/Grade",
            "code": "1",
            "display": "Foundation Year 1"
          }
        ]
      },
      "priority": "1"
    }
  ],
  "reasonCode": {
    "coding": [
      {
        "system": "Patchwork",
        "code": "1",
        "display": "Sickness"
      }
    ]
  },
  "plannedTime": {
    "timing": [
      {
        "servicePeriod": {
          "start": "10:00:00",
          "end": "18:00:00"
        }
      }
    ]
  },
  "source": {
    "id": "patchwork"
  },
  "trigerredBy": [
    {
      "name": "Test User",
      "type": "confirmedBy"
    }
  ]
}

Response

vacancy created

Changes

No recorded changes to this operation across all 1 revision of this API.