{
  "resourceType": "StructureDefinition",
  "id": "sgrdv-base-find-response-appointment",
  "url": "http://sante.quebec/fhir/StructureDefinition/sgrdv-base-find-response-appointment",
  "name": "SGRDVBaseFindResponseAppointment",
  "title": "Disponibilité retournée par la recherche (Base)",
  "status": "active",
  "experimental": true,
  "description": "Profil neutre d'un rendez-vous (disponibilité) retourné dans la réponse à l'opération $find.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Appointment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Appointment.extension",
        "path": "Appointment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "id": "Appointment.extension:encounter",
        "path": "Appointment.extension",
        "sliceName": "encounter",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://sante.quebec/fhir/StructureDefinition/sgrdv-appointment-encounter"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Appointment.extension:encounter.value[x]",
        "path": "Appointment.extension.value[x]",
        "mustSupport": true
      },
      {
        "id": "Appointment.identifier",
        "path": "Appointment.identifier",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Appointment.identifier.type",
        "path": "Appointment.identifier.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Appointment.identifier.type.coding",
        "path": "Appointment.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.identifier.type.coding.system",
        "path": "Appointment.identifier.type.coding.system",
        "fixedUri": "http://sante.quebec/fhir/CodeSystem/sgrdv-identifier-type"
      },
      {
        "id": "Appointment.identifier.type.coding.code",
        "path": "Appointment.identifier.type.coding.code",
        "fixedCode": "IdDispoDME"
      },
      {
        "id": "Appointment.identifier.system",
        "path": "Appointment.identifier.system",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Appointment.identifier.value",
        "path": "Appointment.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Appointment.status",
        "path": "Appointment.status",
        "mustSupport": true
      },
      {
        "id": "Appointment.serviceCategory",
        "path": "Appointment.serviceCategory",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://sante.quebec/fhir/ValueSet/sgrdv-timeslot-category-vs"
        }
      },
      {
        "id": "Appointment.serviceCategory.coding",
        "path": "Appointment.serviceCategory.coding",
        "mustSupport": true
      },
      {
        "id": "Appointment.serviceCategory.coding.system",
        "path": "Appointment.serviceCategory.coding.system",
        "fixedUri": "http://sante.quebec/fhir/CodeSystem/sgrdv-timeslot-category"
      },
      {
        "id": "Appointment.serviceCategory.coding.code",
        "path": "Appointment.serviceCategory.coding.code",
        "mustSupport": true
      },
      {
        "id": "Appointment.serviceType",
        "path": "Appointment.serviceType",
        "max": "1",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://sante.quebec/fhir/ValueSet/sgrdv-trajectoire-vs"
        }
      },
      {
        "id": "Appointment.serviceType.coding",
        "path": "Appointment.serviceType.coding",
        "mustSupport": true
      },
      {
        "id": "Appointment.serviceType.coding.system",
        "path": "Appointment.serviceType.coding.system",
        "fixedUri": "http://sante.quebec/fhir/CodeSystem/sgrdv-trajectoire"
      },
      {
        "id": "Appointment.serviceType.coding.code",
        "path": "Appointment.serviceType.coding.code",
        "mustSupport": true
      },
      {
        "id": "Appointment.appointmentType",
        "path": "Appointment.appointmentType",
        "min": 1,
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "http://sante.quebec/fhir/ValueSet/sgrdv-appointment-type-vs"
        }
      },
      {
        "id": "Appointment.appointmentType.coding",
        "path": "Appointment.appointmentType.coding",
        "mustSupport": true
      },
      {
        "id": "Appointment.appointmentType.coding.system",
        "path": "Appointment.appointmentType.coding.system",
        "fixedUri": "http://sante.quebec/fhir/CodeSystem/sgrdv-appointment-type"
      },
      {
        "id": "Appointment.appointmentType.coding.code",
        "path": "Appointment.appointmentType.coding.code",
        "mustSupport": true
      },
      {
        "id": "Appointment.start",
        "path": "Appointment.start",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Appointment.end",
        "path": "Appointment.end",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Appointment.slot",
        "path": "Appointment.slot",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://sante.quebec/fhir/StructureDefinition/sgrdv-base-dme-slot"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Appointment.slot.reference",
        "path": "Appointment.slot.reference",
        "max": "0"
      },
      {
        "id": "Appointment.slot.identifier",
        "path": "Appointment.slot.identifier",
        "min": 1
      },
      {
        "id": "Appointment.slot.identifier.type",
        "path": "Appointment.slot.identifier.type",
        "min": 1
      },
      {
        "id": "Appointment.slot.identifier.type.coding",
        "path": "Appointment.slot.identifier.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Appointment.slot.identifier.type.coding.system",
        "path": "Appointment.slot.identifier.type.coding.system",
        "fixedUri": "http://sante.quebec/fhir/CodeSystem/sgrdv-identifier-type"
      },
      {
        "id": "Appointment.slot.identifier.type.coding.code",
        "path": "Appointment.slot.identifier.type.coding.code",
        "fixedCode": "IdSlotDME"
      },
      {
        "id": "Appointment.slot.identifier.system",
        "path": "Appointment.slot.identifier.system",
        "min": 1
      },
      {
        "id": "Appointment.slot.identifier.value",
        "path": "Appointment.slot.identifier.value",
        "min": 1
      },
      {
        "id": "Appointment.participant",
        "path": "Appointment.participant",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "actor"
            }
          ],
          "rules": "open"
        },
        "min": 2,
        "mustSupport": true
      },
      {
        "id": "Appointment.participant:practitionerRole",
        "path": "Appointment.participant",
        "sliceName": "practitionerRole",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Appointment.participant:practitionerRole.actor",
        "path": "Appointment.participant.actor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://sante.quebec/fhir/StructureDefinition/sgrdv-base-find-response-practitioner-role"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Appointment.participant:location",
        "path": "Appointment.participant",
        "sliceName": "location",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Appointment.participant:location.actor",
        "path": "Appointment.participant.actor",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://sante.quebec/fhir/StructureDefinition/sgrdv-base-find-response-location"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}