{
  "resourceType": "StructureDefinition",
  "id": "recare-patient-request-event",
  "url": "http://fhir.recaresolutions.com/StructureDefinition/recare-patient-request-event",
  "version": "0.1.0",
  "name": "RecarePatientRequestEvent",
  "title": "Recare Patient Request Event",
  "status": "active",
  "experimental": false,
  "publisher": "Recare Deutschland GmbH",
  "description": "Event bundle for patient-initiated care requests in the Admissions API. Contains a RecarePatientRequest ServiceRequest, optional CareLevel observation, insurance coverage, and care provider organization. Encrypted patient data is carried in Binary entries.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "min": 1
      },
      {
        "id": "Bundle.identifier.system",
        "path": "Bundle.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.recaresolutions.com/CodeSystem/event_type"
      },
      {
        "id": "Bundle.identifier.value",
        "path": "Bundle.identifier.value",
        "min": 1
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "collection"
      },
      {
        "id": "Bundle.timestamp",
        "path": "Bundle.timestamp",
        "min": 1
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "resource"
            }
          ],
          "rules": "open"
        },
        "min": 5
      },
      {
        "id": "Bundle.entry.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1
      },
      {
        "id": "Bundle.entry.resource",
        "path": "Bundle.entry.resource",
        "min": 1
      },
      {
        "id": "Bundle.entry:patientRequest",
        "path": "Bundle.entry",
        "sliceName": "patientRequest",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:patientRequest.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "ServiceRequest",
            "profile": [
              "http://fhir.recaresolutions.com/StructureDefinition/recare-patient-request"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:careLevel",
        "path": "Bundle.entry",
        "sliceName": "careLevel",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Bundle.entry:careLevel.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Observation",
            "profile": [
              "http://fhir.recaresolutions.com/StructureDefinition/recare-care-level"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:coverage",
        "path": "Bundle.entry",
        "sliceName": "coverage",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:coverage.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Coverage",
            "profile": [
              "http://fhir.recaresolutions.com/StructureDefinition/recare-statutory-health-insurance",
              "http://fhir.recaresolutions.com/StructureDefinition/recare-private-health-insurance"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:organization",
        "path": "Bundle.entry",
        "sliceName": "organization",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:organization.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Organization",
            "profile": [
              "http://fhir.recaresolutions.com/StructureDefinition/recare-care-provider"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:binarySecrets",
        "path": "Bundle.entry",
        "sliceName": "binarySecrets",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:binarySecrets.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Binary"
          }
        ]
      },
      {
        "id": "Bundle.entry:binaryEncryptedData",
        "path": "Bundle.entry",
        "sliceName": "binaryEncryptedData",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:binaryEncryptedData.resource",
        "path": "Bundle.entry.resource",
        "type": [
          {
            "code": "Binary"
          }
        ]
      }
    ]
  }
}