{
  "resourceType": "StructureDefinition",
  "id": "54a544b4-9732-4408-aade-010ee12f68b9",
  "meta": {
    "lastUpdated": "2019-09-10T13:34:35.2924577+00:00"
  },
  "url": "http://www.helict.de/fhir/StructureDefinition/QuestionnaireCommunicationRequest",
  "version": "0.0.1",
  "name": "QuestionnaireCommunicationRequest",
  "status": "draft",
  "date": "2019-09-10T13:10:49.9647396Z",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "CommunicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "CommunicationRequest.id",
        "path": "CommunicationRequest.id",
        "min": 1
      },
      {
        "id": "CommunicationRequest.meta.profile",
        "path": "CommunicationRequest.meta.profile",
        "min": 1,
        "max": "1",
        "fixedUri": "http://www.helict.de/fhir/StructureDefinition/QuestionnaireCommunicationRequest"
      },
      {
        "id": "CommunicationRequest.meta.tag",
        "path": "CommunicationRequest.meta.tag",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.meta.tag.system",
        "path": "CommunicationRequest.meta.tag.system",
        "fixedUri": "http://hl7.org/fhir/common-tags"
      },
      {
        "id": "CommunicationRequest.meta.tag.code",
        "path": "CommunicationRequest.meta.tag.code",
        "fixedCode": "actionable"
      },
      {
        "id": "CommunicationRequest.identifier",
        "path": "CommunicationRequest.identifier",
        "comment": "GUID + System-Namespace der Anfrage",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.identifier.system",
        "path": "CommunicationRequest.identifier.system",
        "min": 1
      },
      {
        "id": "CommunicationRequest.identifier.value",
        "path": "CommunicationRequest.identifier.value",
        "min": 1
      },
      {
        "id": "CommunicationRequest.basedOn",
        "path": "CommunicationRequest.basedOn",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.replaces",
        "path": "CommunicationRequest.replaces",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.groupIdentifier",
        "path": "CommunicationRequest.groupIdentifier",
        "comment": "GUID der Anfragen der Patientenkohorte MSDS(3D)"
      },
      {
        "id": "CommunicationRequest.status",
        "path": "CommunicationRequest.status",
        "defaultValueCode": "active",
        "fixedCode": "active"
      },
      {
        "id": "CommunicationRequest.category",
        "path": "CommunicationRequest.category",
        "min": 1,
        "max": "1",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/communication-category",
              "code": "notification"
            }
          ]
        },
        "binding": {
          "strength": "required",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/communication-category"
        }
      },
      {
        "id": "CommunicationRequest.priority",
        "path": "CommunicationRequest.priority",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.medium",
        "path": "CommunicationRequest.medium",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.medium.coding",
        "path": "CommunicationRequest.medium.coding",
        "min": 1,
        "max": "1",
        "fixedCoding": {
          "system": "http://hl7.org/fhir/v3/ParticipationMode",
          "code": "ONLINEWRIT"
        },
        "binding": {
          "strength": "required",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/v3-ParticipationMode"
        }
      },
      {
        "id": "CommunicationRequest.subject",
        "path": "CommunicationRequest.subject",
        "definition": "The patient that is the focus of this communication request.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "CommunicationRequest.subject.identifier",
        "path": "CommunicationRequest.subject.identifier",
        "min": 1
      },
      {
        "id": "CommunicationRequest.subject.identifier.system",
        "path": "CommunicationRequest.subject.identifier.system",
        "min": 1
      },
      {
        "id": "CommunicationRequest.subject.identifier.value",
        "path": "CommunicationRequest.subject.identifier.value",
        "min": 1
      },
      {
        "id": "CommunicationRequest.recipient",
        "path": "CommunicationRequest.recipient",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "identifier.type"
            }
          ],
          "rules": "open"
        },
        "min": 2,
        "max": "2",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "CommunicationRequest.recipient:filler",
        "path": "CommunicationRequest.recipient",
        "sliceName": "filler",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
          }
        ]
      },
      {
        "id": "CommunicationRequest.recipient:filler.identifier",
        "path": "CommunicationRequest.recipient.identifier",
        "min": 1
      },
      {
        "id": "CommunicationRequest.recipient:filler.identifier.type",
        "path": "CommunicationRequest.recipient.identifier.type",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/identifier-type",
              "code": "FILL"
            }
          ]
        }
      },
      {
        "id": "CommunicationRequest.recipient:filler.identifier.system",
        "path": "CommunicationRequest.recipient.identifier.system",
        "min": 1
      },
      {
        "id": "CommunicationRequest.recipient:filler.identifier.value",
        "path": "CommunicationRequest.recipient.identifier.value",
        "min": 1
      },
      {
        "id": "CommunicationRequest.recipient:placer",
        "path": "CommunicationRequest.recipient",
        "sliceName": "placer",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device"
          }
        ]
      },
      {
        "id": "CommunicationRequest.recipient:placer.reference",
        "path": "CommunicationRequest.recipient.reference",
        "short": "The endpoint where to send the accept/refuse message, and (if accept) to get the final questionnaire url from."
      },
      {
        "id": "CommunicationRequest.recipient:placer.identifier",
        "path": "CommunicationRequest.recipient.identifier",
        "min": 1
      },
      {
        "id": "CommunicationRequest.recipient:placer.identifier.type",
        "path": "CommunicationRequest.recipient.identifier.type",
        "min": 1,
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "http://hl7.org/fhir/identifier-type",
              "code": "PLAC"
            }
          ]
        }
      },
      {
        "id": "CommunicationRequest.recipient:placer.identifier.system",
        "path": "CommunicationRequest.recipient.identifier.system",
        "min": 1
      },
      {
        "id": "CommunicationRequest.recipient:placer.identifier.value",
        "path": "CommunicationRequest.recipient.identifier.value",
        "short": "The value here represents the Synquest URL where to send the confirm/refuse message to retrieve the final questionnaire url.",
        "min": 1
      },
      {
        "id": "CommunicationRequest.topic",
        "path": "CommunicationRequest.topic",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.payload",
        "path": "CommunicationRequest.payload",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.payload.content[x]:contentReference",
        "path": "CommunicationRequest.payload.contentReference",
        "sliceName": "contentReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://www.helict.de/fhir/StructureDefinition/SynquestQuestionnaire"
          }
        ]
      },
      {
        "id": "CommunicationRequest.payload.content[x]:contentReference.identifier",
        "path": "CommunicationRequest.payload.contentReference.identifier",
        "min": 1
      },
      {
        "id": "CommunicationRequest.payload.content[x]:contentReference.identifier.system",
        "path": "CommunicationRequest.payload.contentReference.identifier.system",
        "min": 1
      },
      {
        "id": "CommunicationRequest.payload.content[x]:contentReference.identifier.value",
        "path": "CommunicationRequest.payload.contentReference.identifier.value",
        "min": 1
      },
      {
        "id": "CommunicationRequest.occurrence[x]:occurrencePeriod",
        "path": "CommunicationRequest.occurrencePeriod",
        "sliceName": "occurrencePeriod",
        "min": 1,
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "CommunicationRequest.authoredOn",
        "path": "CommunicationRequest.authoredOn",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.sender",
        "path": "CommunicationRequest.sender",
        "min": 1
      },
      {
        "id": "CommunicationRequest.requester",
        "path": "CommunicationRequest.requester",
        "min": 1
      },
      {
        "id": "CommunicationRequest.requester.agent.identifier",
        "path": "CommunicationRequest.requester.agent.identifier",
        "min": 1
      },
      {
        "id": "CommunicationRequest.requester.agent.identifier.system",
        "path": "CommunicationRequest.requester.agent.identifier.system",
        "min": 1
      },
      {
        "id": "CommunicationRequest.requester.agent.identifier.value",
        "path": "CommunicationRequest.requester.agent.identifier.value",
        "min": 1
      },
      {
        "id": "CommunicationRequest.requester.onBehalfOf.identifier",
        "path": "CommunicationRequest.requester.onBehalfOf.identifier",
        "min": 1
      },
      {
        "id": "CommunicationRequest.requester.onBehalfOf.identifier.type.coding",
        "path": "CommunicationRequest.requester.onBehalfOf.identifier.type.coding",
        "max": "1"
      },
      {
        "id": "CommunicationRequest.requester.onBehalfOf.identifier.system",
        "path": "CommunicationRequest.requester.onBehalfOf.identifier.system",
        "min": 1
      },
      {
        "id": "CommunicationRequest.requester.onBehalfOf.identifier.value",
        "path": "CommunicationRequest.requester.onBehalfOf.identifier.value",
        "min": 1
      },
      {
        "id": "CommunicationRequest.reasonCode",
        "path": "CommunicationRequest.reasonCode",
        "min": 1,
        "binding": {
          "strength": "example",
          "valueSetUri": "http://hl7.org/fhir/ValueSet/v3-ActReason"
        }
      },
      {
        "id": "CommunicationRequest.reasonCode.coding",
        "path": "CommunicationRequest.reasonCode.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "CommunicationRequest.reasonCode.coding.system",
        "path": "CommunicationRequest.reasonCode.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v3/ActReason"
      },
      {
        "id": "CommunicationRequest.reasonCode.coding.code",
        "path": "CommunicationRequest.reasonCode.coding.code",
        "comment": "Verwendet werden sollten:\r\nSCH - scheduled\r\nUNS - unscheduled\r\nNPT - non-protocol\r\nPPT - per protocol\r\nUPT - per definition",
        "min": 1
      },
      {
        "id": "CommunicationRequest.reasonReference",
        "path": "CommunicationRequest.reasonReference",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.note",
        "path": "CommunicationRequest.note",
        "max": "0"
      }
    ]
  }
}