<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="SHCInformationstextLogical" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
    <valueCode value="can-be-target" />
  </extension>
  <url value="http://electronichealth.se/fhir/shc/StructureDefinition/SHCInformationstextLogical" />
  <name value="SHCInformationstextLogical" />
  <title value="Informationstext" />
  <status value="draft" />
  <description value="Klassen Informationstext håller information om vilken statisk information som visas i intygsformuläret." />
  <fhirVersion value="5.0.0" />
  <mapping>
    <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
    <uri value="SHCQuestionnaire.item.informationText" />
  </mapping>
  <kind value="logical" />
  <abstract value="false" />
  <type value="http://electronichealth.se/fhir/shc/StructureDefinition/SHCInformationstextLogical" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Base" />
  <derivation value="specialization" />
  <snapshot>
    <element id="SHCInformationstextLogical">
      <path value="SHCInformationstextLogical" />
      <short value="Informationstext" />
      <definition value="Klassen Informationstext håller information om vilken statisk information som visas i intygsformuläret." />
      <min value="0" />
      <max value="*" />
      <base>
        <path value="SHCInformationstextLogical" />
        <min value="0" />
        <max value="*" />
      </base>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.lankId">
      <path value="SHCInformationstextLogical.lankId" />
      <short value="länkId" />
      <definition value="unikt ID för informtionstext i intygsformulär som möjliggör länkning till motsvarande objekt i en QuestionnaireResponse-resurs" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="SHCInformationstextLogical.lankId" />
        <min value="1" />
        <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())" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].linkId" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.definition">
      <path value="SHCInformationstextLogical.definition" />
      <short value="definition" />
      <definition value="information om objektet som ger spårbarhet till en gemensam definition" />
      <comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="SHCInformationstextLogical.definition" />
        <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())" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].definition" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.kod">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="SHCInformationstextLogical.kod" />
      <short value="kod" />
      <definition value="kod för motsvarande begrepp i en terminologi" />
      <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." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="SHCInformationstextLogical.kod" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
      </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())" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="cod-1" />
        <severity value="warning" />
        <human value="A Coding SHOULD NOT have a display unless a code is also present.  Computation on Coding.display alone is generally unsafe.  Consider using CodeableConcept.text" />
        <expression value="code.exists().not() implies display.exists().not()" />
        <source value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </constraint>
      <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="InformationstextToSHCQuestionnaire.item.informationText" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.prefix">
      <path value="SHCInformationstextLogical.prefix" />
      <short value="prefix" />
      <definition value="kort etikett för en fråga i intygsformuläret som används som referens vid ifyllandet av formuläret" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size" />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="SHCInformationstextLogical.prefix" />
        <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())" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].prefix" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.typ">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="SHCInformationstextLogical.typ" />
      <short value="typ" />
      <definition value="kod för typ av format för frågans svar (sträng, heltal, kodning osv.)" />
      <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." />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="SHCInformationstextLogical.typ" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
      </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())" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="cod-1" />
        <severity value="warning" />
        <human value="A Coding SHOULD NOT have a display unless a code is also present.  Computation on Coding.display alone is generally unsafe.  Consider using CodeableConcept.text" />
        <expression value="code.exists().not() implies display.exists().not()" />
        <source value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </constraint>
      <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="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].type" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.obligatorisk">
      <path value="SHCInformationstextLogical.obligatorisk" />
      <short value="obligatorisk" />
      <definition value="om objektet måste ingå i intyget" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="SHCInformationstextLogical.obligatorisk" />
        <min value="1" />
        <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())" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].required" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.utformning">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="SHCInformationstextLogical.utformning" />
      <short value="utformning" />
      <definition value="kod för grafisk utformning av denna informationstext" />
      <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." />
      <min value="0" />
      <max value="1" />
      <base>
        <path value="SHCInformationstextLogical.utformning" />
        <min value="0" />
        <max value="1" />
      </base>
      <type>
        <code value="Coding" />
      </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())" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <constraint>
        <key value="cod-1" />
        <severity value="warning" />
        <human value="A Coding SHOULD NOT have a display unless a code is also present.  Computation on Coding.display alone is generally unsafe.  Consider using CodeableConcept.text" />
        <expression value="code.exists().not() implies display.exists().not()" />
        <source value="http://hl7.org/fhir/StructureDefinition/Coding" />
      </constraint>
      <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="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].extension[itemControl]" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.text">
      <path value="SHCInformationstextLogical.text" />
      <short value="text" />
      <definition value="text som visas för användaren" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="SHCInformationstextLogical.text" />
        <min value="1" />
        <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())" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].text" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.visasUnderVillkor">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="normative" />
      </extension>
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
        <valueCode value="4.0.0" />
      </extension>
      <path value="SHCInformationstextLogical.visasUnderVillkor" />
      <short value="Visas under villkor" />
      <definition value="Visas under villkor" />
      <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolvable (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="SHCInformationstextLogical.visasUnderVillkor" />
        <min value="0" />
        <max value="*" />
      </base>
      <type>
        <code value="Reference" />
        <targetProfile value="http://electronichealth.se/fhir/shc/StructureDefinition/SHCVisasNarLogical" />
      </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())" />
        <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.exists()  implies (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')) or (reference='#' and %rootResource!=%resource))" />
        <source value="http://hl7.org/fhir/StructureDefinition/Reference" />
      </constraint>
      <constraint>
        <key value="ref-2" />
        <severity value="error" />
        <human value="At least one of reference, identifier and display SHALL be present (unless an extension is provided)." />
        <expression value="reference.exists() or identifier.exists() or display.exists() or extension.exists()" />
        <source value="http://hl7.org/fhir/StructureDefinition/Reference" />
      </constraint>
      <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="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="SHCQuestionnaire.item[informationText].enableWhen" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="SHCInformationstextLogical">
      <path value="SHCInformationstextLogical" />
      <short value="Informationstext" />
      <definition value="Klassen Informationstext håller information om vilken statisk information som visas i intygsformuläret." />
    </element>
    <element id="SHCInformationstextLogical.lankId">
      <path value="SHCInformationstextLogical.lankId" />
      <short value="länkId" />
      <definition value="unikt ID för informtionstext i intygsformulär som möjliggör länkning till motsvarande objekt i en QuestionnaireResponse-resurs" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].linkId" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.definition">
      <path value="SHCInformationstextLogical.definition" />
      <short value="definition" />
      <definition value="information om objektet som ger spårbarhet till en gemensam definition" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].definition" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.kod">
      <path value="SHCInformationstextLogical.kod" />
      <short value="kod" />
      <definition value="kod för motsvarande begrepp i en terminologi" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.prefix">
      <path value="SHCInformationstextLogical.prefix" />
      <short value="prefix" />
      <definition value="kort etikett för en fråga i intygsformuläret som används som referens vid ifyllandet av formuläret" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].prefix" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.typ">
      <path value="SHCInformationstextLogical.typ" />
      <short value="typ" />
      <definition value="kod för typ av format för frågans svar (sträng, heltal, kodning osv.)" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].type" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.obligatorisk">
      <path value="SHCInformationstextLogical.obligatorisk" />
      <short value="obligatorisk" />
      <definition value="om objektet måste ingå i intyget" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].required" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.utformning">
      <path value="SHCInformationstextLogical.utformning" />
      <short value="utformning" />
      <definition value="kod för grafisk utformning av denna informationstext" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Coding" />
      </type>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].extension[itemControl]" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.text">
      <path value="SHCInformationstextLogical.text" />
      <short value="text" />
      <definition value="text som visas för användaren" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="(SHCQuestionnaire)item[informationText].text" />
      </mapping>
    </element>
    <element id="SHCInformationstextLogical.visasUnderVillkor">
      <path value="SHCInformationstextLogical.visasUnderVillkor" />
      <short value="Visas under villkor" />
      <definition value="Visas under villkor" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://electronichealth.se/fhir/shc/StructureDefinition/SHCVisasNarLogical" />
      </type>
      <mapping>
        <identity value="InformationstextToSHCQuestionnaire.item.informationText" />
        <map value="SHCQuestionnaire.item[informationText].enableWhen" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>