{
  "resourceType": "StructureDefinition",
  "id": "Consent-StructureDefinition",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Defines constraints on the Consent resource to support research exemptions, encounter uniqueness, and verification.</p></div>"
  },
  "url": "https://pseudofrog.com/fhir/StructureDefinition/Consent",
  "version": "0.1",
  "name": "Consent",
  "status": "draft",
  "date": "2024-04-14T17:20:17.8695979+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Consent",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Consent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent.extension:extConsentResearchExemption",
        "path": "Consent.extension",
        "sliceName": "extConsentResearchExemption",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://pseudofrog.com/fhir/StructureDefinition/ExtConsentResearchExemption"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Consent.extension:extConsentResearchExemption.extension",
        "path": "Consent.extension.extension",
        "max": "2"
      },
      {
        "id": "Consent.category.coding.system",
        "path": "Consent.category.coding.system",
        "min": 1,
        "fixedUri": "https://pseudofrog.com/fhir/StructureDefinition/ConsentValueSet"
      },
      {
        "id": "Consent.performer",
        "path": "Consent.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ]
      },
      {
        "id": "Consent.source[x]",
        "path": "Consent.source[x]",
        "type": [
          {
            "code": "Attachment"
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/DocumentReference"
            ]
          }
        ]
      },
      {
        "id": "Consent.verification.verifiedWith",
        "path": "Consent.verification.verifiedWith",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
              "http://hl7.org/fhir/StructureDefinition/Encounter"
            ]
          }
        ]
      },
      {
        "id": "Consent.provision.period.start",
        "path": "Consent.provision.period.start",
        "min": 1
      }
    ]
  }
}