{
  "resourceType": "OperationDefinition",
  "id": "appointment-query-searchByEncounter",
  "text": {
    "status": "extensions",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>SearchAppointmentByEncounter</h2><p>QUERY: SearchAppointmentByEncounter</p><p>The official URL for this operation definition is: </p><pre>http://fhir.kisimdocs.ch/ig/KisimScheduling/OperationDefinition/appointment-query-searchByEncounter</pre><p>Parameters</p><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>_query</td><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a><br/>(<a href=\"http://hl7.org/fhir/R4/search.html#string\">string</a>)</td><td><a href=\"http://hl7.org/fhir/R4/valueset-binding-strength.html\">http://hl7.org/fhir/ValueSet/binding-strength</a> (Required)</td><td><div><p>Extended search parameter, value has to be searchByEncounter</p>\n</div></td></tr><tr><td>IN</td><td>encounter</td><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a><br/>(<a href=\"http://hl7.org/fhir/R4/search.html#string\">string</a>)</td><td><a href=\"http://hl7.org/fhir/R4/valueset-binding-strength.html\">http://hl7.org/fhir/ValueSet/binding-strength</a> (Required)</td><td><div><p>The encounter ID.</p>\n</div></td></tr><tr><td>IN</td><td>from</td><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#dateTime\">dateTime</a></td><td><a href=\"http://hl7.org/fhir/R4/valueset-binding-strength.html\">http://hl7.org/fhir/ValueSet/binding-strength</a> (Required)</td><td><div><p>Starting date/time for the search.</p>\n</div></td></tr><tr><td>IN</td><td>to</td><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#dateTime\">dateTime</a></td><td><a href=\"http://hl7.org/fhir/R4/valueset-binding-strength.html\">http://hl7.org/fhir/ValueSet/binding-strength</a> (Required)</td><td><div><p>Stopping date/time for the search.</p>\n</div></td></tr><tr><td>OUT</td><td>return</td><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></td><td><a href=\"http://hl7.org/fhir/R4/valueset-binding-strength.html\">http://hl7.org/fhir/ValueSet/binding-strength</a> (Required)</td><td><div><p>A bundle of appointment ressources.</p>\n</div></td></tr></table></div>"
  },
  "url": "http://fhir.kisimdocs.ch/ig/KisimScheduling/OperationDefinition/appointment-query-searchByEncounter",
  "version": "0.2.0",
  "name": "SearchAppointmentByEncounter",
  "status": "draft",
  "kind": "query",
  "date": "2022-10-05T16:49:12+02:00",
  "publisher": "Cistec AG",
  "contact": [
    {
      "name": "Cistec AG",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.cistec.com"
        },
        {
          "system": "email",
          "value": "robert.birri@cistec.com"
        }
      ]
    }
  ],
  "code": "searchByUser",
  "resource": [
    "Appointment"
  ],
  "system": false,
  "type": false,
  "instance": false,
  "parameter": [
    {
      "name": "_query",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "Extended search parameter, value has to be searchByEncounter",
      "type": "string",
      "searchType": "string",
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/binding-strength"
      }
    },
    {
      "name": "encounter",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "The encounter ID.",
      "type": "string",
      "searchType": "string",
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/binding-strength"
      }
    },
    {
      "name": "from",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "Starting date/time for the search.",
      "type": "dateTime",
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/binding-strength"
      }
    },
    {
      "name": "to",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "Stopping date/time for the search.",
      "type": "dateTime",
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/binding-strength"
      }
    },
    {
      "name": "return",
      "use": "out",
      "min": 0,
      "max": "1",
      "documentation": "A bundle of appointment ressources.",
      "type": "Bundle",
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/binding-strength"
      }
    }
  ]
}