{
  "resourceType" : "OperationDefinition",
  "id" : "FindAppointments",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition FindAppointments</b></p><a name=\"FindAppointments\"> </a><a name=\"hcFindAppointments\"> </a><p>URL: [base]/Appointment/$find</p><p>Output parameters Profile:<a href=\"StructureDefinition-portal-available-appointment.html\">Available Appointment Portal</a></p><h3>Parameters</h3><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</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>start</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#dateTime\">dateTime</a></td><td/><td><div><p>Start of the requested time window for which available appointment opportunities (slots) should be returned.\nThis parameter is mandatory as per IHE ITI Scheduling $find.</p>\n</div></td></tr><tr><td>IN</td><td>end</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#dateTime\">dateTime</a></td><td/><td><div><p>End of the requested time window for which available appointment opportunities (slots) should be returned.\nThis parameter is mandatory as per IHE ITI Scheduling $find.</p>\n</div></td></tr><tr><td>IN</td><td>practitioner</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R4/references.html#Reference\">Reference</a></td><td/><td><div><p>Restrict the search to Appointments where a specific Practitioner is the performer.</p>\n<p>Practitioner is not exposed as a standalone API resource in WOF Portal. This parameter therefore uses a <code>Reference</code> with <code>identifier</code> populated for the logical Practitioner concept, instead of a resolvable FHIR resource reference.</p>\n<p>This follows the IHE ITI-style parameter pattern where the parameter type remains <code>Reference</code>, but the logical target is carried using <code>Reference.identifier</code>.</p>\n<p><strong>Reference.identifier.system:</strong> <code>https://canonical.fhir.link/servicewell/wof-portal/identifier-system/endpoint-identifier-system-for-practitioner/{endpointId}</code></p>\n<p><strong>Reference.identifier.value:</strong> source-system primary key for the practitioner</p>\n</div></td></tr><tr><td>IN</td><td>location</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R4/references.html#Reference\">Reference</a> (<a href=\"StructureDefinition-LocationArea.html\" title=\"http://portal.wof.purified.link/fhir/StructureDefinition/LocationArea\">Location Area</a>)</td><td/><td><div><p>Restrict the search to Appointments at a specific location.</p>\n<p><strong>Format:</strong> <code>Location/{id}</code></p>\n<p><strong>Example:</strong> <code>?location=Location/1234</code></p>\n</div></td></tr><tr><td>IN</td><td>organization</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R4/references.html#Reference\">Reference</a></td><td/><td><div><p>Restrict the search to Appointments associated with a specific billing organization.</p>\n<p>BillingOrganization is not exposed as a standalone API resource in WOF Portal. This parameter therefore uses a <code>Reference</code> with <code>identifier</code> populated for the logical BillingOrganization concept, instead of a resolvable FHIR resource reference.</p>\n<p>This follows the IHE ITI -style parameter pattern where the parameter type remains <code>Reference</code>, but the logical target is carried using <code>Reference.identifier</code>.</p>\n<p><strong>Reference.identifier.system:</strong> <code>https://canonical.fhir.link/servicewell/wof-portal/identifier-system/endpoint-identifier-system-for-billingorganization/{endpointId}</code></p>\n<p><strong>Reference.identifier.value:</strong> source-system primary key for the billing organization</p>\n</div></td></tr><tr><td>IN</td><td>visit-type</td><td/><td>0..*</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td><div><p>Restrict the search to a specific visit type (service type). In this implementation, visit-type\ntypically carries a WOF Connect service-type identifier (e.g., [system]|[code] where code maps to treatmentId).</p>\n</div></td></tr><tr><td>IN</td><td>healthcareService</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/references.html#Reference\">Reference</a> (<a href=\"StructureDefinition-healthcare-service-portal.html\" title=\"https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/healthcare-service-portal\">HealthcareServicePortal</a>)</td><td/><td><div><p>Restrict the search to a specific HealthcareService.</p>\n<p><strong>Format:</strong> <code>HealthcareService/{id}</code></p>\n<p><strong>Example:</strong> <code>?healthcareService=HealthcareService/1234</code></p>\n</div></td></tr><tr><td>IN</td><td>practitionerRole</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/references.html#Reference\">Reference</a> (<a href=\"StructureDefinition-practitioner-role-portal.html\" title=\"https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/practitioner-role-portal\">PractitionerRolePortal</a>)</td><td/><td><div><p>Restrict the search to a specific PractitionerRole.</p>\n<p><strong>Format:</strong> <code>PractitionerRole/{id}</code></p>\n<p><strong>Example:</strong> <code>?practitionerRole=PractitionerRole/1234</code></p>\n</div></td></tr><tr><td>OUT</td><td>return</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a> (<a href=\"StructureDefinition-portal-find-appointment-bundle.html\" title=\"https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/portal-find-appointment-bundle\">Portal Find Appointment response</a>)</td><td/><td><div><p>On success, returns a Bundle that SHALL conform to ihe-sched-avail-bundle, containing the resulting Appointment:</p>\n<ul>\n<li>status 'proposed' for available appointment opportunities (slots)</li>\n</ul>\n<p>Bundels conforming to ihe-sched-avail-bundle:</p>\n<ul>\n<li><a href=\"./StructureDefinition-portal-find-appointment-bundle.html\">portal-find-appointment-bundle</a><br/>\nIf the operation fails, an OperationOutcome is returned instead of this parameter.</li>\n</ul>\n</div></td></tr></table></div>"
  },
  "url" : "https://canonical.fhir.link/servicewell/wof-portal/OperationDefinition/FindAppointments",
  "version" : "1.0.0",
  "name" : "FindAppointments",
  "title" : "Find Appointments (Available Slots)",
  "status" : "active",
  "kind" : "operation",
  "date" : "2026-04-20T08:10:56+00:00",
  "publisher" : "Service Well AB",
  "contact" : [{
    "name" : "Service Well AB",
    "telecom" : [{
      "system" : "url",
      "value" : "https://servicewell.se"
    },
    {
      "system" : "email",
      "value" : "info@servicewell.se"
    }]
  },
  {
    "name" : "Service well",
    "telecom" : [{
      "system" : "email",
      "value" : "info@servicewell.se",
      "use" : "work"
    }]
  }],
  "description" : "Finds available appointment opportunities (slots) and returns them as proposed Appointments.\n\nThis operation corresponds to the IHE ITI Scheduling $find operation and returns\na Bundle of Appointment resources conforming to the IHE Scheduled Availability Bundle profile.",
  "affectsState" : false,
  "code" : "find",
  "base" : "https://profiles.ihe.net/ITI/Scheduling/OperationDefinition/appointment-find",
  "resource" : ["Appointment"],
  "system" : false,
  "type" : true,
  "instance" : false,
  "outputProfile" : "https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/portal-available-appointment",
  "parameter" : [{
    "name" : "start",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "documentation" : "Start of the requested time window for which available appointment opportunities (slots) should be returned.\nThis parameter is mandatory as per IHE ITI Scheduling $find.",
    "type" : "dateTime"
  },
  {
    "name" : "end",
    "use" : "in",
    "min" : 1,
    "max" : "1",
    "documentation" : "End of the requested time window for which available appointment opportunities (slots) should be returned.\nThis parameter is mandatory as per IHE ITI Scheduling $find.",
    "type" : "dateTime"
  },
  {
    "name" : "practitioner",
    "use" : "in",
    "min" : 0,
    "max" : "*",
    "documentation" : "Restrict the search to Appointments where a specific Practitioner is the performer.\n\nPractitioner is not exposed as a standalone API resource in WOF Portal. This parameter therefore uses a `Reference` with `identifier` populated for the logical Practitioner concept, instead of a resolvable FHIR resource reference.\n\nThis follows the IHE ITI-style parameter pattern where the parameter type remains `Reference`, but the logical target is carried using `Reference.identifier`.\n\n**Reference.identifier.system:** `https://canonical.fhir.link/servicewell/wof-portal/identifier-system/endpoint-identifier-system-for-practitioner/{endpointId}`\n\n**Reference.identifier.value:** source-system primary key for the practitioner",
    "type" : "Reference"
  },
  {
    "name" : "location",
    "use" : "in",
    "min" : 0,
    "max" : "*",
    "documentation" : "Restrict the search to Appointments at a specific location.\n\n**Format:** `Location/{id}`  \n\n**Example:** `?location=Location/1234`",
    "type" : "Reference",
    "targetProfile" : ["http://portal.wof.purified.link/fhir/StructureDefinition/LocationArea"]
  },
  {
    "name" : "organization",
    "use" : "in",
    "min" : 0,
    "max" : "*",
    "documentation" : "Restrict the search to Appointments associated with a specific billing organization.\n\nBillingOrganization is not exposed as a standalone API resource in WOF Portal. This parameter therefore uses a `Reference` with `identifier` populated for the logical BillingOrganization concept, instead of a resolvable FHIR resource reference.\n\nThis follows the IHE ITI -style parameter pattern where the parameter type remains `Reference`, but the logical target is carried using `Reference.identifier`.\n\n**Reference.identifier.system:** `https://canonical.fhir.link/servicewell/wof-portal/identifier-system/endpoint-identifier-system-for-billingorganization/{endpointId}`\n\n**Reference.identifier.value:** source-system primary key for the billing organization",
    "type" : "Reference"
  },
  {
    "name" : "visit-type",
    "use" : "in",
    "min" : 0,
    "max" : "*",
    "documentation" : "Restrict the search to a specific visit type (service type). In this implementation, visit-type\ntypically carries a WOF Connect service-type identifier (e.g., [system]|[code] where code maps to treatmentId).",
    "type" : "string"
  },
  {
    "name" : "healthcareService",
    "use" : "in",
    "min" : 0,
    "max" : "1",
    "documentation" : "Restrict the search to a specific HealthcareService.\n\n**Format:** `HealthcareService/{id}`  \n\n**Example:** `?healthcareService=HealthcareService/1234`",
    "type" : "Reference",
    "targetProfile" : ["https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/healthcare-service-portal"]
  },
  {
    "name" : "practitionerRole",
    "use" : "in",
    "min" : 0,
    "max" : "1",
    "documentation" : "Restrict the search to a specific PractitionerRole.\n\n**Format:** `PractitionerRole/{id}`  \n\n**Example:** `?practitionerRole=PractitionerRole/1234`",
    "type" : "Reference",
    "targetProfile" : ["https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/practitioner-role-portal"]
  },
  {
    "name" : "return",
    "use" : "out",
    "min" : 0,
    "max" : "1",
    "documentation" : "On success, returns a Bundle that SHALL conform to ihe-sched-avail-bundle, containing the resulting Appointment:\n- status 'proposed' for available appointment opportunities (slots)\n\nBundels conforming to ihe-sched-avail-bundle:\n- [portal-find-appointment-bundle](./StructureDefinition-portal-find-appointment-bundle.html)  \nIf the operation fails, an OperationOutcome is returned instead of this parameter.",
    "type" : "Bundle",
    "targetProfile" : ["https://canonical.fhir.link/servicewell/wof-portal/StructureDefinition/portal-find-appointment-bundle"]
  }]
}