{
  "resourceType": "StructureDefinition",
  "id": "SHCIntygLogical",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "can-be-target"
    }
  ],
  "url": "http://electronichealth.se/fhir/shc/StructureDefinition/SHCIntygLogical",
  "name": "SHCIntygLogical",
  "title": "Intyg",
  "status": "draft",
  "description": "Klassen intyg håller information ett utfärdat intyg.",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "IntygToSHCQuestionnaireResponse",
      "uri": "SHCQuestionnaireResponse"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://electronichealth.se/fhir/shc/StructureDefinition/SHCIntygLogical",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "SHCIntygLogical",
        "path": "SHCIntygLogical",
        "short": "Intyg",
        "definition": "Klassen intyg håller information ett utfärdat intyg.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "SHCIntygLogical",
          "min": 0,
          "max": "*"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.id",
        "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": "SHCIntygLogical.id",
        "short": "id",
        "definition": "identifierare som tilldelats ett intyg av utföraren och/eller andra system. Dessa identifierare förblir konstanta när resursen uppdateras och sprids från server till server",
        "comment": "The rules of the identifier.type  determine if a check digit is part of the ID value or sent separately, such as through the checkDigit extension.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "SHCIntygLogical.id",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "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": "ident-1",
            "severity": "warning",
            "human": "Identifier with no value has limited utility.  If communicating that an identifier value has been suppressed or missing, the value element SHOULD be present with an extension indicating the missing semantic - e.g. data-absent-reason",
            "expression": "value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
          },
          {
            "identity": "rim",
            "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs.  Also maps to Role[classCode=IDENT]"
          },
          {
            "identity": "servd",
            "map": "Identifier"
          },
          {
            "identity": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.identifier"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.utfardandetidpunkt",
        "path": "SHCIntygLogical.utfardandetidpunkt",
        "short": "utfärdandetidpunkt",
        "definition": "den tidpunkt ett intyg utfärdas",
        "min": 1,
        "max": "1",
        "base": {
          "path": "SHCIntygLogical.utfardandetidpunkt",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "time"
          }
        ],
        "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": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.authored"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.status",
        "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": "SHCIntygLogical.status",
        "short": "status",
        "definition": "kod för aktuellt status för intyget (t.ex. påbörjad, slutförd, stoppad)",
        "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": "SHCIntygLogical.status",
          "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": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.status"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.bestammerUtformningAv",
        "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": "SHCIntygLogical.bestammerUtformningAv",
        "short": "bestämmer utformning av",
        "definition": "bestämmer utformning 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": 1,
        "max": "1",
        "base": {
          "path": "SHCIntygLogical.bestammerUtformningAv",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCIntygsformularLogical"
            ]
          }
        ],
        "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": "IntygToSHCQuestionnaireResponse"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.delAv",
        "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": "SHCIntygLogical.delAv",
        "short": "del av",
        "definition": "del 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": "SHCIntygLogical.delAv",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCUnderskriftLogical"
            ]
          }
        ],
        "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": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.extension[signature]"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.finnsI",
        "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": "SHCIntygLogical.finnsI",
        "short": "finns i",
        "definition": "finns i",
        "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": "SHCIntygLogical.finnsI",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCSvarLogical"
            ]
          }
        ],
        "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": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.item[answer]"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.finnsI2",
        "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": "SHCIntygLogical.finnsI2",
        "short": "finns i2",
        "definition": "finns i2",
        "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": "SHCIntygLogical.finnsI2",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCSektionIUtfardatIntygLogical"
            ]
          }
        ],
        "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": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.item[section]"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.arUppgiftslamnare",
        "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": "SHCIntygLogical.arUppgiftslamnare",
        "short": "är uppgiftslämnare",
        "definition": "är uppgiftslämnare",
        "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": "SHCIntygLogical.arUppgiftslamnare",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCPersonLogical",
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCHalsoOchSjukvardspersonalLogical",
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCAnnanPersonLogical"
            ]
          }
        ],
        "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": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.source(SHCMedicalCertificateSubject or SHCPractitioner or SHC or SHCRelatedPerson)"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.harRollenIntygsperson",
        "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": "SHCIntygLogical.harRollenIntygsperson",
        "short": "har rollen intygsperson",
        "definition": "har rollen intygsperson",
        "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": 1,
        "max": "1",
        "base": {
          "path": "SHCIntygLogical.harRollenIntygsperson",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCPersonLogical"
            ]
          }
        ],
        "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": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.subject(SHCMedicalCertificateSubject)"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.harIntygsutfardare",
        "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": "SHCIntygLogical.harIntygsutfardare",
        "short": "har intygsutfärdare",
        "definition": "har intygsutfärdare",
        "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": 1,
        "max": "1",
        "base": {
          "path": "SHCIntygLogical.harIntygsutfardare",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCHalsoOchSjukvardspersonalLogical"
            ]
          }
        ],
        "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": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.author(SHCPractitioner)"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "SHCIntygLogical",
        "path": "SHCIntygLogical",
        "short": "Intyg",
        "definition": "Klassen intyg håller information ett utfärdat intyg."
      },
      {
        "id": "SHCIntygLogical.id",
        "path": "SHCIntygLogical.id",
        "short": "id",
        "definition": "identifierare som tilldelats ett intyg av utföraren och/eller andra system. Dessa identifierare förblir konstanta när resursen uppdateras och sprids från server till server",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.identifier"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.utfardandetidpunkt",
        "path": "SHCIntygLogical.utfardandetidpunkt",
        "short": "utfärdandetidpunkt",
        "definition": "den tidpunkt ett intyg utfärdas",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "time"
          }
        ],
        "mapping": [
          {
            "identity": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.authored"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.status",
        "path": "SHCIntygLogical.status",
        "short": "status",
        "definition": "kod för aktuellt status för intyget (t.ex. påbörjad, slutförd, stoppad)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.status"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.bestammerUtformningAv",
        "path": "SHCIntygLogical.bestammerUtformningAv",
        "short": "bestämmer utformning av",
        "definition": "bestämmer utformning av",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCIntygsformularLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "IntygToSHCQuestionnaireResponse"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.delAv",
        "path": "SHCIntygLogical.delAv",
        "short": "del av",
        "definition": "del av",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCUnderskriftLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.extension[signature]"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.finnsI",
        "path": "SHCIntygLogical.finnsI",
        "short": "finns i",
        "definition": "finns i",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCSvarLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.item[answer]"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.finnsI2",
        "path": "SHCIntygLogical.finnsI2",
        "short": "finns i2",
        "definition": "finns i2",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCSektionIUtfardatIntygLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.item[section]"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.arUppgiftslamnare",
        "path": "SHCIntygLogical.arUppgiftslamnare",
        "short": "är uppgiftslämnare",
        "definition": "är uppgiftslämnare",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCPersonLogical",
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCHalsoOchSjukvardspersonalLogical",
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCAnnanPersonLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.source(SHCMedicalCertificateSubject or SHCPractitioner or SHC or SHCRelatedPerson)"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.harRollenIntygsperson",
        "path": "SHCIntygLogical.harRollenIntygsperson",
        "short": "har rollen intygsperson",
        "definition": "har rollen intygsperson",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCPersonLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.subject(SHCMedicalCertificateSubject)"
          }
        ]
      },
      {
        "id": "SHCIntygLogical.harIntygsutfardare",
        "path": "SHCIntygLogical.harIntygsutfardare",
        "short": "har intygsutfärdare",
        "definition": "har intygsutfärdare",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCHalsoOchSjukvardspersonalLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "IntygToSHCQuestionnaireResponse",
            "map": "SHCQuestionnaireResponse.author(SHCPractitioner)"
          }
        ]
      }
    ]
  }
}