{
  "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",
  "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",
            "map": ""
          }
        ]
      },
      {
        "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"
          }
        ]
      }
    ]
  }
}