{
  "resourceType": "OperationDefinition",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2017-06-08T14:36:41.893+00:00"
  },
  "url": "http://www.fhir.org/guides/argonaut/r3/OperationDefinition/Appointment-availability",
  "name": "Appointment Availability",
  "status": "draft",
  "kind": "operation",
  "date": "2017-06-08T00:00:00Z",
  "publisher": "Epic Systems",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "cooper@epic.com"
        }
      ]
    }
  ],
  "description": "Searches for availability for a future appointment.  This operation accepts a preferred date range for an appointment, as well as a specialty, optional list of practitioners, healthcare service, and patient.  For those criteria, it determines which schedulable resources are needed for the visit, and provides time slots where all required resources are available.",
  "code": "availability",
  "resource": [
    "Appointment"
  ],
  "system": false,
  "type": true,
  "instance": false,
  "parameter": [
    {
      "name": "appointment",
      "use": "in",
      "min": 0,
      "max": "1",
      "documentation": "An example Appointment resource with criteria that should be used for finding available Appointments.",
      "type": "Appointment",
      "profile": {
        "reference": "http://www.fhir.org/guides/argonaut/r3/StructureDefinition/TemplateAppointment"
      }
    },
    {
      "name": "proposed-appointments",
      "use": "out",
      "min": 0,
      "max": "1",
      "documentation": "A searchset Bundle of proposed Appointments where all required resources are available.",
      "type": "Bundle"
    },
    {
      "name": "errors",
      "use": "out",
      "min": 0,
      "max": "1",
      "documentation": "A OperationOutcome that represent errors that occured during execution of the operation.",
      "type": "OperationOutcome"
    }
  ]
}