{
  "resourceType": "OperationDefinition",
  "id": "appointment-query-searchByPlan",
  "text": {
    "status": "extensions",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>SearchAppointmentByPlan</h2><p>QUERY: SearchAppointmentByPlan</p><p>The official URL for this operation definition is: </p><pre>http://fhir.kisimdocs.ch/ig/KisimScheduling/OperationDefinition/appointment-query-searchByPlan</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 searchByPlan</p>\n</div></td></tr><tr><td>IN</td><td>planIcode</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>Search definition inside ERP. UUID-Format</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#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>Starting time for the search. Accepted formats are: &quot;yyyy-mm-dd hh:ii&quot; or  &quot;yyyy-mm-dd&quot;.</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#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>Stopping time for the search. Accepted formats are: &quot;yyyy-mm-dd hh:ii&quot; or  &quot;yyyy-mm-dd&quot;.</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-searchByPlan",
  "version": "0.2.0",
  "name": "SearchAppointmentByPlan",
  "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": "searchByPlan",
  "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 searchByPlan",
      "type": "string",
      "searchType": "string",
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/binding-strength"
      }
    },
    {
      "name": "planIcode",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "Search definition inside ERP. UUID-Format",
      "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 time for the search. Accepted formats are: \"yyyy-mm-dd hh:ii\" or  \"yyyy-mm-dd\".",
      "type": "string",
      "searchType": "string",
      "binding": {
        "strength": "required",
        "valueSet": "http://hl7.org/fhir/ValueSet/binding-strength"
      }
    },
    {
      "name": "to",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "Stopping time for the search. Accepted formats are: \"yyyy-mm-dd hh:ii\" or  \"yyyy-mm-dd\".",
      "type": "string",
      "searchType": "string",
      "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"
      }
    }
  ]
}