{
  "resourceType": "StructureDefinition",
  "url": "http://oda.fi/fhir/StructureDefinition/stu3/CommunicationRequest",
  "name": "ODA CommunicationRequest",
  "status": "draft",
  "publisher": "SoteDigi Oy",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "CommunicationRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CommunicationRequest.meta.profile",
        "path": "CommunicationRequest.meta.profile",
        "fixedUri": "http://oda.fi/fhir/StructureDefinition/stu3/CommunicationRequest"
      },
      {
        "id": "CommunicationRequest.implicitRules",
        "path": "CommunicationRequest.implicitRules",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.contained",
        "path": "CommunicationRequest.contained",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.identifier",
        "path": "CommunicationRequest.identifier",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.basedOn",
        "path": "CommunicationRequest.basedOn",
        "max": "0",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/CarePlan"
          }
        ]
      },
      {
        "id": "CommunicationRequest.replaces",
        "path": "CommunicationRequest.replaces",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.groupIdentifier",
        "path": "CommunicationRequest.groupIdentifier",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.category",
        "path": "CommunicationRequest.category",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.priority",
        "path": "CommunicationRequest.priority",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.medium",
        "path": "CommunicationRequest.medium",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.subject",
        "path": "CommunicationRequest.subject",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.recipient",
        "path": "CommunicationRequest.recipient",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "CommunicationRequest.topic",
        "path": "CommunicationRequest.topic",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/CarePlan"
          }
        ]
      },
      {
        "id": "CommunicationRequest.topic.id",
        "path": "CommunicationRequest.topic.id",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.topic.extension",
        "path": "CommunicationRequest.topic.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "CommunicationRequest.topic.extension:carePlanActivityId",
        "path": "CommunicationRequest.topic.extension",
        "sliceName": "carePlanActivityId",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://oda.fi/fhir/StructureDefinition/care-plan-activity-id"
          }
        ]
      },
      {
        "id": "CommunicationRequest.topic.extension:referenceTargetType",
        "path": "CommunicationRequest.topic.extension",
        "sliceName": "referenceTargetType",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://oda.fi/fhir/StructureDefinition/reference-target-type"
          }
        ]
      },
      {
        "id": "CommunicationRequest.topic.reference",
        "path": "CommunicationRequest.topic.reference",
        "min": 1
      },
      {
        "id": "CommunicationRequest.topic.identifier",
        "path": "CommunicationRequest.topic.identifier",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.topic.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "CommunicationRequest.topic.display",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.context",
        "path": "CommunicationRequest.context",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.payload",
        "path": "CommunicationRequest.payload",
        "min": 1
      },
      {
        "id": "CommunicationRequest.payload.id",
        "path": "CommunicationRequest.payload.id",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.payload.content[x]",
        "path": "CommunicationRequest.payload.content[x]",
        "type": [
          {
            "code": "string"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ]
      },
      {
        "id": "CommunicationRequest.occurrence[x]:occurrenceDateTime",
        "path": "CommunicationRequest.occurrenceDateTime",
        "sliceName": "occurrenceDateTime",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "CommunicationRequest.occurrence[x]:occurrenceDateTime.id",
        "path": "CommunicationRequest.occurrenceDateTime.id",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.authoredOn",
        "path": "CommunicationRequest.authoredOn",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.sender",
        "path": "CommunicationRequest.sender",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.requester",
        "path": "CommunicationRequest.requester",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.reasonCode",
        "path": "CommunicationRequest.reasonCode",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.reasonReference",
        "path": "CommunicationRequest.reasonReference",
        "max": "0"
      },
      {
        "id": "CommunicationRequest.note",
        "path": "CommunicationRequest.note",
        "max": "0"
      }
    ]
  }
}