{
  "resourceType": "StructureDefinition",
  "id": "SHCSvarLogical",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "can-be-target"
    }
  ],
  "url": "http://electronichealth.se/fhir/shc/StructureDefinition/SHCSvarLogical",
  "name": "SHCSvarLogical",
  "title": "Svar",
  "status": "draft",
  "description": "Klassen Svar håller information om vad intygsutfärdaren har svarat på frågan.",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "SvarToSHCQuestionnaireResponse.item.answer",
      "uri": "SHCQuestionnaireResponse.item.answer"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://electronichealth.se/fhir/shc/StructureDefinition/SHCSvarLogical",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "SHCSvarLogical",
        "path": "SHCSvarLogical",
        "short": "Svar",
        "definition": "Klassen Svar håller information om vad intygsutfärdaren har svarat på frågan."
      },
      {
        "id": "SHCSvarLogical.lankId",
        "path": "SHCSvarLogical.lankId",
        "short": "länkId",
        "definition": "unikt ID för svar",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "SvarToSHCQuestionnaireResponse.item.answer",
            "map": "(SHCQuestionnaireResponse)item[answer].linkId"
          }
        ]
      },
      {
        "id": "SHCSvarLogical.fragetext",
        "path": "SHCSvarLogical.fragetext",
        "short": "frågetext",
        "definition": "text i fråga som visas ",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "SvarToSHCQuestionnaireResponse.item.answer",
            "map": "(SHCQuestionnaireResponse)item[answer].text"
          }
        ]
      },
      {
        "id": "SHCSvarLogical.varde",
        "path": "SHCSvarLogical.varde",
        "short": "värde",
        "definition": "svarsvärde",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "DataType"
          }
        ],
        "mapping": [
          {
            "identity": "SvarToSHCQuestionnaireResponse.item.answer",
            "map": "(SHCQuestionnaireResponse)item.answer"
          }
        ]
      }
    ]
  }
}