{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.nhs.uk/StructureDefinition/NHSDigital-Appointment-PatientCare",
  "name": "NHSDigitalAppointmentPatientCare",
  "status": "draft",
  "purpose": "Profile on NHSDigital-Appointment for NHS App/e-RS PatientCare",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "https://fhir.nhs.uk/StructureDefinition/NHSDigital-Appointment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Appointment.basedOn",
        "path": "Appointment.basedOn",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.participant",
        "path": "Appointment.participant",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "actor.identifier.system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Appointment.participant:service",
        "path": "Appointment.participant",
        "sliceName": "service",
        "short": "HealthcareService",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.participant:service.actor",
        "path": "Appointment.participant.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/StructureDefinition/NHSDigital-HealthcareService"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:service.actor.identifier",
        "path": "Appointment.participant.actor.identifier",
        "min": 1
      },
      {
        "id": "Appointment.participant:service.actor.identifier.system",
        "path": "Appointment.participant.actor.identifier.system",
        "fixedUri": "https://fhir.nhs.uk/Id/ers-service"
      },
      {
        "id": "Appointment.participant:patient",
        "path": "Appointment.participant",
        "sliceName": "patient",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.participant:patient.actor",
        "path": "Appointment.participant.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.nhs.uk/StructureDefinition/NHSDigital-Patient"
            ]
          }
        ]
      },
      {
        "id": "Appointment.participant:patient.actor.identifier",
        "path": "Appointment.participant.actor.identifier",
        "min": 1
      },
      {
        "id": "Appointment.participant:patient.actor.identifier.system",
        "path": "Appointment.participant.actor.identifier.system",
        "fixedUri": "https://fhir.nhs.uk/Id/nhs-number"
      }
    ]
  }
}