{
  "resourceType": "StructureDefinition",
  "url": "http://electronichealth.se/fhir/StructureDefinition/NLLWorkplaceSummary",
  "name": "NLLWorkplaceSummary",
  "status": "draft",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "EHM",
      "uri": "https://www.ehalsomyndigheten.se/",
      "name": "E-hälsomyndigheten"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Practitioner"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Extension.extension:workplaceIdentifier",
        "path": "Extension.extension",
        "sliceName": "workplaceIdentifier",
        "short": "Workplace identifier",
        "definition": "Identifier for the workplace. Can be either a Global Location Number, Organization Number, HSA Id or Arbetsplatskod.",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Extension.extension:workplaceIdentifier.url",
        "path": "Extension.extension.url",
        "fixedUri": "workplaceIdentifier"
      },
      {
        "id": "Extension.extension:workplaceIdentifier.value[x]",
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.extension:workplaceName",
        "path": "Extension.extension",
        "sliceName": "workplaceName",
        "short": "Name of the workplace",
        "definition": "Name of the workplace (sv: arbetsplatsnamn). Not mandatory for pharmacies.",
        "max": "1",
        "mapping": [
          {
            "identity": "EHM",
            "map": "Arbetsplats.Namn",
            "comment": "Arbetsplatsens namn"
          }
        ]
      },
      {
        "id": "Extension.extension:workplaceName.url",
        "path": "Extension.extension.url",
        "fixedUri": "workplaceName"
      },
      {
        "id": "Extension.extension:workplaceName.value[x]",
        "path": "Extension.extension.value[x]",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "Extension.extension:workplaceType",
        "path": "Extension.extension",
        "sliceName": "workplaceType",
        "short": "Workplace type",
        "definition": "Workplace type, can be either a health care unit, or a pharmacy.",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://ehalsomyndigheten.se/fhir/ValueSet/workplace-type"
        }
      },
      {
        "id": "Extension.extension:workplaceType.url",
        "path": "Extension.extension.url",
        "fixedUri": "workplaceType"
      },
      {
        "id": "Extension.extension:workplaceType.value[x]",
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "Extension.extension:workplaceIdType",
        "path": "Extension.extension",
        "sliceName": "workplaceIdType",
        "short": "The type of workplace id provided",
        "definition": "The type of workplace id provided. Can be either a Global Location Number, Organization Number, HSA Id or Arbetsplatskod.",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://ehalsomyndigheten.se/fhir/ValueSet/workplace-id-type"
        }
      },
      {
        "id": "Extension.extension:workplaceIdType.url",
        "path": "Extension.extension.url",
        "fixedUri": "workplaceIdType"
      },
      {
        "id": "Extension.extension:workplaceIdType.value[x]",
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://electronichealth.se/fhir/StructureDefinition/NLLWorkplaceSummary"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}