{
  "resourceType": "StructureDefinition",
  "id": "fr-appointment-operator",
  "url": "http://interopsante.org/fhir/StructureDefinition/FrAppointmentOperator",
  "version": "1.0.1",
  "name": "FrAppointmentOperator",
  "status": "active",
  "date": "2022-10-20",
  "publisher": "InteropSanté",
  "contact": [
    {
      "name": "InteropSanté",
      "telecom": [
        {
          "system": "email",
          "value": "fhir@interopsante.org",
          "use": "work"
        }
      ]
    }
  ],
  "description": "This extension adds the element appointmentOperator to the Appointment resource (operator of creation/update/cancel of the appointment | Cette extension ajoute l'élément appointmentOperator à la ressource Appointment (opérateur de création/modification/annulation du RDV)",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Appointment"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "Optional Extensions Element",
        "definition": "Optional Extension Element - found in all resources.",
        "constraint": [
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"
          }
        ]
      },
      {
        "id": "Extension.value[x]:valueReference",
        "path": "Extension.value[x]",
        "sliceName": "valueReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/StructureDefinition/FrOrganization",
              "http://interopsante.org/fhir/StructureDefinition/FrPractitioner",
              "http://interopsante.org/fhir/StructureDefinition/FrPatient",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ]
      }
    ]
  }
}