{
  "resourceType": "StructureDefinition",
  "id": "SHCHalsoOchSjukvardspersonalLogical",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "can-be-target"
    }
  ],
  "url": "http://electronichealth.se/fhir/shc/StructureDefinition/SHCHalsoOchSjukvardspersonalLogical",
  "name": "SHCHalsoOchSjukvardspersonalLogical",
  "title": "Hälso- och sjukvårdspersonal",
  "status": "draft",
  "description": "Klassen Hälso- och sjukvårdspersonal håller information om person eller personer som i sitt yrke utför hälso- och sjukvård.",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "HalsoOchSjukvardspersonalToSHCPractitioner",
      "uri": "SHCPractitioner"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://electronichealth.se/fhir/shc/StructureDefinition/SHCHalsoOchSjukvardspersonalLogical",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical",
        "path": "SHCHalsoOchSjukvardspersonalLogical",
        "short": "Hälso- och sjukvårdspersonal",
        "definition": "Klassen Hälso- och sjukvårdspersonal håller information om person eller personer som i sitt yrke utför hälso- och sjukvård.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "SHCHalsoOchSjukvardspersonalLogical",
          "min": 0,
          "max": "*"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical.halso-OchSjukvardspersonalsid",
        "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": "SHCHalsoOchSjukvardspersonalLogical.halso-OchSjukvardspersonalsid",
        "short": "hälso- och sjukvårdspersonalsid",
        "definition": "unikt id för en person som utför hälso-och sjukvård",
        "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": 0,
        "max": "1",
        "base": {
          "path": "SHCHalsoOchSjukvardspersonalLogical.halso-OchSjukvardspersonalsid",
          "min": 0,
          "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": "HalsoOchSjukvardspersonalToSHCPractitioner",
            "map": "SHCPractitioner.id"
          }
        ]
      },
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical.hSA-IDPerson",
        "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": "SHCHalsoOchSjukvardspersonalLogical.hSA-IDPerson",
        "short": "HSA-ID person",
        "definition": "unikt ID som används inom vård och omsorg i Sverige för att identifiera personer, enheter och system i HSA-katalogen",
        "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": 0,
        "max": "1",
        "base": {
          "path": "SHCHalsoOchSjukvardspersonalLogical.hSA-IDPerson",
          "min": 0,
          "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": "HalsoOchSjukvardspersonalToSHCPractitioner",
            "map": "SHCPractitioner.identifier[hsaid]"
          }
        ]
      },
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical.befattning",
        "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": "SHCHalsoOchSjukvardspersonalLogical.befattning",
        "short": "befattning",
        "definition": "kod för den befattning som hälso- och sjukvårdspersonal innehar",
        "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": "SHCHalsoOchSjukvardspersonalLogical.befattning",
          "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": "HalsoOchSjukvardspersonalToSHCPractitioner",
            "map": "SHCPractitioner.qualification.code.coding[hsa-befattning]"
          }
        ]
      },
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical.forskrivarkod",
        "path": "SHCHalsoOchSjukvardspersonalLogical.forskrivarkod",
        "short": "förskrivarkod",
        "definition": "kod för personlig identifikation av en förskrivare",
        "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "SHCHalsoOchSjukvardspersonalLogical.forskrivarkod",
          "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": "HalsoOchSjukvardspersonalToSHCPractitioner",
            "map": "SHCPractitioner.qualification.identifier[prescriber]"
          }
        ]
      },
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical.arbetsplatskod",
        "path": "SHCHalsoOchSjukvardspersonalLogical.arbetsplatskod",
        "short": "arbetsplatskod",
        "definition": "kod som identifierar den arbetsplats där förskrivning sker",
        "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "SHCHalsoOchSjukvardspersonalLogical.arbetsplatskod",
          "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": "HalsoOchSjukvardspersonalToSHCPractitioner"
          }
        ]
      },
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical.harRollen",
        "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": "SHCHalsoOchSjukvardspersonalLogical.harRollen",
        "short": "har rollen",
        "definition": "har rollen",
        "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": "SHCHalsoOchSjukvardspersonalLogical.harRollen",
          "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": "HalsoOchSjukvardspersonalToSHCPractitioner",
            "map": "SHCPractitioner."
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical",
        "path": "SHCHalsoOchSjukvardspersonalLogical",
        "short": "Hälso- och sjukvårdspersonal",
        "definition": "Klassen Hälso- och sjukvårdspersonal håller information om person eller personer som i sitt yrke utför hälso- och sjukvård."
      },
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical.halso-OchSjukvardspersonalsid",
        "path": "SHCHalsoOchSjukvardspersonalLogical.halso-OchSjukvardspersonalsid",
        "short": "hälso- och sjukvårdspersonalsid",
        "definition": "unikt id för en person som utför hälso-och sjukvård",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "HalsoOchSjukvardspersonalToSHCPractitioner",
            "map": "SHCPractitioner.id"
          }
        ]
      },
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical.hSA-IDPerson",
        "path": "SHCHalsoOchSjukvardspersonalLogical.hSA-IDPerson",
        "short": "HSA-ID person",
        "definition": "unikt ID som används inom vård och omsorg i Sverige för att identifiera personer, enheter och system i HSA-katalogen",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "HalsoOchSjukvardspersonalToSHCPractitioner",
            "map": "SHCPractitioner.identifier[hsaid]"
          }
        ]
      },
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical.befattning",
        "path": "SHCHalsoOchSjukvardspersonalLogical.befattning",
        "short": "befattning",
        "definition": "kod för den befattning som hälso- och sjukvårdspersonal innehar",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "mapping": [
          {
            "identity": "HalsoOchSjukvardspersonalToSHCPractitioner",
            "map": "SHCPractitioner.qualification.code.coding[hsa-befattning]"
          }
        ]
      },
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical.forskrivarkod",
        "path": "SHCHalsoOchSjukvardspersonalLogical.forskrivarkod",
        "short": "förskrivarkod",
        "definition": "kod för personlig identifikation av en förskrivare",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "HalsoOchSjukvardspersonalToSHCPractitioner",
            "map": "SHCPractitioner.qualification.identifier[prescriber]"
          }
        ]
      },
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical.arbetsplatskod",
        "path": "SHCHalsoOchSjukvardspersonalLogical.arbetsplatskod",
        "short": "arbetsplatskod",
        "definition": "kod som identifierar den arbetsplats där förskrivning sker",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "HalsoOchSjukvardspersonalToSHCPractitioner"
          }
        ]
      },
      {
        "id": "SHCHalsoOchSjukvardspersonalLogical.harRollen",
        "path": "SHCHalsoOchSjukvardspersonalLogical.harRollen",
        "short": "har rollen",
        "definition": "har rollen",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/shc/StructureDefinition/SHCPersonLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "HalsoOchSjukvardspersonalToSHCPractitioner",
            "map": "SHCPractitioner."
          }
        ]
      }
    ]
  }
}