{
  "resourceType": "StructureDefinition",
  "id": "DataStandardsWales-Appointment",
  "url": "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Appointment",
  "version": "1.2.0",
  "name": "DataStandardsWalesAppointment",
  "title": "Data Standards Wales Appointment",
  "status": "active",
  "date": "2026-02-02",
  "publisher": "NHS Wales",
  "copyright": "2026 NHS Wales.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Appointment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Appointment.extension:clinicCode",
        "path": "Appointment.extension",
        "sliceName": "clinicCode",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.nhs.wales/StructureDefinition/Extension-DataStandardsWales-ClinicCode"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Appointment.reasonReference",
        "path": "Appointment.reasonReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Observation",
              "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Condition",
              "https://fhir.hl7.org.uk/StructureDefinition/UKCore-Procedure",
              "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-ImmunizationRecommendation"
            ]
          }
        ]
      },
      {
        "id": "Appointment.basedOn",
        "path": "Appointment.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-ServiceRequest"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant.actor",
        "path": "Appointment.participant.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/HealthcareService",
              "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Patient",
              "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Practitioner",
              "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-PractitionerRole",
              "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-RelatedPerson",
              "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Device",
              "https://fhir.nhs.wales/StructureDefinition/DataStandardsWales-Location"
            ]
          }
        ]
      }
    ]
  }
}