{
  "resourceType": "StructureDefinition",
  "id": "NPPRYrkesutovareLogical",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "can-be-target"
    }
  ],
  "url": "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRYrkesutovareLogical",
  "name": "NPPRYrkesutovareLogical",
  "title": "Yrkesutövare",
  "status": "active",
  "description": "Klassen yrkesutövare håller information om person som är utövare av arbete som man kan försörja sig på och som kräver vissa särskilda kunskaper eller färdigheter. Exempel på yrkesutövare är en legitimerad sjuksköterska.",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "YrkesutovareToNPPRPractitioner",
      "uri": "NPPRPractitioner"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRYrkesutovareLogical",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "NPPRYrkesutovareLogical",
        "path": "NPPRYrkesutovareLogical",
        "short": "Yrkesutövare",
        "definition": "Klassen yrkesutövare håller information om person som är utövare av arbete som man kan försörja sig på och som kräver vissa särskilda kunskaper eller färdigheter. Exempel på yrkesutövare är en legitimerad sjuksköterska.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "NPPRYrkesutovareLogical",
          "min": 0,
          "max": "*"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "NPPRYrkesutovareLogical.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": "NPPRYrkesutovareLogical.id",
        "short": "id",
        "definition": "Angivelse av identifierare för en yrkesutövare.",
        "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": "NPPRYrkesutovareLogical.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": "YrkesutovareToNPPRPractitioner",
            "map": "NPPRPractitioner.identifier"
          }
        ]
      },
      {
        "id": "NPPRYrkesutovareLogical.fornamn",
        "path": "NPPRYrkesutovareLogical.fornamn",
        "short": "förnamn",
        "definition": "Angivelse av förnamn, som är en persons givna namn och inkluderar tilltalsnamn.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size",
        "min": 1,
        "max": "*",
        "base": {
          "path": "NPPRYrkesutovareLogical.fornamn",
          "min": 1,
          "max": "*"
        },
        "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": "YrkesutovareToNPPRPractitioner",
            "map": "NPPRPractitioner.name.given"
          }
        ]
      },
      {
        "id": "NPPRYrkesutovareLogical.efternamn",
        "path": "NPPRYrkesutovareLogical.efternamn",
        "short": "efternamn",
        "definition": "Angivelse av efternamn, som är en persons familjenamn eller släktnamn.",
        "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size",
        "min": 1,
        "max": "1",
        "base": {
          "path": "NPPRYrkesutovareLogical.efternamn",
          "min": 1,
          "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": "YrkesutovareToNPPRPractitioner",
            "map": "NPPRPractitioner.name.family"
          }
        ]
      },
      {
        "id": "NPPRYrkesutovareLogical.harDokumenteradFormellickeFormell",
        "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": "NPPRYrkesutovareLogical.harDokumenteradFormellickeFormell",
        "short": "har dokumenterad formell/icke formell",
        "definition": "har dokumenterad formell/icke formell",
        "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": "NPPRYrkesutovareLogical.harDokumenteradFormellickeFormell",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRKompetensLogical"
            ]
          }
        ],
        "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": "YrkesutovareToNPPRPractitioner",
            "map": "NPPRPractitioner.qualification"
          }
        ]
      },
      {
        "id": "NPPRYrkesutovareLogical.relationKontaktuppgift",
        "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": "NPPRYrkesutovareLogical.relationKontaktuppgift",
        "short": "relationKontaktuppgift",
        "definition": "relationKontaktuppgift",
        "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": "NPPRYrkesutovareLogical.relationKontaktuppgift",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRKontaktuppgiftLogical"
            ]
          }
        ],
        "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": "YrkesutovareToNPPRPractitioner",
            "map": "NPPRPractitioner.address"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "NPPRYrkesutovareLogical",
        "path": "NPPRYrkesutovareLogical",
        "short": "Yrkesutövare",
        "definition": "Klassen yrkesutövare håller information om person som är utövare av arbete som man kan försörja sig på och som kräver vissa särskilda kunskaper eller färdigheter. Exempel på yrkesutövare är en legitimerad sjuksköterska."
      },
      {
        "id": "NPPRYrkesutovareLogical.id",
        "path": "NPPRYrkesutovareLogical.id",
        "short": "id",
        "definition": "Angivelse av identifierare för en yrkesutövare.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "YrkesutovareToNPPRPractitioner",
            "map": "NPPRPractitioner.identifier"
          }
        ]
      },
      {
        "id": "NPPRYrkesutovareLogical.fornamn",
        "path": "NPPRYrkesutovareLogical.fornamn",
        "short": "förnamn",
        "definition": "Angivelse av förnamn, som är en persons givna namn och inkluderar tilltalsnamn.",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "YrkesutovareToNPPRPractitioner",
            "map": "NPPRPractitioner.name.given"
          }
        ]
      },
      {
        "id": "NPPRYrkesutovareLogical.efternamn",
        "path": "NPPRYrkesutovareLogical.efternamn",
        "short": "efternamn",
        "definition": "Angivelse av efternamn, som är en persons familjenamn eller släktnamn.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "YrkesutovareToNPPRPractitioner",
            "map": "NPPRPractitioner.name.family"
          }
        ]
      },
      {
        "id": "NPPRYrkesutovareLogical.harDokumenteradFormellickeFormell",
        "path": "NPPRYrkesutovareLogical.harDokumenteradFormellickeFormell",
        "short": "har dokumenterad formell/icke formell",
        "definition": "har dokumenterad formell/icke formell",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRKompetensLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "YrkesutovareToNPPRPractitioner",
            "map": "NPPRPractitioner.qualification"
          }
        ]
      },
      {
        "id": "NPPRYrkesutovareLogical.relationKontaktuppgift",
        "path": "NPPRYrkesutovareLogical.relationKontaktuppgift",
        "short": "relationKontaktuppgift",
        "definition": "relationKontaktuppgift",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/NPPR/StructureDefinition/NPPRKontaktuppgiftLogical"
            ]
          }
        ],
        "mapping": [
          {
            "identity": "YrkesutovareToNPPRPractitioner",
            "map": "NPPRPractitioner.address"
          }
        ]
      }
    ]
  }
}