{
  "resourceType": "StructureDefinition",
  "id": "base-appointment-healthcareservice-profile",
  "url": "http://fhir.xt.dev/StructureDefinition/BaseAppointmentHealthcareService",
  "version": "0.0.2",
  "name": "BaseAppointmentHealthcareService",
  "status": "draft",
  "date": "2026-05-06T19:45:00+00:00",
  "publisher": "x-tention Informationstechnologie GmbH",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir.profiling@x-tention.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "The abstract base profile for all appointment-related HealthcareServices.",
  "copyright": "x-tention Informationstechnologie GmbH",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": true,
  "type": "HealthcareService",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/HealthcareService",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "HealthcareService.identifier",
        "path": "HealthcareService.identifier",
        "min": 1
      },
      {
        "id": "HealthcareService.providedBy",
        "path": "HealthcareService.providedBy",
        "min": 1
      },
      {
        "id": "HealthcareService.category",
        "path": "HealthcareService.category",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            },
            {
              "type": "value",
              "path": "coding.code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "HealthcareService.category:appointmentServiceType",
        "path": "HealthcareService.category",
        "sliceName": "appointmentServiceType",
        "max": "1"
      },
      {
        "id": "HealthcareService.category:appointmentServiceType.coding",
        "path": "HealthcareService.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "HealthcareService.category:appointmentServiceType.coding.system",
        "path": "HealthcareService.category.coding.system",
        "min": 1,
        "fixedUri": "http://fhir.xt.dev/CodeSystem/ServiceCategory"
      },
      {
        "id": "HealthcareService.category:appointmentServiceType.coding.version",
        "path": "HealthcareService.category.coding.version",
        "max": "0"
      },
      {
        "id": "HealthcareService.category:appointmentServiceType.coding.code",
        "path": "HealthcareService.category.coding.code",
        "min": 1,
        "fixedCode": "appointment"
      },
      {
        "id": "HealthcareService.category:appointmentServiceType.coding.userSelected",
        "path": "HealthcareService.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "HealthcareService.specialty",
        "path": "HealthcareService.specialty",
        "binding": {
          "strength": "preferred",
          "valueSet": "http://ihe-d.de/ValueSets/IHEXDSpracticeSettingCode"
        }
      },
      {
        "id": "HealthcareService.name",
        "path": "HealthcareService.name",
        "min": 1
      },
      {
        "id": "HealthcareService.appointmentRequired",
        "path": "HealthcareService.appointmentRequired",
        "fixedBoolean": true
      }
    ]
  }
}