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