{
  "resourceType": "StructureDefinition",
  "id": "PatientConsent",
  "url": "http://hl7.org/fhir/us/bser/StructureDefinition/PatientConsent",
  "name": "BSeR Patient Consent",
  "status": "draft",
  "publisher": "Hi3 Solutions",
  "contact": [
    {
      "name": "AbdulMalik Shakir",
      "telecom": [
        {
          "system": "phone",
          "value": "6266444491",
          "use": "work"
        },
        {
          "system": "email",
          "value": "abdulmalik.shakir@hi3solutions.com",
          "use": "work"
        }
      ]
    }
  ],
  "kind": "resource",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Consent"
  ],
  "type": "Consent",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Consent",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Consent",
        "path": "Consent"
      },
      {
        "id": "Consent.id",
        "path": "Consent.id",
        "short": "id",
        "definition": "MAY contain zero or one [0..1] id (CONF:4383-774).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Consent.meta",
        "path": "Consent.meta",
        "short": "meta",
        "definition": "MAY contain zero or one [0..1] meta (CONF:4383-773).",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Consent.meta.profile",
        "path": "Consent.meta.profile",
        "short": "profile",
        "definition": "The meta, if present, SHALL contain exactly one [1..1] profile=\"http://hl7.org/fhir/us/bser/StructureDefinition/PatientConsent\" (CONF:4383-775).",
        "min": 1,
        "max": "1",
        "patternString": "http://hl7.org/fhir/us/bser/StructureDefinition/PatientConsent"
      },
      {
        "id": "Consent.status",
        "path": "Consent.status",
        "short": "status",
        "definition": "SHALL contain exactly one [1..1] status, which SHALL be selected from ValueSet Event-status http://hl7.org/fhir/ValueSet/event-status DYNAMIC (CONF:4383-119).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/event-status",
            "display": "Event-status"
          }
        }
      },
      {
        "id": "Consent.category",
        "path": "Consent.category",
        "short": "category",
        "definition": "SHALL contain exactly one [1..1] category, which SHALL be selected from ValueSet Consent-category http://hl7.org/fhir/ValueSet/consent-category DYNAMIC (CONF:4383-124).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/consent-category",
            "display": "Consent-category"
          }
        }
      },
      {
        "id": "Consent.patient",
        "path": "Consent.patient",
        "short": "patient",
        "definition": "SHALL contain exactly one [1..1] =\"BSeR Patient\"BSeR Patient (identifier: http://hl7.org/fhir/us/bser/StructureDefinition/PatientRole) (CONF:4383-120).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/us/bser/StructureDefinition/PatientRole"
          }
        ],
        "patternString": "BSeR Patient"
      },
      {
        "id": "Consent.dateTime",
        "path": "Consent.dateTime",
        "short": "dateTime",
        "definition": "SHALL contain exactly one [1..1] dateTime (CONF:4383-125).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Consent.consentingParty",
        "path": "Consent.consentingParty",
        "short": "consentingParty",
        "definition": "SHALL contain at least one [1..*] =\"BSeR Related Person\"BSeR Related Person (identifier: http://hl7.org/fhir/us/bser/StructureDefinition/PatientRelatedPerson) (CONF:4383-121).",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/us/bser/StructureDefinition/PatientRelatedPerson"
          }
        ],
        "patternString": "BSeR Related Person"
      },
      {
        "id": "Consent.actor",
        "path": "Consent.actor",
        "short": "actor",
        "definition": "SHALL contain at least one [1..*] actor (CONF:4383-122).",
        "min": 1,
        "max": "*"
      },
      {
        "id": "Consent.actor.role",
        "path": "Consent.actor.role",
        "short": "role",
        "definition": "Such actors SHALL contain exactly one [1..1] role, which SHALL be selected from ValueSet Security-role-type http://hl7.org/fhir/ValueSet/security-role-type DYNAMIC (CONF:4383-126).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/security-role-type",
            "display": "Security-role-type"
          }
        }
      },
      {
        "id": "Consent.actor.reference",
        "path": "Consent.actor.reference",
        "short": "reference",
        "definition": "Such actors SHALL contain exactly one [1..1] =\"BSeR Practitioner\"BSeR Practitioner (identifier: http://hl7.org/fhir/us/bser/StructureDefinition/PractitionerPerson) (CONF:4383-123).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/us/bser/StructureDefinition/PractitionerPerson"
          }
        ],
        "patternString": "BSeR Practitioner"
      }
    ]
  }
}