{
  "resourceType": "StructureDefinition",
  "id": "SHCIntygsformularLogical",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "can-be-target"
    }
  ],
  "url": "http://electronichealth.se/fhir/shc/StructureDefinition/SHCIntygsformularLogical",
  "name": "SHCIntygsformularLogical",
  "title": "Intygsformulär",
  "status": "draft",
  "description": "Klassen intygsformulär håller information om formulär med fastställda fält och frågor som är avsedda att fyllas i med olika uppgifter rörande intygsperson.",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "IntygsformularToSHCQuestionnaire",
      "uri": "SHCQuestionnaire"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://electronichealth.se/fhir/shc/StructureDefinition/SHCIntygsformularLogical",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "SHCIntygsformularLogical",
        "path": "SHCIntygsformularLogical",
        "short": "Intygsformulär",
        "definition": "Klassen intygsformulär håller information om formulär med fastställda fält och frågor som är avsedda att fyllas i med olika uppgifter rörande intygsperson."
      },
      {
        "id": "SHCIntygsformularLogical.intygsformularid",
        "path": "SHCIntygsformularLogical.intygsformularid",
        "short": "intygsformulärid",
        "definition": "Utgivarens identifierare",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.identifier"
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.typAvIntygsperson",
        "path": "SHCIntygsformularLogical.typAvIntygsperson",
        "short": "typ av intygsperson",
        "definition": "kod för den typ av roll som intygsperson innehar vid utfärdandet av detta intyg\r\nt.ex. kund, brukare, patient, donator,sökande",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.subjectType"
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.version",
        "path": "SHCIntygsformularLogical.version",
        "short": "version",
        "definition": "ID-beteckning för version, satt av intygsformulärutgivaren",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.version"
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.intygsformularnamn",
        "path": "SHCIntygsformularLogical.intygsformularnamn",
        "short": "intygsformulärnamn",
        "definition": "kort, beskrivande och användarvänlig titel för frågeformuläret.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.title"
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.intygsandamal",
        "path": "SHCIntygsformularLogical.intygsandamal",
        "short": "intygsändamål",
        "definition": "textbeskrivning av det ändamål för vilket ett visst intyg utfärdas",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.useContext[purpose]"
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.giltighetsperiod",
        "path": "SHCIntygsformularLogical.giltighetsperiod",
        "short": "giltighetsperiod",
        "definition": "anger den tidsperiod som formuläret är giltigt",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.effectivePeriod"
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.intygsformularstatus",
        "path": "SHCIntygsformularLogical.intygsformularstatus",
        "short": "intygsformulärstatus",
        "definition": "kod för aktuellt status (t.ex. utkast, aktiv)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.status"
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.intygsbeskrivning",
        "path": "SHCIntygsformularLogical.intygsbeskrivning",
        "short": "intygsbeskrivning",
        "definition": "beskrivning av formuläret skriven på ett enkelt och lättförståeligt sätt för användaren.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.description"
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.uri",
        "path": "SHCIntygsformularLogical.uri",
        "short": "uri",
        "definition": "unik URI som identifierar intygsformuläret och används som dess kanoniska referens",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.url"
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.intygskategori",
        "path": "SHCIntygsformularLogical.intygskategori",
        "short": "intygskategori",
        "definition": "kod för gruppering av intyg utifrån visst kriterium\r\nexempel Rättsintyg, Vårdintyg, Hälsointyg, Sjukintyg",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.useContext[category]"
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.publiceringstidpunkt",
        "path": "SHCIntygsformularLogical.publiceringstidpunkt",
        "short": "publiceringstidpunkt",
        "definition": "tidpunkt då formuläret publicerades ",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "time"
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.approvalDate"
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.laghanvisning",
        "path": "SHCIntygsformularLogical.laghanvisning",
        "short": "laghänvisning",
        "definition": "vilken författning detta  intygsformulär baseras på",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.useContext[legislation]"
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.intygsmottagarroll",
        "path": "SHCIntygsformularLogical.intygsmottagarroll",
        "short": "intygsmottagarroll",
        "definition": "",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": ""
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.bestarAv",
        "path": "SHCIntygsformularLogical.bestarAv",
        "short": "består av",
        "definition": "består av",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCFragaLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.item[question]"
          }
        ]
      },
      {
        "id": "SHCIntygsformularLogical.bestarAv2",
        "path": "SHCIntygsformularLogical.bestarAv2",
        "short": "består av2",
        "definition": "består av2",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCSektionLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "IntygsformularToSHCQuestionnaire",
            "map": "SHCQuestionnaire.item[section]"
          }
        ]
      }
    ]
  }
}