TIFlow - Verordnungen für Arzneimittel
Version 2.0.0-ballot.1 - ci-build

## Resource Profile: GEM_ERP_PR_Task - XML Profile

Active as of 2028-04-01

XML representation of the GEM-ERP-PR-Task resource profile.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="GEM-ERP-PR-Task"/>
      <url
           value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task"/>
      <version value="2.0.0-ballot.1"/>
      <name value="GEM_ERP_PR_Task"/>
      <title value="Task für E-Rezept"/>
      <status value="active"/>
      <experimental value="false"/>
      <date value="2028-04-01"/>
      <publisher value="gematik GmbH"/>
      <contact>
        <name value="gematik GmbH"/>
        <telecom>
          <system value="url"/>
          <value value="https://gematik.de"/>
        </telecom>
        <telecom>
          <system value="email"/>
          <value value="erp-umsetzung@gematik.de"/>
        </telecom>
      </contact>
      <description value="Task für die Verwaltung des E-Rezept-Workflows"/>
      <jurisdiction>
        <coding>
          <system value="urn:iso:std:iso:3166"/>
          <code value="DE"/>
          <display value="Germany"/>
        </coding>
      </jurisdiction>
      <copyright
                 value="gematik GmbH / Dieses Artefakt ist lizenziert unter [Apache License](./license.html), Version 2.0."/>
      <fhirVersion value="4.0.1"/>
      <mapping>
        <identity value="workflow"/>
        <uri value="http://hl7.org/fhir/workflow"/>
        <name value="Workflow Pattern"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <uri value="http://hl7.org/v3"/>
        <name value="RIM Mapping"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <uri value="http://hl7.org/fhir/fivews"/>
        <name value="FiveWs Pattern Mapping"/>
      </mapping>
      <mapping>
        <identity value="v2"/>
        <uri value="http://hl7.org/v2"/>
        <name value="HL7 v2 Mapping"/>
      </mapping>
      <kind value="resource"/>
      <abstract value="false"/>
      <type value="Task"/>
      <baseDefinition
                      value="https://gematik.de/fhir/tiflow/StructureDefinition/ti-task"/>
      <derivation value="constraint"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="2.0.0-ballot.1"/>
        </extension>
        <element id="Task">
          <path value="Task"/>
          <short value="A task to be performed"/>
          <definition value="A task to be performed."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Task"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <constraint>
            <key value="dom-2"/>
            <severity value="error"/>
            <human
                   value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/>
            <expression value="contained.contained.empty()"/>
            <xpath value="not(parent::f:contained and f:contained)"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Task"/>
          </constraint>
          <constraint>
            <key value="dom-3"/>
            <severity value="error"/>
            <human
                   value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource"/>
            <expression
                        value="contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()"/>
            <xpath
                   value="not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Task"/>
          </constraint>
          <constraint>
            <key value="dom-4"/>
            <severity value="error"/>
            <human
                   value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/>
            <expression
                        value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/>
            <xpath
                   value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Task"/>
          </constraint>
          <constraint>
            <key value="dom-5"/>
            <severity value="error"/>
            <human
                   value="If a resource is contained in another resource, it SHALL NOT have a security label"/>
            <expression value="contained.meta.security.empty()"/>
            <xpath value="not(exists(f:contained/*/f:meta/f:security))"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Task"/>
          </constraint>
          <constraint>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
              <valueBoolean value="true"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation">
              <valueMarkdown
                             value="When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."/>
            </extension>
            <key value="dom-6"/>
            <severity value="warning"/>
            <human
                   value="A resource should have narrative for robust management"/>
            <expression value="text.`div`.exists()"/>
            <xpath value="exists(f:text/h:div)"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Task"/>
          </constraint>
          <constraint>
            <key value="inv-1"/>
            <severity value="error"/>
            <human
                   value="Last modified date must be greater than or equal to authored-on date."/>
            <expression
                        value="lastModified.exists().not() or authoredOn.exists().not() or lastModified &gt;= authoredOn"/>
            <xpath
                   value="not(exists(f:lastModified/@value)) or not(exists(f:authoredOn/@value)) or f:lastModified/@value &gt;= f:authoredOn/@value"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Task"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="Entity. Role, or Act"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request, Event"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="ControlAct[moodCode=INT]"/>
          </mapping>
        </element>
        <element id="Task.id">
          <path value="Task.id"/>
          <short value="Logical id of this artifact"/>
          <definition
                      value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/>
          <comment
                   value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="id"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Task.meta">
          <path value="Task.meta"/>
          <short value="Metadata about the resource"/>
          <definition
                      value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Resource.meta"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Meta"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Task.meta.id">
          <path value="Task.meta.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.meta.extension">
          <path value="Task.meta.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.meta.versionId">
          <path value="Task.meta.versionId"/>
          <short value="Version specific identifier"/>
          <definition
                      value="The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted."/>
          <comment
                   value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Meta.versionId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="id"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Task.meta.lastUpdated">
          <path value="Task.meta.lastUpdated"/>
          <short value="When the resource version last changed"/>
          <definition
                      value="When the resource last changed - e.g. when the version changed."/>
          <comment
                   value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http://hl7.org/fhir/R4/http.html#read) interaction."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Meta.lastUpdated"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="instant"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Task.meta.source">
          <path value="Task.meta.source"/>
          <short value="Identifies where the resource comes from"/>
          <definition
                      value="A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](http://hl7.org/fhir/R4/provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc."/>
          <comment
                   value="In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used.

    This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Meta.source"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Task.meta.profile">
          <path value="Task.meta.profile"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="$this"/>
            </discriminator>
            <description value="Slicing für meta profile"/>
            <ordered value="false"/>
            <rules value="closed"/>
          </slicing>
          <short value="Profiles this resource claims to conform to"/>
          <definition
                      value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)."/>
          <comment
                   value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Meta.profile"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="canonical"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/StructureDefinition|4.0.1"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Task.meta.profile:workflowProfile">
          <path value="Task.meta.profile"/>
          <sliceName value="workflowProfile"/>
          <short value="Profiles this resource claims to conform to"/>
          <definition
                      value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/R4/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](http://hl7.org/fhir/R4/structuredefinition-definitions.html#StructureDefinition.url)."/>
          <comment
                   value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Meta.profile"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="canonical"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/StructureDefinition|4.0.1"/>
          </type>
          <fixedCanonical
                          value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task|2.0"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Task.meta.security">
          <path value="Task.meta.security"/>
          <short value="Security Labels applied to this resource"/>
          <definition
                      value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/>
          <comment
                   value="The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Meta.security"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="SecurityLabels"/>
            </extension>
            <strength value="extensible"/>
            <description
                         value="Security Labels from the Healthcare Privacy and Security Classification System."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/security-labels|4.0.1"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
        </element>
        <element id="Task.meta.tag">
          <path value="Task.meta.tag"/>
          <short value="Tags applied to this resource"/>
          <definition
                      value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/>
          <comment
                   value="The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Meta.tag"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Tags"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes that represent various types of tags, commonly workflow-related; e.g. &quot;Needs review by Dr. Jones&quot;."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/common-tags|4.0.1"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
        </element>
        <element id="Task.implicitRules">
          <path value="Task.implicitRules"/>
          <short value="A set of rules under which this content was created"/>
          <definition
                      value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc."/>
          <comment
                   value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.implicitRules"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation"/>
          <isSummary value="true"/>
        </element>
        <element id="Task.language">
          <path value="Task.language"/>
          <short value="Language of the resource content"/>
          <definition
                      value="The base language in which the resource is written."/>
          <comment
                   value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.language"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
              <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Language"/>
            </extension>
            <strength value="preferred"/>
            <description value="A human language."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/languages|4.0.1"/>
          </binding>
        </element>
        <element id="Task.text">
          <path value="Task.text"/>
          <short value="Text summary of the resource, for human interpretation"/>
          <definition
                      value="A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."/>
          <comment
                   value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a &quot;text blob&quot; or where text is additionally entered raw or narrated and encoded information is added later."/>
          <alias value="narrative"/>
          <alias value="html"/>
          <alias value="xhtml"/>
          <alias value="display"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Narrative"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="Act.text?"/>
          </mapping>
        </element>
        <element id="Task.contained">
          <path value="Task.contained"/>
          <short value="Contained, inline Resources"/>
          <definition
                      value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."/>
          <comment
                   value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels."/>
          <alias value="inline resources"/>
          <alias value="anonymous resources"/>
          <alias value="contained resources"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.contained"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Task.extension">
          <path value="Task.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <ordered value="false"/>
            <rules value="closed"/>
          </slicing>
          <short value="Extension"/>
          <definition value="An Extension"/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Task.extension:flowType">
          <path value="Task.extension"/>
          <sliceName value="flowType"/>
          <short value="Extension"/>
          <definition value="An Extension"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Task.extension:lastMedicationDispense">
          <path value="Task.extension"/>
          <sliceName value="lastMedicationDispense"/>
          <short
                 value="Zeitstempel, der gesetzt wird, wenn ein Medikament für diese Aufgabe ausgegeben wurde. Angegeben im Format YYYY-MM-DDTHH:MM:SS(Z|±HH:MM)"/>
          <definition
                      value="Dieses Feld ermöglicht es der E-Rezept-FdV, dem Benutzer anzuzeigen, dass ein Medikament abgegeben wurde, bevor es von der Apotheke abgeschlossen wurde."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_LastMedicationDispense"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Task.extension:acceptDate">
          <path value="Task.extension"/>
          <sliceName value="acceptDate"/>
          <short value="Akzeptanzdatum der Verordnung"/>
          <definition
                      value="Datum, bis zu dem die Verordnung zur Lasten der Krankenkasse eingelöst werden kann."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AcceptDate"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Task.extension:expiryDate">
          <path value="Task.extension"/>
          <sliceName value="expiryDate"/>
          <short value="Ablaufdatum der Verordnung im TI-Flow-Fachdienst"/>
          <definition
                      value="Datum, an dem eine Verordnung abläuft und nicht mehr eingelöst werden kann."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_ExpiryDate"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Task.extension:eu-isRedeemableByProperties">
          <path value="Task.extension"/>
          <sliceName value="eu-isRedeemableByProperties"/>
          <short value="Einlösbar in EU-Flagge"/>
          <definition
                      value="Diese Flagge wird vom TI-Flow-Fachdienst gesetzt, wenn das E-Rezept in der EU einlösbar ist."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_EU_IS_REDEEMABLE_BY_PROPERTIES"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Task.extension:eu-isRedeemableByPatientAuthorization">
          <path value="Task.extension"/>
          <sliceName value="eu-isRedeemableByPatientAuthorization"/>
          <short value="Einlösbares EU-E-Rezept durch Patientenautorisierung"/>
          <definition
                      value="Diese Flagge wird vom Benutzer gesetzt, um anzugeben, ob das E-Rezept in der EU zur Einlösung verfügbar sein soll oder nicht."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_EU_IS_REDEEMABLE_BY_PATIENT_AUTHORIZATION"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Task.modifierExtension">
          <path value="Task.modifierExtension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Extensions that cannot be ignored"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Task.identifier">
          <path value="Task.identifier"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="system"/>
            </discriminator>
            <description
                         value="Die Task-Ressource enthält zwei Kennungen. Die erste ist die Kennung für den Task, die einen Vorgang im TIFlow darstellt. Die andere Kennung repräsentiert den Patienten als Eigentümer des Vorgangs via Krankenversichertennummer (KVNR)"/>
            <rules value="open"/>
          </slicing>
          <short value="Task Instance Identifier"/>
          <definition value="The business identifier for this task."/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="Task.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="Identifier"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.identifier, Event.identifier"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.identifier"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".id"/>
          </mapping>
        </element>
        <element id="Task.identifier:PrescriptionID">
          <path value="Task.identifier"/>
          <sliceName value="PrescriptionID"/>
          <short value="E-Rezept-ID"/>
          <definition
                      value="Die E-Rezept-ID ist der Hauptidentifikator für die Task Ressource und den gesamten TIFlow Workflow. Dieser Identifikator wird vom TI-Flow-Fachdienst generiert und darf nicht manuell geändert werden."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Task.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
            <profile
                     value="https://gematik.de/fhir/ti/StructureDefinition/e-prescription-id"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="Identifier"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.identifier, Event.identifier"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.identifier"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".id"/>
          </mapping>
        </element>
        <element id="Task.identifier:AccessCode">
          <path value="Task.identifier"/>
          <sliceName value="AccessCode"/>
          <short value="AccessCode Identifier"/>
          <definition
                      value="Generiert vom TI-Flow-Fachdienst. Dieser Identifikator muss in jeder Anfrage zur Task Ressource übertragen werden."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
            <profile
                     value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_AccessCode"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="Identifier"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.identifier, Event.identifier"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.identifier"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".id"/>
          </mapping>
        </element>
        <element id="Task.identifier:Secret">
          <path value="Task.identifier"/>
          <sliceName value="Secret"/>
          <short value="Secret"/>
          <definition value="The business identifier for this task."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
            <profile
                     value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Secret"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="Identifier"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.identifier, Event.identifier"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.identifier"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".id"/>
          </mapping>
        </element>
        <element id="Task.instantiatesCanonical">
          <path value="Task.instantiatesCanonical"/>
          <short value="Formal definition of task"/>
          <definition
                      value="The URL pointing to a *FHIR*-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this Task."/>
          <comment
                   value="see [Canonical References](http://hl7.org/fhir/R4/references.html#canonical)"/>
          <requirements
                        value="Enables a formal definition of how he task is to be performed, enabling automation."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.instantiatesCanonical"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="canonical"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/ActivityDefinition|4.0.1"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map
                 value="Request.instantiatesCanonical, Event.instantiatesCanonical"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".outboundRelationship[typeCode=DEFN].target"/>
          </mapping>
        </element>
        <element id="Task.instantiatesUri">
          <path value="Task.instantiatesUri"/>
          <short value="Formal definition of task"/>
          <definition
                      value="The URL pointing to an *externally* maintained  protocol, guideline, orderset or other definition that is adhered to in whole or in part by this Task."/>
          <comment
                   value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier"/>
          <requirements
                        value="Enables a formal definition of how he task is to be performed (e.g. using BPMN, BPEL, XPDL or other formal notation to be associated with a task), enabling automation."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.instantiatesUri"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.instantiatesUrl"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".outboundRelationship[typeCode=DEFN].target"/>
          </mapping>
        </element>
        <element id="Task.basedOn">
          <path value="Task.basedOn"/>
          <short value="Request fulfilled by this task"/>
          <definition
                      value="BasedOn refers to a higher-level authorization that triggered the creation of the task.  It references a &quot;request&quot; resource such as a ServiceRequest, MedicationRequest, ServiceRequest, CarePlan, etc. which is distinct from the &quot;request&quot; resource the task is seeking to fulfill.  This latter resource is referenced by FocusOn.  For example, based on a ServiceRequest (= BasedOn), a task is created to fulfill a procedureRequest ( = FocusOn ) to collect a specimen from a patient."/>
          <comment
                   value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Task.basedOn"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human
                   value="SHALL have a contained resource if a local reference is provided"/>
            <expression
                        value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"/>
            <xpath
                   value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Reference"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.basedOn, Event.basedOn"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".outboundRelationship[typeCode=FLFS].target[moodCode=INT]"/>
          </mapping>
        </element>
        <element id="Task.groupIdentifier">
          <path value="Task.groupIdentifier"/>
          <short value="Requisition or grouper id"/>
          <definition
                      value="An identifier that links together multiple tasks and other requests that were created in the same context."/>
          <requirements
                        value="Billing and/or reporting can be linked to whether multiple requests were created as a single unit."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.groupIdentifier"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="Identifier"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.groupIdentifier"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=COMP].source[moodCode=INT].id"/>
          </mapping>
        </element>
        <element id="Task.partOf">
          <path value="Task.partOf"/>
          <short value="Composite task"/>
          <definition value="Task that this particular task is part of."/>
          <comment value="This should usually be 0..1."/>
          <requirements
                        value="Allows tasks to be broken down into sub-steps (and this division can occur independent of the original task)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Task.partOf"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Task|4.0.1"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human
                   value="SHALL have a contained resource if a local reference is provided"/>
            <expression
                        value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"/>
            <xpath
                   value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Reference"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.partOf"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=COMP].source[moodCode=INT]"/>
          </mapping>
        </element>
        <element id="Task.status">
          <path value="Task.status"/>
          <short value="draft | requested | received | accepted | +"/>
          <definition value="The current status of the task."/>
          <requirements
                        value="These states enable coordination of task status with off-the-shelf workflow solutions that support automation of tasks."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Task.status"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskStatus"/>
            </extension>
            <strength value="required"/>
            <description value="The current status of the task."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/task-status|4.0.1"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.status, Event.status"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.status"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".statusCode"/>
          </mapping>
        </element>
        <element id="Task.statusReason">
          <path value="Task.statusReason"/>
          <short value="Reason for current status"/>
          <definition
                      value="An explanation as to why this task is held, failed, was refused, etc."/>
          <comment
                   value="This applies to the current status.  Look at the history of the task to see reasons for past statuses."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.statusReason"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskStatusReason"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes to identify the reason for current status.  These will typically be specific to a particular workflow."/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=SUBJ].source[classCode=CACT, moodCode=EVN, code=&quot;status change&quot;].reasonCode"/>
          </mapping>
        </element>
        <element id="Task.businessStatus">
          <path value="Task.businessStatus"/>
          <short
                 value="E.g. &quot;Specimen collected&quot;, &quot;IV prepped&quot;"/>
          <definition
                      value="Contains business-specific nuances of the business state."/>
          <comment
                   value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
          <requirements
                        value="There's often a need to track substates of a task - this is often variable by specific workflow implementation."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.businessStatus"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskBusinessStatus"/>
            </extension>
            <strength value="example"/>
            <description
                         value="The domain-specific business-contextual sub-state of the task.  For example: &quot;Blood drawn&quot;, &quot;IV inserted&quot;, &quot;Awaiting physician signature&quot;, etc."/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=&quot;business status&quot;]"/>
          </mapping>
        </element>
        <element id="Task.intent">
          <path value="Task.intent"/>
          <short
                 value="unknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | option"/>
          <definition
                      value="Indicates the &quot;level&quot; of actionability associated with the Task, i.e. i+R[9]Cs this a proposed task, a planned task, an actionable task, etc."/>
          <comment
                   value="This element is immutable.  Proposed tasks, planned tasks, etc. must be distinct instances.

    In most cases, Tasks will have an intent of &quot;order&quot;."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Task.intent"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <fixedCode value="order"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskIntent"/>
            </extension>
            <strength value="required"/>
            <description
                         value="Distinguishes whether the task is a proposal, plan or full order."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/task-intent|4.0.1"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.intent"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.class"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".moodCode"/>
          </mapping>
        </element>
        <element id="Task.priority">
          <path value="Task.priority"/>
          <short value="routine | urgent | asap | stat"/>
          <definition
                      value="Indicates how quickly the Task should be addressed with respect to other requests."/>
          <requirements
                        value="Used to identify the service level expected while performing a task."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.priority"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <meaningWhenMissing
                              value="If missing, this task should be performed with normal priority"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskPriority"/>
            </extension>
            <strength value="required"/>
            <description value="The task's priority."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/request-priority|4.0.1"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.priority"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.grade"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".priorityCode"/>
          </mapping>
        </element>
        <element id="Task.code">
          <path value="Task.code"/>
          <short value="Task Type"/>
          <definition
                      value="A name or code (or both) briefly describing what the task involves."/>
          <comment
                   value="The title (eg &quot;My Tasks&quot;, &quot;Outstanding Tasks for Patient X&quot;) should go into the code."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskCode"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes to identify what the task involves.  These will typically be specific to a particular workflow."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/task-code|4.0.1"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.code, Event.code"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.what[x]"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".code"/>
          </mapping>
        </element>
        <element id="Task.description">
          <path value="Task.description"/>
          <short value="Human-readable explanation of task"/>
          <definition
                      value="A free-text description of what is to be performed."/>
          <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value=".text"/>
          </mapping>
        </element>
        <element id="Task.focus">
          <path value="Task.focus"/>
          <short value="What task is acting on"/>
          <definition
                      value="The request being actioned or the resource being manipulated by this task."/>
          <comment
                   value="If multiple resources need to be manipulated, use sub-tasks.  (This ensures that status can be tracked independently for each referenced resource.)."/>
          <requirements value="Used to identify the thing to be done."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.focus"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human
                   value="SHALL have a contained resource if a local reference is provided"/>
            <expression
                        value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"/>
            <xpath
                   value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Reference"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.what[x]"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".outboundRelationship[typeCode=SUBJ].target"/>
          </mapping>
        </element>
        <element id="Task.for">
          <path value="Task.for"/>
          <short value="Kennung des Begünstigten einer Aufgabe"/>
          <definition
                      value="The entity who benefits from the performance of the service specified in the task (e.g., the patient)."/>
          <comment
                   value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."/>
          <requirements
                        value="Used to track tasks outstanding for a beneficiary.  Do not use to track the task owner or creator (see owner and creator respectively).  This can also affect access control."/>
          <alias value="Patient"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.for"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human
                   value="SHALL have a contained resource if a local reference is provided"/>
            <expression
                        value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"/>
            <xpath
                   value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Reference"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.subject, Event.subject"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.subject[x]"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=RCT].role"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.subject"/>
          </mapping>
        </element>
        <element id="Task.for.id">
          <path value="Task.for.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.for.extension">
          <path value="Task.for.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.for.reference">
          <path value="Task.for.reference"/>
          <short value="Literal reference, Relative, internal or absolute URL"/>
          <definition
                      value="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources."/>
          <comment
                   value="Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries.   Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure &quot;/[type]/[id]&quot; then it should be assumed that the reference is to a FHIR RESTful server."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Reference.reference"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="ref-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Task.for.type">
          <path value="Task.for.type"/>
          <short value="Type the reference refers to (e.g. &quot;Patient&quot;)"/>
          <definition
                      value="The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.

    The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. &quot;Patient&quot; is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources)."/>
          <comment
                   value="This element is used to indicate the type of  the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Reference.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FHIRResourceTypeExt"/>
            </extension>
            <strength value="extensible"/>
            <description
                         value="Aa resource (or, for logical models, the URI of the logical model)."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/resource-types|4.0.1"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Task.for.identifier">
          <path value="Task.for.identifier"/>
          <short value="Logical reference, when literal reference is not known"/>
          <definition
                      value="An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference."/>
          <comment
                   value="When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy.

    When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference

    Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.

    Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference.  For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport).  One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Reference.identifier"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Identifier"/>
            <profile
                     value="http://fhir.de/StructureDefinition/identifier-kvid-10"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"/>
          </mapping>
          <mapping>
            <identity value="servd"/>
            <map value="Identifier"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".identifier"/>
          </mapping>
        </element>
        <element id="Task.for.display">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="Task.for.display"/>
          <short value="Text alternative for the resource"/>
          <definition
                      value="Plain text narrative that identifies the resource in addition to the resource reference."/>
          <comment
                   value="This is generally not the same as the Resource.text of the referenced resource.  The purpose is to identify what's being referenced, not to fully describe it."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Reference.display"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Task.encounter">
          <path value="Task.encounter"/>
          <short value="Healthcare event during which this task originated"/>
          <definition
                      value="The healthcare event  (e.g. a patient and healthcare provider interaction) during which this task was created."/>
          <comment
                   value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."/>
          <requirements
                        value="For some tasks it may be important to know the link between the encounter the task originated within."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.encounter"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human
                   value="SHALL have a contained resource if a local reference is provided"/>
            <expression
                        value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"/>
            <xpath
                   value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Reference"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.context, Event.context"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.context"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=COMP].source[classCode=PCPR, moodCode=EVN]"/>
          </mapping>
        </element>
        <element id="Task.executionPeriod">
          <path value="Task.executionPeriod"/>
          <short value="Start and end time of execution"/>
          <definition
                      value="Identifies the time action was first taken against the task (start) and/or the time final action was taken against the task prior to marking it as completed (end)."/>
          <comment
                   value="A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. &quot;the patient was an inpatient of the hospital for this time range&quot;) or one value from the range applies (e.g. &quot;give to the patient between these two times&quot;).

    Period is not used for a duration (a measure of elapsed time). See [Duration](http://hl7.org/fhir/R4/datatypes.html#Duration)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.executionPeriod"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="per-1"/>
            <severity value="error"/>
            <human value="If present, start SHALL have a lower value than end"/>
            <expression
                        value="start.hasValue().not() or end.hasValue().not() or (start &lt;= end)"/>
            <xpath
                   value="not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) &lt;= xs:dateTime(f:end/@value))"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Period"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="DR"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="IVL&lt;TS&gt;[lowClosed=&quot;true&quot; and highClosed=&quot;true&quot;] or URG&lt;TS&gt;[lowClosed=&quot;true&quot; and highClosed=&quot;true&quot;]"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.occurrence[x]"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.done[x]"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".effectiveTime"/>
          </mapping>
        </element>
        <element id="Task.authoredOn">
          <path value="Task.authoredOn"/>
          <short value="Task Creation Date"/>
          <definition value="The date and time this task was created."/>
          <requirements
                        value="Most often used along with lastUpdated to track duration of task to supporting monitoring and management."/>
          <alias value="Created Date"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.authoredOn"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <condition value="inv-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.authoredOn"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.recorded"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=AUT].time"/>
          </mapping>
        </element>
        <element id="Task.lastModified">
          <path value="Task.lastModified"/>
          <short value="Task Last Modified Date"/>
          <definition
                      value="The date and time of last modification to this task."/>
          <requirements
                        value="Used along with history to track task activity and time in a particular task state.  This enables monitoring and management."/>
          <alias value="Update Date"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.lastModified"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <condition value="inv-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=SUBJ, ].source[classCode=CACT, moodCode=EVN].effectiveTime"/>
          </mapping>
        </element>
        <element id="Task.requester">
          <path value="Task.requester"/>
          <short value="Who is asking for task to be done"/>
          <definition value="The creator of the task."/>
          <comment
                   value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."/>
          <requirements
                        value="Identifies who created this task.  May be used by access control mechanisms (e.g., to ensure that only the creator can cancel a task)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.requester"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Device|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Patient|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human
                   value="SHALL have a contained resource if a local reference is provided"/>
            <expression
                        value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"/>
            <xpath
                   value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Reference"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.requester"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.author"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=AUT].role"/>
          </mapping>
        </element>
        <element id="Task.performerType">
          <path value="Task.performerType"/>
          <short value="Requested performer"/>
          <definition
                      value="The kind of participant that should perform the task."/>
          <comment
                   value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
          <requirements
                        value="Use to distinguish tasks on different activity queues."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Task.performerType"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskPerformerType"/>
            </extension>
            <strength value="preferred"/>
            <description value="The type(s) of task performers allowed."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/performer-role|4.0.1"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.performer.role, Request.performerType"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.actor"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=PRF].role.code"/>
          </mapping>
        </element>
        <element id="Task.performerType.id">
          <path value="Task.performerType.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.performerType.extension">
          <path value="Task.performerType.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.performerType.coding">
          <path value="Task.performerType.coding"/>
          <short value="Code defined by a terminology system"/>
          <definition
                      value="A reference to a code defined by a terminology system."/>
          <comment
                   value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."/>
          <requirements
                        value="Allows for alternative encodings within a code system, and translations to other code systems."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://gematik.de/fhir/tiflow-erezept/ValueSet/tiflow-rx-task-organizations-vs"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.1-8, C*E.10-22"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="union(., ./translation)"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/>
          </mapping>
        </element>
        <element id="Task.performerType.text">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="Task.performerType.text"/>
          <short value="Plain text representation of the concept"/>
          <definition
                      value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user."/>
          <comment
                   value="Very often the text is the same as a displayName of one of the codings."/>
          <requirements
                        value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.9. But note many systems use C*E.2 for this"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="./originalText[mediaType/code=&quot;text/plain&quot;]/data"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/>
          </mapping>
        </element>
        <element id="Task.owner">
          <path value="Task.owner"/>
          <short value="Responsible individual"/>
          <definition
                      value="Individual organization or Device currently responsible for task execution."/>
          <comment
                   value="Tasks may be created with an owner not yet identified."/>
          <requirements value="Identifies who is expected to perform this task."/>
          <alias value="Performer"/>
          <alias value="Executer"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.owner"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/CareTeam|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/HealthcareService|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Patient|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Device|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human
                   value="SHALL have a contained resource if a local reference is provided"/>
            <expression
                        value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"/>
            <xpath
                   value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Reference"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.performer.actor, Request.performer"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.actor"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=PRF].role"/>
          </mapping>
        </element>
        <element id="Task.location">
          <path value="Task.location"/>
          <short value="Where task occurs"/>
          <definition
                      value="Principal physical location where the this task is performed."/>
          <comment
                   value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."/>
          <requirements
                        value="Ties the event to where the records are likely kept and provides context around the event occurrence (e.g. if it occurred inside or outside a dedicated healthcare setting)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.location"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Location|4.0.1"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human
                   value="SHALL have a contained resource if a local reference is provided"/>
            <expression
                        value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"/>
            <xpath
                   value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Reference"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.reasonCode, Event.reasonCode"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.where[x]"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=LOC].role"/>
          </mapping>
        </element>
        <element id="Task.reasonCode">
          <path value="Task.reasonCode"/>
          <short value="Why task is needed"/>
          <definition
                      value="A description or code indicating why this task needs to be performed."/>
          <comment
                   value="This should only be included if there is no focus or if it differs from the reason indicated on the focus."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.reasonCode"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskReason"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Indicates why the task is needed.  E.g. Suspended because patient admitted to hospital."/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Event.location"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.why[x]"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="EVN.7"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".reasonCode"/>
          </mapping>
        </element>
        <element id="Task.reasonReference">
          <path value="Task.reasonReference"/>
          <short value="Why task is needed"/>
          <definition
                      value="A resource reference indicating why this task needs to be performed."/>
          <comment
                   value="Tasks might be justified based on an Observation, a Condition, a past or planned procedure, etc.   This should only be included if there is no focus or if it differs from the reason indicated on the focus.    Use the CodeableConcept text element in `Task.reasonCode` if the data is free (uncoded) text."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.reasonReference"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Resource|4.0.1"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human
                   value="SHALL have a contained resource if a local reference is provided"/>
            <expression
                        value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"/>
            <xpath
                   value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Reference"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.reasonReference, Event.reasonReference"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.why[x]"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".outboundRelationship[typeCode=RSON].target"/>
          </mapping>
        </element>
        <element id="Task.insurance">
          <path value="Task.insurance"/>
          <short value="Associated insurance coverage"/>
          <definition
                      value="Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be relevant to the Task."/>
          <comment
                   value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Task.insurance"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Coverage|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/ClaimResponse|4.0.1"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human
                   value="SHALL have a contained resource if a local reference is provided"/>
            <expression
                        value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"/>
            <xpath
                   value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Reference"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.insurance"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="IN1/IN2"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".outboundRelationship[typeCode=COVBY].target"/>
          </mapping>
        </element>
        <element id="Task.note">
          <path value="Task.note"/>
          <short value="Comments made about the task"/>
          <definition
                      value="Free-text information captured about the task as it progresses."/>
          <comment
                   value="For systems that do not have structured annotations, they can simply communicate a single annotation with no author or time.  This element may need to be included in narrative because of the potential for modifying information.  *Annotations SHOULD NOT* be used to communicate &quot;modifying&quot; information that could be computable. (This is a SHOULD because enforcing user behavior is nearly impossible)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Task.note"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Annotation"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="N/A"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="Act"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.note, Event.note"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship[typeCode=SUBJ, ].source[classCode=OBS, moodCode=EVN, code=&quot;annotation&quot;].value(string)"/>
          </mapping>
        </element>
        <element id="Task.relevantHistory">
          <path value="Task.relevantHistory"/>
          <short value="Key events in history of the Task"/>
          <definition
                      value="Links to Provenance records for past versions of this Task that identify key state transitions or updates that are likely to be relevant to a user looking at the current version of the task."/>
          <comment
                   value="This element does not point to the Provenance associated with the *current* version of the resource - as it would be created after this version existed.  The Provenance for the current version can be retrieved with a _revinclude."/>
          <alias value="Status History"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Task.relevantHistory"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Provenance|4.0.1"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human
                   value="SHALL have a contained resource if a local reference is provided"/>
            <expression
                        value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"/>
            <xpath
                   value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Reference"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.relevantHistory"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value=".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]"/>
          </mapping>
        </element>
        <element id="Task.restriction">
          <path value="Task.restriction"/>
          <short value="Constraints on fulfillment tasks"/>
          <definition
                      value="If the Task.focus is a request resource and the task is seeking fulfillment (i.e. is asking for the request to be actioned), this element identifies any limitations on what parts of the referenced request should be actioned."/>
          <requirements
                        value="Sometimes when fulfillment is sought, you don't want full fulfillment."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.restriction"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="Instead of pointing to request, would point to component of request, having these characteristics"/>
          </mapping>
        </element>
        <element id="Task.restriction.id">
          <path value="Task.restriction.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.restriction.extension">
          <path value="Task.restriction.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.restriction.modifierExtension">
          <path value="Task.restriction.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Task.restriction.repetitions">
          <path value="Task.restriction.repetitions"/>
          <short value="How many times to repeat"/>
          <definition
                      value="Indicates the number of times the requested action should occur."/>
          <requirements
                        value="E.g. order that requests monthly lab tests, fulfillment is sought for 1."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.restriction.repetitions"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value=".repeatNumber"/>
          </mapping>
        </element>
        <element id="Task.restriction.period">
          <path value="Task.restriction.period"/>
          <short value="When fulfillment sought"/>
          <definition value="Over what time-period is fulfillment sought."/>
          <comment
                   value="Note that period.high is the due date representing the time by which the task should be completed."/>
          <requirements
                        value="E.g. order that authorizes 1 year's services.  Fulfillment is sought for next 3 months."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.restriction.period"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="per-1"/>
            <severity value="error"/>
            <human value="If present, start SHALL have a lower value than end"/>
            <expression
                        value="start.hasValue().not() or end.hasValue().not() or (start &lt;= end)"/>
            <xpath
                   value="not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) &lt;= xs:dateTime(f:end/@value))"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Period"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="DR"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="IVL&lt;TS&gt;[lowClosed=&quot;true&quot; and highClosed=&quot;true&quot;] or URG&lt;TS&gt;[lowClosed=&quot;true&quot; and highClosed=&quot;true&quot;]"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".effectiveTime(IVL&lt;TS&gt;)"/>
          </mapping>
        </element>
        <element id="Task.restriction.recipient">
          <path value="Task.restriction.recipient"/>
          <short value="For whom is fulfillment sought?"/>
          <definition
                      value="For requests that are targeted to more than on potential recipient/target, for whom is fulfillment sought?"/>
          <comment
                   value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Task.restriction.recipient"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Patient|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Practitioner|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/PractitionerRole|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/RelatedPerson|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Group|4.0.1"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Organization|4.0.1"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ref-1"/>
            <severity value="error"/>
            <human
                   value="SHALL have a contained resource if a local reference is provided"/>
            <expression
                        value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))"/>
            <xpath
                   value="not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Reference"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value=".participation[typeCode=SBJ].role"/>
          </mapping>
        </element>
        <element id="Task.input">
          <path value="Task.input"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="type.coding.code"/>
            </discriminator>
            <rules value="closed"/>
          </slicing>
          <short value="Input Bundle"/>
          <definition
                      value="Referenz auf Eingabe und Ergebnis des E-Rezeptes während des Prozesses"/>
          <requirements
                        value="Resources and data used to perform the task.  This data is used in the business logic of task execution, and is stored separately because it varies between workflows."/>
          <alias value="Supporting Information"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Task.input"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.input.id">
          <path value="Task.input.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input.extension">
          <path value="Task.input.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input.modifierExtension">
          <path value="Task.input.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Task.input.type">
          <path value="Task.input.type"/>
          <short value="Label for the input"/>
          <definition
                      value="A code or description indicating how the input is intended to be used as part of the task execution."/>
          <comment
                   value="If referencing a BPMN workflow or Protocol, the &quot;system&quot; is the URL for the workflow definition and the code is the &quot;name&quot; of the required input."/>
          <requirements
                        value="Inputs are named to enable task automation to bind data and pass it from one task to the next."/>
          <alias value="Name"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Task.input.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskInputParameterType"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. &quot;Comparison source&quot;, &quot;Applicable consent&quot;, &quot;Concomitent Medications&quot;, etc."/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.input.value[x]">
          <path value="Task.input.value[x]"/>
          <short value="Content to use in performing the task"/>
          <definition value="The value of the input parameter as a basic type."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Task.input.value[x]"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="base64Binary"/>
          </type>
          <type>
            <code value="boolean"/>
          </type>
          <type>
            <code value="canonical"/>
          </type>
          <type>
            <code value="code"/>
          </type>
          <type>
            <code value="date"/>
          </type>
          <type>
            <code value="dateTime"/>
          </type>
          <type>
            <code value="decimal"/>
          </type>
          <type>
            <code value="id"/>
          </type>
          <type>
            <code value="instant"/>
          </type>
          <type>
            <code value="integer"/>
          </type>
          <type>
            <code value="markdown"/>
          </type>
          <type>
            <code value="oid"/>
          </type>
          <type>
            <code value="positiveInt"/>
          </type>
          <type>
            <code value="string"/>
          </type>
          <type>
            <code value="time"/>
          </type>
          <type>
            <code value="unsignedInt"/>
          </type>
          <type>
            <code value="uri"/>
          </type>
          <type>
            <code value="url"/>
          </type>
          <type>
            <code value="uuid"/>
          </type>
          <type>
            <code value="Address"/>
          </type>
          <type>
            <code value="Age"/>
          </type>
          <type>
            <code value="Annotation"/>
          </type>
          <type>
            <code value="Attachment"/>
          </type>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <type>
            <code value="Coding"/>
          </type>
          <type>
            <code value="ContactPoint"/>
          </type>
          <type>
            <code value="Count"/>
          </type>
          <type>
            <code value="Distance"/>
          </type>
          <type>
            <code value="Duration"/>
          </type>
          <type>
            <code value="HumanName"/>
          </type>
          <type>
            <code value="Identifier"/>
          </type>
          <type>
            <code value="Money"/>
          </type>
          <type>
            <code value="Period"/>
          </type>
          <type>
            <code value="Quantity"/>
          </type>
          <type>
            <code value="Range"/>
          </type>
          <type>
            <code value="Ratio"/>
          </type>
          <type>
            <code value="Reference"/>
          </type>
          <type>
            <code value="SampledData"/>
          </type>
          <type>
            <code value="Signature"/>
          </type>
          <type>
            <code value="Timing"/>
          </type>
          <type>
            <code value="ContactDetail"/>
          </type>
          <type>
            <code value="Contributor"/>
          </type>
          <type>
            <code value="DataRequirement"/>
          </type>
          <type>
            <code value="Expression"/>
          </type>
          <type>
            <code value="ParameterDefinition"/>
          </type>
          <type>
            <code value="RelatedArtifact"/>
          </type>
          <type>
            <code value="TriggerDefinition"/>
          </type>
          <type>
            <code value="UsageContext"/>
          </type>
          <type>
            <code value="Dosage"/>
          </type>
          <type>
            <code value="Meta"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription">
          <path value="Task.input"/>
          <sliceName value="ePrescription"/>
          <short value="QES-Binary des E-Rezept"/>
          <definition
                      value="Additional information that may be needed in the execution of the task."/>
          <requirements
                        value="Resources and data used to perform the task.  This data is used in the business logic of task execution, and is stored separately because it varies between workflows."/>
          <alias value="Supporting Information"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.input"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.id">
          <path value="Task.input.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.extension">
          <path value="Task.input.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.modifierExtension">
          <path value="Task.input.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.type">
          <path value="Task.input.type"/>
          <short value="Label for the input"/>
          <definition
                      value="A code or description indicating how the input is intended to be used as part of the task execution."/>
          <comment
                   value="If referencing a BPMN workflow or Protocol, the &quot;system&quot; is the URL for the workflow definition and the code is the &quot;name&quot; of the required input."/>
          <requirements
                        value="Inputs are named to enable task automation to bind data and pass it from one task to the next."/>
          <alias value="Name"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Task.input.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskInputParameterType"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. &quot;Comparison source&quot;, &quot;Applicable consent&quot;, &quot;Concomitent Medications&quot;, etc."/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.type.id">
          <path value="Task.input.type.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.type.extension">
          <path value="Task.input.type.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.type.coding">
          <path value="Task.input.type.coding"/>
          <short value="Code defined by a terminology system"/>
          <definition
                      value="A reference to a code defined by a terminology system."/>
          <comment
                   value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."/>
          <requirements
                        value="Allows for alternative encodings within a code system, and translations to other code systems."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.1-8, C*E.10-22"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="union(., ./translation)"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.type.coding.id">
          <path value="Task.input.type.coding.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.type.coding.extension">
          <path value="Task.input.type.coding.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.type.coding.system">
          <path value="Task.input.type.coding.system"/>
          <short value="Identity of the terminology system"/>
          <definition
                      value="The identification of the code system that defines the meaning of the symbol in the code."/>
          <comment
                   value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously."/>
          <requirements
                        value="Need to be unambiguous about the source of the definition of the symbol."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Coding.system"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="./codeSystem"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.type.coding.version">
          <path value="Task.input.type.coding.version"/>
          <short value="Version of the system - if relevant"/>
          <definition
                      value="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged."/>
          <comment
                   value="Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Coding.version"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.7"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="./codeSystemVersion"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.type.coding.code">
          <path value="Task.input.type.coding.code"/>
          <short value="Symbol in syntax defined by the system"/>
          <definition
                      value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)."/>
          <requirements
                        value="Need to refer to a particular code in the system."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Coding.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <fixedCode value="1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.1"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="./code"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.type.coding.display">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="Task.input.type.coding.display"/>
          <short value="Representation defined by the system"/>
          <definition
                      value="A representation of the meaning of the code in the system, following the rules of the system."/>
          <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size"/>
          <requirements
                        value="Need to be able to carry a human-readable meaning of the code for readers that do not know  the system."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Coding.display"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.2 - but note this is not well followed"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV.displayName"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.type.coding.userSelected">
          <path value="Task.input.type.coding.userSelected"/>
          <short value="If this coding was chosen directly by the user"/>
          <definition
                      value="Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays)."/>
          <comment
                   value="Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely."/>
          <requirements
                        value="This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Coding.userSelected"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="Sometimes implied by being first"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD.codingRationale"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [     fhir:source &quot;true&quot;;     fhir:target dt:CDCoding.codingRationale\#O   ]"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.type.text">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="Task.input.type.text"/>
          <short value="Plain text representation of the concept"/>
          <definition
                      value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user."/>
          <comment
                   value="Very often the text is the same as a displayName of one of the codings."/>
          <requirements
                        value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.9. But note many systems use C*E.2 for this"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="./originalText[mediaType/code=&quot;text/plain&quot;]/data"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/>
          </mapping>
        </element>
        <element id="Task.input:ePrescription.value[x]">
          <path value="Task.input.value[x]"/>
          <short value="Content to use in performing the task"/>
          <definition value="The value of the input parameter as a basic type."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Task.input.value[x]"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Binary"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt">
          <path value="Task.input"/>
          <sliceName value="patientReceipt"/>
          <short
                 value="JSON-Bundle der Verordnung, das von einem FdV konsumiert werden soll"/>
          <definition
                      value="Additional information that may be needed in the execution of the task."/>
          <requirements
                        value="Resources and data used to perform the task.  This data is used in the business logic of task execution, and is stored separately because it varies between workflows."/>
          <alias value="Supporting Information"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.input"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.id">
          <path value="Task.input.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.extension">
          <path value="Task.input.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.modifierExtension">
          <path value="Task.input.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.type">
          <path value="Task.input.type"/>
          <short value="Label for the input"/>
          <definition
                      value="A code or description indicating how the input is intended to be used as part of the task execution."/>
          <comment
                   value="If referencing a BPMN workflow or Protocol, the &quot;system&quot; is the URL for the workflow definition and the code is the &quot;name&quot; of the required input."/>
          <requirements
                        value="Inputs are named to enable task automation to bind data and pass it from one task to the next."/>
          <alias value="Name"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Task.input.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskInputParameterType"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. &quot;Comparison source&quot;, &quot;Applicable consent&quot;, &quot;Concomitent Medications&quot;, etc."/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.type.id">
          <path value="Task.input.type.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.type.extension">
          <path value="Task.input.type.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.type.coding">
          <path value="Task.input.type.coding"/>
          <short value="Code defined by a terminology system"/>
          <definition
                      value="A reference to a code defined by a terminology system."/>
          <comment
                   value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."/>
          <requirements
                        value="Allows for alternative encodings within a code system, and translations to other code systems."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.1-8, C*E.10-22"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="union(., ./translation)"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.type.coding.id">
          <path value="Task.input.type.coding.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.type.coding.extension">
          <path value="Task.input.type.coding.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.type.coding.system">
          <path value="Task.input.type.coding.system"/>
          <short value="Identity of the terminology system"/>
          <definition
                      value="The identification of the code system that defines the meaning of the symbol in the code."/>
          <comment
                   value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously."/>
          <requirements
                        value="Need to be unambiguous about the source of the definition of the symbol."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Coding.system"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="./codeSystem"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.type.coding.version">
          <path value="Task.input.type.coding.version"/>
          <short value="Version of the system - if relevant"/>
          <definition
                      value="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged."/>
          <comment
                   value="Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Coding.version"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.7"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="./codeSystemVersion"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.type.coding.code">
          <path value="Task.input.type.coding.code"/>
          <short value="Symbol in syntax defined by the system"/>
          <definition
                      value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)."/>
          <requirements
                        value="Need to refer to a particular code in the system."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Coding.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <fixedCode value="2"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.1"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="./code"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.type.coding.display">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="Task.input.type.coding.display"/>
          <short value="Representation defined by the system"/>
          <definition
                      value="A representation of the meaning of the code in the system, following the rules of the system."/>
          <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size"/>
          <requirements
                        value="Need to be able to carry a human-readable meaning of the code for readers that do not know  the system."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Coding.display"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.2 - but note this is not well followed"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV.displayName"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.type.coding.userSelected">
          <path value="Task.input.type.coding.userSelected"/>
          <short value="If this coding was chosen directly by the user"/>
          <definition
                      value="Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays)."/>
          <comment
                   value="Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely."/>
          <requirements
                        value="This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Coding.userSelected"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="Sometimes implied by being first"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD.codingRationale"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [     fhir:source &quot;true&quot;;     fhir:target dt:CDCoding.codingRationale\#O   ]"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.type.text">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="Task.input.type.text"/>
          <short value="Plain text representation of the concept"/>
          <definition
                      value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user."/>
          <comment
                   value="Very often the text is the same as a displayName of one of the codings."/>
          <requirements
                        value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.9. But note many systems use C*E.2 for this"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="./originalText[mediaType/code=&quot;text/plain&quot;]/data"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/>
          </mapping>
        </element>
        <element id="Task.input:patientReceipt.value[x]">
          <path value="Task.input.value[x]"/>
          <short value="Content to use in performing the task"/>
          <definition value="The value of the input parameter as a basic type."/>
          <comment
                   value="Dies ist ein Bundle eines Rezepts vom Profil [KBV_PR_ERP_Bundle](https://simplifier.net/erezept/kbv_pr_erp_bundle)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Task.input.value[x]"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.output">
          <path value="Task.output"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="type.coding.code"/>
            </discriminator>
            <rules value="closed"/>
          </slicing>
          <short value="Output Bundle"/>
          <definition
                      value="Referenz auf das Bundle, das die Quittung darstellt."/>
          <requirements
                        value="Resources and data produced during the execution the task.  This data is generated by the business logic of task execution, and is stored separately because it varies between workflows."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Task.output"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.output.id">
          <path value="Task.output.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.output.extension">
          <path value="Task.output.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.output.modifierExtension">
          <path value="Task.output.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Task.output.type">
          <path value="Task.output.type"/>
          <short value="Label for output"/>
          <definition value="The name of the Output parameter."/>
          <comment
                   value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
          <requirements
                        value="Outputs are named to enable task automation to bind data and pass it from one task to the next."/>
          <alias value="Name"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Task.output.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskOutputParameterType"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. &quot;Identified issues&quot;, &quot;Preliminary results&quot;, &quot;Filler order&quot;, &quot;Final results&quot;, etc."/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.output.value[x]">
          <path value="Task.output.value[x]"/>
          <short value="Result of output"/>
          <definition value="The value of the Output parameter as a basic type."/>
          <requirements value="Task outputs can take any form."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Task.output.value[x]"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="base64Binary"/>
          </type>
          <type>
            <code value="boolean"/>
          </type>
          <type>
            <code value="canonical"/>
          </type>
          <type>
            <code value="code"/>
          </type>
          <type>
            <code value="date"/>
          </type>
          <type>
            <code value="dateTime"/>
          </type>
          <type>
            <code value="decimal"/>
          </type>
          <type>
            <code value="id"/>
          </type>
          <type>
            <code value="instant"/>
          </type>
          <type>
            <code value="integer"/>
          </type>
          <type>
            <code value="markdown"/>
          </type>
          <type>
            <code value="oid"/>
          </type>
          <type>
            <code value="positiveInt"/>
          </type>
          <type>
            <code value="string"/>
          </type>
          <type>
            <code value="time"/>
          </type>
          <type>
            <code value="unsignedInt"/>
          </type>
          <type>
            <code value="uri"/>
          </type>
          <type>
            <code value="url"/>
          </type>
          <type>
            <code value="uuid"/>
          </type>
          <type>
            <code value="Address"/>
          </type>
          <type>
            <code value="Age"/>
          </type>
          <type>
            <code value="Annotation"/>
          </type>
          <type>
            <code value="Attachment"/>
          </type>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <type>
            <code value="Coding"/>
          </type>
          <type>
            <code value="ContactPoint"/>
          </type>
          <type>
            <code value="Count"/>
          </type>
          <type>
            <code value="Distance"/>
          </type>
          <type>
            <code value="Duration"/>
          </type>
          <type>
            <code value="HumanName"/>
          </type>
          <type>
            <code value="Identifier"/>
          </type>
          <type>
            <code value="Money"/>
          </type>
          <type>
            <code value="Period"/>
          </type>
          <type>
            <code value="Quantity"/>
          </type>
          <type>
            <code value="Range"/>
          </type>
          <type>
            <code value="Ratio"/>
          </type>
          <type>
            <code value="Reference"/>
          </type>
          <type>
            <code value="SampledData"/>
          </type>
          <type>
            <code value="Signature"/>
          </type>
          <type>
            <code value="Timing"/>
          </type>
          <type>
            <code value="ContactDetail"/>
          </type>
          <type>
            <code value="Contributor"/>
          </type>
          <type>
            <code value="DataRequirement"/>
          </type>
          <type>
            <code value="Expression"/>
          </type>
          <type>
            <code value="ParameterDefinition"/>
          </type>
          <type>
            <code value="RelatedArtifact"/>
          </type>
          <type>
            <code value="TriggerDefinition"/>
          </type>
          <type>
            <code value="UsageContext"/>
          </type>
          <type>
            <code value="Dosage"/>
          </type>
          <type>
            <code value="Meta"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.output:receipt">
          <path value="Task.output"/>
          <sliceName value="receipt"/>
          <short value="Information produced as part of task"/>
          <definition value="Outputs produced by the Task."/>
          <requirements
                        value="Resources and data produced during the execution the task.  This data is generated by the business logic of task execution, and is stored separately because it varies between workflows."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Task.output"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.id">
          <path value="Task.output.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.extension">
          <path value="Task.output.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.modifierExtension">
          <path value="Task.output.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.type">
          <path value="Task.output.type"/>
          <short value="Label for output"/>
          <definition value="The name of the Output parameter."/>
          <comment
                   value="Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."/>
          <requirements
                        value="Outputs are named to enable task automation to bind data and pass it from one task to the next."/>
          <alias value="Name"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Task.output.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="TaskOutputParameterType"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes to identify types of input parameters.  These will typically be specific to a particular workflow.  E.g. &quot;Identified issues&quot;, &quot;Preliminary results&quot;, &quot;Filler order&quot;, &quot;Final results&quot;, etc."/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="CE/CNE/CWE"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.type.id">
          <path value="Task.output.type.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.type.extension">
          <path value="Task.output.type.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.type.coding">
          <path value="Task.output.type.coding"/>
          <short value="Code defined by a terminology system"/>
          <definition
                      value="A reference to a code defined by a terminology system."/>
          <comment
                   value="Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."/>
          <requirements
                        value="Allows for alternative encodings within a code system, and translations to other code systems."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.coding"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"/>
          </binding>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map
                 value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/>
          </mapping>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.1-8, C*E.10-22"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="union(., ./translation)"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.type.coding.id">
          <path value="Task.output.type.coding.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.type.coding.extension">
          <path value="Task.output.type.coding.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <rules value="open"/>
          </slicing>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.type.coding.system">
          <path value="Task.output.type.coding.system"/>
          <short value="Identity of the terminology system"/>
          <definition
                      value="The identification of the code system that defines the meaning of the symbol in the code."/>
          <comment
                   value="The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...).  OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously."/>
          <requirements
                        value="Need to be unambiguous about the source of the definition of the symbol."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Coding.system"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.3"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="./codeSystem"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.type.coding.version">
          <path value="Task.output.type.coding.version"/>
          <short value="Version of the system - if relevant"/>
          <definition
                      value="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged."/>
          <comment
                   value="Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Coding.version"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.7"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="./codeSystemVersion"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.type.coding.code">
          <path value="Task.output.type.coding.code"/>
          <short value="Symbol in syntax defined by the system"/>
          <definition
                      value="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)."/>
          <requirements
                        value="Need to refer to a particular code in the system."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Coding.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <fixedCode value="3"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.1"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="./code"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.type.coding.display">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="Task.output.type.coding.display"/>
          <short value="Representation defined by the system"/>
          <definition
                      value="A representation of the meaning of the code in the system, following the rules of the system."/>
          <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size"/>
          <requirements
                        value="Need to be able to carry a human-readable meaning of the code for readers that do not know  the system."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Coding.display"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.2 - but note this is not well followed"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CV.displayName"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.type.coding.userSelected">
          <path value="Task.output.type.coding.userSelected"/>
          <short value="If this coding was chosen directly by the user"/>
          <definition
                      value="Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays)."/>
          <comment
                   value="Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely."/>
          <requirements
                        value="This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Coding.userSelected"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="Sometimes implied by being first"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="CD.codingRationale"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map;   fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [     fhir:source &quot;true&quot;;     fhir:target dt:CDCoding.codingRationale\#O   ]"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.type.text">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable">
            <valueBoolean value="true"/>
          </extension>
          <path value="Task.output.type.text"/>
          <short value="Plain text representation of the concept"/>
          <definition
                      value="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user."/>
          <comment
                   value="Very often the text is the same as a displayName of one of the codings."/>
          <requirements
                        value="The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CodeableConcept.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="v2"/>
            <map value="C*E.9. But note many systems use C*E.2 for this"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map
                 value="./originalText[mediaType/code=&quot;text/plain&quot;]/data"/>
          </mapping>
          <mapping>
            <identity value="orim"/>
            <map
                 value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/>
          </mapping>
        </element>
        <element id="Task.output:receipt.value[x]">
          <path value="Task.output.value[x]"/>
          <short value="Result of output"/>
          <definition value="The value of the Output parameter as a basic type."/>
          <requirements value="Task outputs can take any form."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Task.output.value[x]"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Bundle"/>
          </type>
          <condition value="ele-1"/>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression
                        value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
          <mapping>
            <identity value="rim"/>
            <map value="???"/>
          </mapping>
        </element>
      </snapshot>
      <differential>
        <element id="Task.meta">
          <path value="Task.meta"/>
          <min value="1"/>
          <mustSupport value="true"/>
        </element>
        <element id="Task.meta.profile">
          <path value="Task.meta.profile"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="$this"/>
            </discriminator>
            <description value="Slicing für meta profile"/>
            <ordered value="false"/>
            <rules value="closed"/>
          </slicing>
          <min value="1"/>
          <max value="1"/>
          <mustSupport value="true"/>
        </element>
        <element id="Task.meta.profile:workflowProfile">
          <path value="Task.meta.profile"/>
          <sliceName value="workflowProfile"/>
          <min value="1"/>
          <max value="1"/>
          <fixedCanonical
                          value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Task|2.0"/>
          <mustSupport value="true"/>
        </element>
        <element id="Task.extension">
          <path value="Task.extension"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="url"/>
            </discriminator>
            <description value="Extensions are always sliced by (at least) url"/>
            <ordered value="false"/>
            <rules value="closed"/>
          </slicing>
        </element>
        <element id="Task.extension:lastMedicationDispense">
          <path value="Task.extension"/>
          <sliceName value="lastMedicationDispense"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_LastMedicationDispense"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="Task.extension:acceptDate">
          <path value="Task.extension"/>
          <sliceName value="acceptDate"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AcceptDate"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="Task.extension:expiryDate">
          <path value="Task.extension"/>
          <sliceName value="expiryDate"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_ExpiryDate"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="Task.extension:eu-isRedeemableByProperties">
          <path value="Task.extension"/>
          <sliceName value="eu-isRedeemableByProperties"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_EU_IS_REDEEMABLE_BY_PROPERTIES"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="Task.extension:eu-isRedeemableByPatientAuthorization">
          <path value="Task.extension"/>
          <sliceName value="eu-isRedeemableByPatientAuthorization"/>
          <min value="0"/>
          <max value="1"/>
          <type>
            <code value="Extension"/>
            <profile
                     value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_EU_IS_REDEEMABLE_BY_PATIENT_AUTHORIZATION"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="Task.for.identifier">
          <path value="Task.for.identifier"/>
          <type>
            <code value="Identifier"/>
            <profile
                     value="http://fhir.de/StructureDefinition/identifier-kvid-10"/>
          </type>
        </element>
        <element id="Task.performerType.coding">
          <path value="Task.performerType.coding"/>
          <min value="1"/>
          <max value="1"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://gematik.de/fhir/tiflow-erezept/ValueSet/tiflow-rx-task-organizations-vs"/>
          </binding>
        </element>
        <element id="Task.input">
          <path value="Task.input"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="type.coding.code"/>
            </discriminator>
            <rules value="closed"/>
          </slicing>
          <short value="Input Bundle"/>
          <definition
                      value="Referenz auf Eingabe und Ergebnis des E-Rezeptes während des Prozesses"/>
          <mustSupport value="true"/>
        </element>
        <element id="Task.input:ePrescription">
          <path value="Task.input"/>
          <sliceName value="ePrescription"/>
          <short value="QES-Binary des E-Rezept"/>
          <min value="0"/>
          <max value="1"/>
          <mustSupport value="true"/>
        </element>
        <element id="Task.input:ePrescription.type.coding">
          <path value="Task.input.type.coding"/>
          <min value="1"/>
          <max value="1"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"/>
          </binding>
        </element>
        <element id="Task.input:ePrescription.type.coding.system">
          <path value="Task.input.type.coding.system"/>
          <min value="1"/>
        </element>
        <element id="Task.input:ePrescription.type.coding.code">
          <path value="Task.input.type.coding.code"/>
          <min value="1"/>
          <fixedCode value="1"/>
        </element>
        <element id="Task.input:ePrescription.value[x]">
          <path value="Task.input.value[x]"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Binary"/>
          </type>
        </element>
        <element id="Task.input:patientReceipt">
          <path value="Task.input"/>
          <sliceName value="patientReceipt"/>
          <short
                 value="JSON-Bundle der Verordnung, das von einem FdV konsumiert werden soll"/>
          <min value="0"/>
          <max value="1"/>
          <mustSupport value="true"/>
        </element>
        <element id="Task.input:patientReceipt.type.coding">
          <path value="Task.input.type.coding"/>
          <min value="1"/>
          <max value="1"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"/>
          </binding>
        </element>
        <element id="Task.input:patientReceipt.type.coding.system">
          <path value="Task.input.type.coding.system"/>
          <min value="1"/>
        </element>
        <element id="Task.input:patientReceipt.type.coding.code">
          <path value="Task.input.type.coding.code"/>
          <min value="1"/>
          <fixedCode value="2"/>
        </element>
        <element id="Task.input:patientReceipt.value[x]">
          <path value="Task.input.value[x]"/>
          <comment
                   value="Dies ist ein Bundle eines Rezepts vom Profil [KBV_PR_ERP_Bundle](https://simplifier.net/erezept/kbv_pr_erp_bundle)."/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
          </type>
        </element>
        <element id="Task.output">
          <path value="Task.output"/>
          <slicing>
            <discriminator>
              <type value="value"/>
              <path value="type.coding.code"/>
            </discriminator>
            <rules value="closed"/>
          </slicing>
          <short value="Output Bundle"/>
          <definition
                      value="Referenz auf das Bundle, das die Quittung darstellt."/>
          <mustSupport value="true"/>
        </element>
        <element id="Task.output:receipt">
          <path value="Task.output"/>
          <sliceName value="receipt"/>
          <min value="0"/>
          <max value="1"/>
          <mustSupport value="true"/>
        </element>
        <element id="Task.output:receipt.type.coding">
          <path value="Task.output.type.coding"/>
          <min value="1"/>
          <max value="1"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType"/>
          </binding>
        </element>
        <element id="Task.output:receipt.type.coding.system">
          <path value="Task.output.type.coding.system"/>
          <min value="1"/>
        </element>
        <element id="Task.output:receipt.type.coding.code">
          <path value="Task.output.type.coding.code"/>
          <min value="1"/>
          <fixedCode value="3"/>
        </element>
        <element id="Task.output:receipt.value[x]">
          <path value="Task.output.value[x]"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_Bundle"/>
          </type>
        </element>
      </differential>
    </StructureDefinition>