{
  "resourceType": "StructureDefinition",
  "id": "SHCSektionLogical",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "can-be-target"
    }
  ],
  "url": "http://electronichealth.se/fhir/shc/StructureDefinition/SHCSektionLogical",
  "name": "SHCSektionLogical",
  "title": "Sektion",
  "status": "draft",
  "description": "Klassen sektion håller information om det element som organiserar innehållet i ett intygsformulär i logiska sektioner. Sektioner kan inte ha svar men innehåller vanligtvis frågor.",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "SektionToSHCQuestionnaire.item.section",
      "uri": "SHCQuestionnaire.item.section"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://electronichealth.se/fhir/shc/StructureDefinition/SHCSektionLogical",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "SHCSektionLogical",
        "path": "SHCSektionLogical",
        "short": "Sektion",
        "definition": "Klassen sektion håller information om det element som organiserar innehållet i ett intygsformulär i logiska sektioner. Sektioner kan inte ha svar men innehåller vanligtvis frågor.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "SHCSektionLogical",
          "min": 0,
          "max": "*"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.definition",
        "path": "SHCSektionLogical.definition",
        "short": "definition",
        "definition": "String of characters used to identify a name or a resource",
        "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
        "min": 0,
        "max": "1",
        "base": {
          "path": "SHCSektionLogical.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": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].definition"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.hjalptext",
        "path": "SHCSektionLogical.hjalptext",
        "short": "hjälptext",
        "definition": "extra vägledning, ibland i tooltip-form",
        "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size",
        "min": 1,
        "max": "1",
        "base": {
          "path": "SHCSektionLogical.hjalptext",
          "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": "SektionToSHCQuestionnaire.item.section"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.lankId",
        "path": "SHCSektionLogical.lankId",
        "short": "länkId",
        "definition": "unikt ID för sektion 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": "SHCSektionLogical.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": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].linkId"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.obligatorisk",
        "path": "SHCSektionLogical.obligatorisk",
        "short": "obligatorisk",
        "definition": "om objektet måste ingå i intyget",
        "min": 1,
        "max": "1",
        "base": {
          "path": "SHCSektionLogical.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": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].required"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.prefix",
        "path": "SHCSektionLogical.prefix",
        "short": "prefix",
        "definition": "kort etikett för en sektion 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": "SHCSektionLogical.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": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].prefix"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.text",
        "path": "SHCSektionLogical.text",
        "short": "text",
        "definition": "text som är sektionens rubrik",
        "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size",
        "min": 1,
        "max": "1",
        "base": {
          "path": "SHCSektionLogical.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": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].text"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.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": "SHCSektionLogical.typ",
        "short": "typ",
        "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": "SHCSektionLogical.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": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].type"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.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": "SHCSektionLogical.utformning",
        "short": "utformning",
        "definition": "kod för grafisk utformning av denna sektion",
        "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": "SHCSektionLogical.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": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].extension[itemControl]"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.bestarAv",
        "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": "SHCSektionLogical.bestarAv",
        "short": "består av",
        "definition": "består av",
        "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": "SHCSektionLogical.bestarAv",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCInformationstextLogical"
            ]
          }
        ],
        "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": "SektionToSHCQuestionnaire.item.section",
            "map": "SHCQuestionnaire.item[informationText]"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.bestarAv2",
        "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": "SHCSektionLogical.bestarAv2",
        "short": "består av2",
        "definition": "består av2",
        "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": "SHCSektionLogical.bestarAv2",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCFragaLogical"
            ]
          }
        ],
        "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": "SektionToSHCQuestionnaire.item.section"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.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": "SHCSektionLogical.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": "1",
        "base": {
          "path": "SHCSektionLogical.visasUnderVillkor",
          "min": 0,
          "max": "1"
        },
        "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": "SektionToSHCQuestionnaire.item.section",
            "map": "SHCQuestionnaire.item[section].enableWhen"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "SHCSektionLogical",
        "path": "SHCSektionLogical",
        "short": "Sektion",
        "definition": "Klassen sektion håller information om det element som organiserar innehållet i ett intygsformulär i logiska sektioner. Sektioner kan inte ha svar men innehåller vanligtvis frågor."
      },
      {
        "id": "SHCSektionLogical.definition",
        "path": "SHCSektionLogical.definition",
        "short": "definition",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "mapping": [
          {
            "identity": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].definition"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.hjalptext",
        "path": "SHCSektionLogical.hjalptext",
        "short": "hjälptext",
        "definition": "extra vägledning, ibland i tooltip-form",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "SektionToSHCQuestionnaire.item.section"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.lankId",
        "path": "SHCSektionLogical.lankId",
        "short": "länkId",
        "definition": "unikt ID för sektion 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": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].linkId"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.obligatorisk",
        "path": "SHCSektionLogical.obligatorisk",
        "short": "obligatorisk",
        "definition": "om objektet måste ingå i intyget",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mapping": [
          {
            "identity": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].required"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.prefix",
        "path": "SHCSektionLogical.prefix",
        "short": "prefix",
        "definition": "kort etikett för en sektion i intygsformuläret som används som referens vid ifyllandet av formuläret",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].prefix"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.text",
        "path": "SHCSektionLogical.text",
        "short": "text",
        "definition": "text som är sektionens rubrik",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].text"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.typ",
        "path": "SHCSektionLogical.typ",
        "short": "typ",
        "definition": "kod för motsvarande begrepp i en terminologi",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].type"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.utformning",
        "path": "SHCSektionLogical.utformning",
        "short": "utformning",
        "definition": "kod för grafisk utformning av denna sektion",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "SektionToSHCQuestionnaire.item.section",
            "map": "(SHCQuestionnaire)item[section].extension[itemControl]"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.bestarAv",
        "path": "SHCSektionLogical.bestarAv",
        "short": "består av",
        "definition": "består av",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCInformationstextLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "SektionToSHCQuestionnaire.item.section",
            "map": "SHCQuestionnaire.item[informationText]"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.bestarAv2",
        "path": "SHCSektionLogical.bestarAv2",
        "short": "består av2",
        "definition": "består av2",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCFragaLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "SektionToSHCQuestionnaire.item.section"
          }
        ]
      },
      {
        "id": "SHCSektionLogical.visasUnderVillkor",
        "path": "SHCSektionLogical.visasUnderVillkor",
        "short": "Visas under villkor",
        "definition": "Visas under villkor",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCVisasNarLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "SektionToSHCQuestionnaire.item.section",
            "map": "SHCQuestionnaire.item[section].enableWhen"
          }
        ]
      }
    ]
  }
}