{
  "resourceType": "StructureDefinition",
  "url": "http://electronichealth.se/fhir/StructureDefinition/NLLMedicationList",
  "name": "NLLMedicationList",
  "status": "draft",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "EHM",
      "name": "E-hälsomyndigheten internal model"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "List",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/List",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "List.extension",
        "path": "List.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "List.extension:version",
        "path": "List.extension",
        "sliceName": "version",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/Version"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Läkemedelslisteversion.Senaste version"
          }
        ]
      },
      {
        "id": "List.extension:nllSpecialMedications",
        "path": "List.extension",
        "sliceName": "nllSpecialMedications",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/NLLSpecialMedications"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Särskilda läkemedel finns"
          }
        ]
      },
      {
        "id": "List.extension:nllPrivacyLock",
        "path": "List.extension",
        "sliceName": "nllPrivacyLock",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/NLLPrivacyLock"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Spärrade förskrivningar finns"
          }
        ]
      },
      {
        "id": "List.extension:nllMigratedRecordsLF",
        "path": "List.extension",
        "sliceName": "nllMigratedRecordsLF",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/NLLMigratedRecordsLF"
            ]
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "EHM",
            "map": "Migrerade LF-poster utan förskrivning tillgängliga"
          }
        ]
      },
      {
        "id": "List.status",
        "path": "List.status",
        "fixedCode": "current"
      },
      {
        "id": "List.mode",
        "path": "List.mode",
        "fixedCode": "working"
      },
      {
        "id": "List.subject",
        "path": "List.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://electronichealth.se/fhir/StructureDefinition/NLLPatient"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}