<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="POWER2DM-SimulationParameters" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2017-03-14T11:39:30.018+00:00" />
  </meta>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm-no-warnings">
    <valueInteger value="3" />
  </extension>
  <url value="http://www.power2dm.eu/pds/StructureDefinition/POWER2DM-SimulationParameters" />
  <name value="POWER2DM-SimulationParameters" />
  <status value="draft" />
  <description value="Base StructureDefinition for Parameters Resource " />
  <kind value="resource" />
  <constrainedType value="Parameters" />
  <abstract value="false" />
  <base value="http://hl7.org/fhir/StructureDefinition/Parameters" />
  <snapshot>
    <element>
      <path value="Parameters" />
      <short value="Operation Request or Response" />
      <definition value="This special resource type is used to represent an operation request and response (operations.html). It has no other use, and there is no RESTful endpoint associated with it." />
      <comments value="The parameters that may be used are defined by the OperationDefinition resource." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Resource" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Parameters" />
      </type>
      <mapping>
        <identity value="rim" />
        <map value="Entity. Role, or Act" />
      </mapping>
      <mapping>
        <identity value="v2" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="w5" />
        <map value="infrastructure.exchange" />
      </mapping>
    </element>
    <element>
      <path value="Parameters.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." />
      <comments 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. Bundles always have an id, though it is usually a generated UUID." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="id" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression">
          <valueString value="*" />
        </extension>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Parameters.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 may not always be associated with version changes to the resource." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.meta" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Meta" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression">
          <valueString value="*" />
        </extension>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Parameters.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." />
      <comments 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 as much as possible." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Resource.implicitRules" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="uri" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression">
          <valueString value="*" />
        </extension>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <isModifier value="true" />
      <isSummary value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Parameters.language" />
      <short value="Language of the resource content" />
      <definition value="The base language in which the resource is written." />
      <comments 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>
      <condition value="ele-1" />
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression">
          <valueString value="*" />
        </extension>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <binding>
        <strength value="required" />
        <description value="A human language." />
        <valueSetUri value="http://tools.ietf.org/html/bcp47" />
      </binding>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Parameters.parameter" />
      <name value="parameter" />
      <short value="Operation Parameter" />
      <definition value="A parameter passed to or received from the operation." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Parameters.parameter" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="BackboneElement" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression">
          <valueString value="*" />
        </extension>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression">
          <valueString value="value.exists() xor resource.exists()" />
        </extension>
        <key value="inv-1" />
        <severity value="error" />
        <human value="A parameter must have a value or a resource, but not both" />
        <xpath value="exists(f:value) or exists(f:resource) and not(exists(f:value) and exists(f:resource))" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Parameters.parameter.id" />
      <short value="xml:id (or equivalent in JSON)" />
      <definition value="unique id for the element within a resource (for internal references)." />
      <comments value="RFC 4122" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Element.id" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="id" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression">
          <valueString value="*" />
        </extension>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Parameters.parameter.extension" />
      <slicing>
        <discriminator value="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. In order 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." />
      <comments 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>
      <condition value="ele-1" />
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression">
          <valueString value="*" />
        </extension>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element>
      <path value="Parameters.parameter.extension" />
      <name value="simulated" />
      <short value="Extension isSimulated" />
      <definition value="Optional Extensions Element - found in all resources." />
      <comments 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="1" />
      <base>
        <path value="Element.extension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
        <profile value="http://www.power2dm.eu/pds/StructureDefinition/POWER2DM-isSimulatedParameter" />
      </type>
      <meaningWhenMissing value="Not simulated, actual value for the parameter" />
      <condition value="ele-1" />
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression">
          <valueString value="*" />
        </extension>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element>
      <path value="Parameters.parameter.modifierExtension" />
      <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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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." />
      <comments 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" />
      <alias value="modifiers" />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="BackboneElement.modifierExtension" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Extension" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression">
          <valueString value="*" />
        </extension>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <isModifier value="true" />
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="rim" />
        <map value="N/A" />
      </mapping>
    </element>
    <element>
      <path value="Parameters.parameter.name" />
      <short value="Name from the definition" />
      <definition value="The name of the parameter (reference to the operation definition)." />
      <comments value="Note that FHIR strings may not exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Parameters.parameter.name" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression">
          <valueString value="*" />
        </extension>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Parameters.parameter.value[x]" />
      <short value="If parameter is a data type" />
      <definition value="If the parameter is a data type." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="Parameters.parameter.value[x]" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="boolean" />
      </type>
      <type>
        <code value="integer" />
      </type>
      <type>
        <code value="decimal" />
      </type>
      <type>
        <code value="base64Binary" />
      </type>
      <type>
        <code value="instant" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="uri" />
      </type>
      <type>
        <code value="date" />
      </type>
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="time" />
      </type>
      <type>
        <code value="code" />
      </type>
      <type>
        <code value="oid" />
      </type>
      <type>
        <code value="id" />
      </type>
      <type>
        <code value="unsignedInt" />
      </type>
      <type>
        <code value="positiveInt" />
      </type>
      <type>
        <code value="markdown" />
      </type>
      <type>
        <code value="Annotation" />
      </type>
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="Identifier" />
      </type>
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Coding" />
      </type>
      <type>
        <code value="Quantity" />
      </type>
      <type>
        <code value="Range" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="Ratio" />
      </type>
      <type>
        <code value="SampledData" />
      </type>
      <type>
        <code value="Signature" />
      </type>
      <type>
        <code value="HumanName" />
      </type>
      <type>
        <code value="Address" />
      </type>
      <type>
        <code value="ContactPoint" />
      </type>
      <type>
        <code value="Timing" />
      </type>
      <type>
        <code value="Reference" />
      </type>
      <type>
        <code value="Meta" />
      </type>
      <condition value="ele-1" />
      <condition value="inv-1" />
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression">
          <valueString value="*" />
        </extension>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <xpath value="@value|f:*|h:div" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element>
      <path value="Parameters.parameter.resource" />
      <short value="If parameter is a whole resource" />
      <definition value="If the parameter is a whole resource." />
      <min value="0" />
      <max value="0" />
      <base>
        <path value="Parameters.parameter.resource" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Resource" />
      </type>
      <condition value="inv-1" />
      <mapping>
        <identity value="rim" />
        <map value="Entity. Role, or Act" />
      </mapping>
    </element>
    <element>
      <path value="Parameters.parameter.part" />
      <short value="Named part of a parameter (e.g. Tuple)" />
      <definition value="A named part of a parameter. In many implementation context, a set of named parts is known as a &quot;Tuple&quot;." />
      <comments value="Only one level of Tuples is allowed." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="Parameters.parameter.part" />
        <min value="0" />
        <max value="*" />
      </base>
      <nameReference value="parameter" />
      <constraint>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression">
          <valueString value="value.exists() xor resource.exists()" />
        </extension>
        <key value="inv-2" />
        <severity value="error" />
        <human value="A part must have a value or a resource, but not both" />
        <xpath value="exists(f:value) or exists(f:resource) and not(exists(f:value) and exists(f:resource))" />
      </constraint>
    </element>
  </snapshot>
  <differential>
    <element>
      <path value="Parameters" />
      <type>
        <code value="Parameters" />
      </type>
    </element>
    <element>
      <path value="Parameters.parameter.extension" />
      <slicing>
        <discriminator value="url" />
        <rules value="open" />
      </slicing>
    </element>
    <element>
      <path value="Parameters.parameter.extension" />
      <name value="simulated" />
      <short value="Extension isSimulated" />
      <definition value="Optional Extensions Element - found in all resources." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://www.power2dm.eu/pds/StructureDefinition/POWER2DM-isSimulatedParameter" />
      </type>
      <meaningWhenMissing value="Not simulated, actual value for the parameter" />
    </element>
    <element>
      <path value="Parameters.parameter.resource" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>