{
  "resourceType": "StructureDefinition",
  "id": "ca-qc-endo-profile-EndoConsent-v0.9.0",
  "url": "https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoConsent",
  "version": "0.9.0",
  "name": "EndoConsent",
  "status": "active",
  "date": "2025-05-14T10:00:00+00:00",
  "description": "Ressource Consentement\n\nChangements à la version 0.9.0:\n\n- statut de la ressource (draft → active)\n- meta.source est obligatoire",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Consent",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Consent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent.meta",
        "path": "Consent.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.meta.source",
        "path": "Consent.meta.source",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.meta.profile",
        "path": "Consent.meta.profile",
        "comment": "Projet endoscopie, utiliser : https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoConsent\r\n\r\nIt is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set.",
        "mustSupport": true
      },
      {
        "id": "Consent.meta.security",
        "path": "Consent.meta.security",
        "mustSupport": true
      },
      {
        "id": "Consent.meta.security.system",
        "path": "Consent.meta.security.system",
        "mustSupport": true
      },
      {
        "id": "Consent.meta.security.code",
        "path": "Consent.meta.security.code",
        "mustSupport": true
      },
      {
        "id": "Consent.meta.security.display",
        "path": "Consent.meta.security.display",
        "mustSupport": true
      },
      {
        "id": "Consent.meta.tag",
        "path": "Consent.meta.tag",
        "mustSupport": true
      },
      {
        "id": "Consent.meta.tag.system",
        "path": "Consent.meta.tag.system",
        "mustSupport": true
      },
      {
        "id": "Consent.meta.tag.code",
        "path": "Consent.meta.tag.code",
        "mustSupport": true
      },
      {
        "id": "Consent.meta.tag.display",
        "path": "Consent.meta.tag.display",
        "mustSupport": true
      },
      {
        "id": "Consent.identifier",
        "path": "Consent.identifier",
        "mustSupport": true
      },
      {
        "id": "Consent.identifier.use",
        "path": "Consent.identifier.use",
        "mustSupport": true
      },
      {
        "id": "Consent.identifier.type",
        "path": "Consent.identifier.type",
        "mustSupport": true
      },
      {
        "id": "Consent.identifier.type.coding",
        "path": "Consent.identifier.type.coding",
        "mustSupport": true
      },
      {
        "id": "Consent.identifier.type.coding.system",
        "path": "Consent.identifier.type.coding.system",
        "mustSupport": true
      },
      {
        "id": "Consent.identifier.type.coding.code",
        "path": "Consent.identifier.type.coding.code",
        "mustSupport": true
      },
      {
        "id": "Consent.identifier.type.coding.display",
        "path": "Consent.identifier.type.coding.display",
        "mustSupport": true
      },
      {
        "id": "Consent.identifier.system",
        "path": "Consent.identifier.system",
        "mustSupport": true
      },
      {
        "id": "Consent.identifier.value",
        "path": "Consent.identifier.value",
        "mustSupport": true
      },
      {
        "id": "Consent.status",
        "path": "Consent.status",
        "mustSupport": true
      },
      {
        "id": "Consent.scope",
        "path": "Consent.scope",
        "definition": "A selector of the type of consent being presented: ADR, Privacy, Treatment, Research.  This list is now extensible.\r\n-----------------------------------\r\nInformation à transmettre:\r\nEndoConsent.scope.coding.code =treatment (à transmettre)\r\nEndoConsent.scope.coding.display= Treatment (à transmettre)",
        "mustSupport": true
      },
      {
        "id": "Consent.scope.coding",
        "path": "Consent.scope.coding",
        "mustSupport": true
      },
      {
        "id": "Consent.scope.coding.code",
        "path": "Consent.scope.coding.code",
        "mustSupport": true
      },
      {
        "id": "Consent.scope.coding.display",
        "path": "Consent.scope.coding.display",
        "mustSupport": true
      },
      {
        "id": "Consent.scope.text",
        "path": "Consent.scope.text",
        "mustSupport": true
      },
      {
        "id": "Consent.category",
        "path": "Consent.category",
        "mustSupport": true
      },
      {
        "id": "Consent.category.coding.code",
        "path": "Consent.category.coding.code",
        "mustSupport": true
      },
      {
        "id": "Consent.category.coding.display",
        "path": "Consent.category.coding.display",
        "mustSupport": true
      },
      {
        "id": "Consent.category.text",
        "path": "Consent.category.text",
        "mustSupport": true
      },
      {
        "id": "Consent.patient",
        "path": "Consent.patient",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoPatient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Consent.patient.reference",
        "path": "Consent.patient.reference",
        "mustSupport": true
      },
      {
        "id": "Consent.policyRule",
        "path": "Consent.policyRule",
        "mustSupport": true
      },
      {
        "id": "Consent.policyRule.coding",
        "path": "Consent.policyRule.coding",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/ValueSet/ConsentementTypeEndo"
        }
      },
      {
        "id": "Consent.policyRule.coding.code",
        "path": "Consent.policyRule.coding.code",
        "mustSupport": true
      },
      {
        "id": "Consent.policyRule.coding.display",
        "path": "Consent.policyRule.coding.display",
        "mustSupport": true
      },
      {
        "id": "Consent.policyRule.text",
        "path": "Consent.policyRule.text",
        "mustSupport": true
      },
      {
        "id": "Consent.provision",
        "path": "Consent.provision",
        "mustSupport": true
      },
      {
        "id": "Consent.provision.extension",
        "path": "Consent.provision.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "mustSupport": true
      },
      {
        "id": "Consent.provision.extension:consentDetails",
        "path": "Consent.provision.extension",
        "sliceName": "consentDetails",
        "short": "Détails du consentement/refus",
        "definition": "Permet la saisie d'informations complémentaires concernant le consetement / refus",
        "comment": "Ex. Raison du refus à la sédation",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/originalText"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Consent.provision.extension:consentDetails.value[x]",
        "path": "Consent.provision.extension.value[x]",
        "mustSupport": true
      },
      {
        "id": "Consent.provision.type",
        "path": "Consent.provision.type",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor",
        "path": "Consent.provision.actor",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor.role",
        "path": "Consent.provision.actor.role",
        "definition": "How the individual is involved in the resources content that is described in the exception.\r\ndefault value: CONSENTER",
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor.role.coding",
        "path": "Consent.provision.actor.role.coding",
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor.role.coding.system",
        "path": "Consent.provision.actor.role.coding.system",
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor.role.coding.code",
        "path": "Consent.provision.actor.role.coding.code",
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor.role.coding.display",
        "path": "Consent.provision.actor.role.coding.display",
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor.reference",
        "path": "Consent.provision.actor.reference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoPatient",
              "https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoPractitioner",
              "https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoRelatedPerson"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor.reference.reference",
        "path": "Consent.provision.actor.reference.reference",
        "mustSupport": true
      },
      {
        "id": "Consent.provision.actor.reference.display",
        "path": "Consent.provision.actor.reference.display",
        "mustSupport": true
      }
    ]
  }
}