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