{
  "resourceType": "StructureDefinition",
  "id": "mes-appointment",
  "url": "https://fhir.monespacesante.fr/ref/agenda/StructureDefinition/mes-appointment",
  "name": "MESFrAppointment",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "http://interopsante.org/fhir/StructureDefinition/FrAppointment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Appointment.meta",
        "path": "Appointment.meta"
      },
      {
        "id": "Appointment.meta.profile",
        "path": "Appointment.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://fhir.monespacesante.fr/ref/agenda/StructureDefinition/mes-appointment"
      },
      {
        "id": "Appointment.contained",
        "path": "Appointment.contained",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "meta.profile"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Appointment.contained:sliceLocation",
        "path": "Appointment.contained",
        "sliceName": "sliceLocation",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.monespacesante.fr/ref/agenda/StructureDefinition/mes-location"
            ]
          }
        ]
      },
      {
        "id": "Appointment.contained:sliceHealthcareService",
        "path": "Appointment.contained",
        "sliceName": "sliceHealthcareService",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.monespacesante.fr/ref/agenda/StructureDefinition/mes-healthcare-service"
            ]
          }
        ]
      },
      {
        "id": "Appointment.contained:sliceOrganization",
        "path": "Appointment.contained",
        "sliceName": "sliceOrganization",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.monespacesante.fr/ref/agenda/StructureDefinition/mes-organization"
            ]
          }
        ]
      },
      {
        "id": "Appointment.contained:slicePractitioner",
        "path": "Appointment.contained",
        "sliceName": "slicePractitioner",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.monespacesante.fr/ref/agenda/StructureDefinition/mes-practitioner"
            ]
          }
        ]
      },
      {
        "id": "Appointment.identifier",
        "path": "Appointment.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "id"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Appointment.identifier.system",
        "path": "Appointment.identifier.system",
        "min": 1
      },
      {
        "id": "Appointment.identifier.value",
        "path": "Appointment.identifier.value",
        "min": 1
      },
      {
        "id": "Appointment.identifier:identifierLocal",
        "path": "Appointment.identifier",
        "sliceName": "identifierLocal",
        "max": "1"
      },
      {
        "id": "Appointment.identifier:identifierLocal.id",
        "path": "Appointment.identifier.id",
        "fixedString": "identifierLocal"
      },
      {
        "id": "Appointment.start",
        "path": "Appointment.start",
        "min": 1
      }
    ]
  }
}