{
  "resourceType": "StructureDefinition",
  "url": "http://digen.nublar.de/fhir/StructureDefinition/DigenBmpPractitioner",
  "version": "Sprint10",
  "name": "DigenBmpPractitioner",
  "status": "draft",
  "description": "This Practitioner holds all practitioner data transmitted in the barcode of a Bundesmedikationsplan. While this normally refers to an individual practitioner, it can sometimes refer to an organization. To avoid the complexity we use just this Practitioner resource in both cases.\r\nThis resource will always be contained in a MedicationStatement, therefore additional restrictions have been implemented.\r\nPlease note that this is data from an external system and does not necessarily track with the contents of the DiGeN Healthcare Provider Directory.",
  "copyright": "AOK BV",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Practitioner",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Practitioner",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Practitioner",
        "path": "Practitioner",
        "short": "Person responsible for the medication plan",
        "definition": "The practitioner (or organization in some cases) that printed out the medication plan for the patient. This must be included inline, as we do not always know the LANR."
      },
      {
        "id": "Practitioner.meta.security",
        "path": "Practitioner.meta.security",
        "max": "0"
      },
      {
        "id": "Practitioner.meta.tag",
        "path": "Practitioner.meta.tag",
        "max": "0"
      },
      {
        "id": "Practitioner.implicitRules",
        "path": "Practitioner.implicitRules",
        "max": "0"
      },
      {
        "id": "Practitioner.language",
        "path": "Practitioner.language",
        "max": "0"
      },
      {
        "id": "Practitioner.text",
        "path": "Practitioner.text",
        "max": "0"
      },
      {
        "id": "Practitioner.contained",
        "path": "Practitioner.contained",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier",
        "path": "Practitioner.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "short": "An identifier for this person or organization",
        "definition": "An identifier for this person or organization. There may not be an identifier. If there is, it may be exactly one of LANR, K-IK, or Apotheken-IDF.",
        "max": "1"
      },
      {
        "id": "Practitioner.identifier:lebenslangeArztnummer",
        "path": "Practitioner.identifier",
        "sliceName": "lebenslangeArztnummer",
        "max": "1"
      },
      {
        "id": "Practitioner.identifier:lebenslangeArztnummer.id",
        "path": "Practitioner.identifier.id",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:lebenslangeArztnummer.use",
        "path": "Practitioner.identifier.use",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:lebenslangeArztnummer.type",
        "path": "Practitioner.identifier.type",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:lebenslangeArztnummer.system",
        "path": "Practitioner.identifier.system",
        "short": "The namespace for the LANR",
        "min": 1,
        "fixedUri": "http://fhir.de/NamingSystem/kbv/lanr"
      },
      {
        "id": "Practitioner.identifier:lebenslangeArztnummer.value",
        "path": "Practitioner.identifier.value",
        "short": "LANR",
        "definition": "9-digit LANR with leading zeros",
        "comment": "Read from barcode at \"MP.A.lanr\"",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:lebenslangeArztnummer.period",
        "path": "Practitioner.identifier.period",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:lebenslangeArztnummer.assigner",
        "path": "Practitioner.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:krankenhausInstitutionskennzeichen",
        "path": "Practitioner.identifier",
        "sliceName": "krankenhausInstitutionskennzeichen",
        "max": "1"
      },
      {
        "id": "Practitioner.identifier:krankenhausInstitutionskennzeichen.id",
        "path": "Practitioner.identifier.id",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:krankenhausInstitutionskennzeichen.use",
        "path": "Practitioner.identifier.use",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:krankenhausInstitutionskennzeichen.type",
        "path": "Practitioner.identifier.type",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:krankenhausInstitutionskennzeichen.system",
        "path": "Practitioner.identifier.system",
        "short": "The namespace for the IKNR",
        "min": 1,
        "fixedUri": "http://fhir.de/NamingSystem/arge-ik/iknr"
      },
      {
        "id": "Practitioner.identifier:krankenhausInstitutionskennzeichen.value",
        "path": "Practitioner.identifier.value",
        "short": "Krankenhaus-Institutionskennzeichen",
        "definition": "9-digit IK-Nummer for the hospital",
        "comment": "Read from barcode at \"MP.A.kik\"",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:krankenhausInstitutionskennzeichen.period",
        "path": "Practitioner.identifier.period",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:krankenhausInstitutionskennzeichen.assigner",
        "path": "Practitioner.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:apothekeidentifikationsnummer",
        "path": "Practitioner.identifier",
        "sliceName": "apothekeidentifikationsnummer",
        "max": "1"
      },
      {
        "id": "Practitioner.identifier:apothekeidentifikationsnummer.id",
        "path": "Practitioner.identifier.id",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:apothekeidentifikationsnummer.use",
        "path": "Practitioner.identifier.use",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:apothekeidentifikationsnummer.type",
        "path": "Practitioner.identifier.type",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:apothekeidentifikationsnummer.system",
        "path": "Practitioner.identifier.system",
        "short": "The namespace for the Apotheken-IDF",
        "min": 1,
        "fixedUri": "http://digen.nublar.de/fhir/NamingSystem/apotheken-IDF"
      },
      {
        "id": "Practitioner.identifier:apothekeidentifikationsnummer.value",
        "path": "Practitioner.identifier.value",
        "short": "Apotheken-IDF",
        "definition": "The 7-digit Apothekenidentifikationsnummer or Apotheken-IDF is identical to the 9-digit IK-Nummer without the leading \"30\"",
        "comment": "Read from barcode at \"MP.A.idf\"",
        "min": 1
      },
      {
        "id": "Practitioner.identifier:apothekeidentifikationsnummer.period",
        "path": "Practitioner.identifier.period",
        "max": "0"
      },
      {
        "id": "Practitioner.identifier:apothekeidentifikationsnummer.assigner",
        "path": "Practitioner.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Practitioner.active",
        "path": "Practitioner.active",
        "max": "0"
      },
      {
        "id": "Practitioner.name",
        "path": "Practitioner.name",
        "short": "Ausdruckender des Medikationsplans",
        "definition": "The name(s) associated with the practitioner or organization.",
        "max": "1"
      },
      {
        "id": "Practitioner.name.id",
        "path": "Practitioner.name.id",
        "max": "0"
      },
      {
        "id": "Practitioner.name.use",
        "path": "Practitioner.name.use",
        "max": "0"
      },
      {
        "id": "Practitioner.name.text",
        "path": "Practitioner.name.text",
        "min": 1
      },
      {
        "id": "Practitioner.name.family",
        "path": "Practitioner.name.family",
        "max": "0"
      },
      {
        "id": "Practitioner.name.given",
        "path": "Practitioner.name.given",
        "max": "0"
      },
      {
        "id": "Practitioner.name.prefix",
        "path": "Practitioner.name.prefix",
        "max": "0"
      },
      {
        "id": "Practitioner.name.suffix",
        "path": "Practitioner.name.suffix",
        "max": "0"
      },
      {
        "id": "Practitioner.name.period",
        "path": "Practitioner.name.period",
        "max": "0"
      },
      {
        "id": "Practitioner.telecom",
        "path": "Practitioner.telecom",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Practitioner.telecom:phone",
        "path": "Practitioner.telecom",
        "sliceName": "phone",
        "short": "Telefonnummer",
        "max": "1"
      },
      {
        "id": "Practitioner.telecom:phone.id",
        "path": "Practitioner.telecom.id",
        "max": "0"
      },
      {
        "id": "Practitioner.telecom:phone.system",
        "path": "Practitioner.telecom.system",
        "min": 1,
        "fixedCode": "phone"
      },
      {
        "id": "Practitioner.telecom:phone.value",
        "path": "Practitioner.telecom.value",
        "short": "Telefonnummer",
        "comment": "Read from barcode at \"MP.A.p\"",
        "min": 1
      },
      {
        "id": "Practitioner.telecom:phone.use",
        "path": "Practitioner.telecom.use",
        "min": 1,
        "fixedCode": "work"
      },
      {
        "id": "Practitioner.telecom:phone.rank",
        "path": "Practitioner.telecom.rank",
        "max": "0"
      },
      {
        "id": "Practitioner.telecom:phone.period",
        "path": "Practitioner.telecom.period",
        "max": "0"
      },
      {
        "id": "Practitioner.telecom:email",
        "path": "Practitioner.telecom",
        "sliceName": "email",
        "short": "E-Mail Adresse",
        "max": "1"
      },
      {
        "id": "Practitioner.telecom:email.id",
        "path": "Practitioner.telecom.id",
        "max": "0"
      },
      {
        "id": "Practitioner.telecom:email.system",
        "path": "Practitioner.telecom.system",
        "min": 1,
        "fixedCode": "email"
      },
      {
        "id": "Practitioner.telecom:email.value",
        "path": "Practitioner.telecom.value",
        "short": "E-Mail",
        "comment": "Read from barcode at \"MP.A.e\"",
        "min": 1
      },
      {
        "id": "Practitioner.telecom:email.use",
        "path": "Practitioner.telecom.use",
        "min": 1,
        "fixedCode": "work"
      },
      {
        "id": "Practitioner.telecom:email.rank",
        "path": "Practitioner.telecom.rank",
        "max": "0"
      },
      {
        "id": "Practitioner.telecom:email.period",
        "path": "Practitioner.telecom.period",
        "max": "0"
      },
      {
        "id": "Practitioner.address",
        "path": "Practitioner.address",
        "max": "1"
      },
      {
        "id": "Practitioner.address.id",
        "path": "Practitioner.address.id",
        "max": "0"
      },
      {
        "id": "Practitioner.address.use",
        "path": "Practitioner.address.use",
        "fixedCode": "work"
      },
      {
        "id": "Practitioner.address.type",
        "path": "Practitioner.address.type",
        "max": "0"
      },
      {
        "id": "Practitioner.address.text",
        "path": "Practitioner.address.text",
        "max": "0"
      },
      {
        "id": "Practitioner.address.line",
        "path": "Practitioner.address.line",
        "short": "Straße",
        "comment": "Read from barcode at \"MP.A.s\"",
        "max": "1"
      },
      {
        "id": "Practitioner.address.city",
        "path": "Practitioner.address.city",
        "short": "Ort",
        "comment": "Read from barcode at \"MP.A.c\""
      },
      {
        "id": "Practitioner.address.district",
        "path": "Practitioner.address.district",
        "max": "0"
      },
      {
        "id": "Practitioner.address.state",
        "path": "Practitioner.address.state",
        "max": "0"
      },
      {
        "id": "Practitioner.address.postalCode",
        "path": "Practitioner.address.postalCode",
        "short": "PLZ",
        "comment": "Read from barcode at \"MP.A.z\""
      },
      {
        "id": "Practitioner.address.country",
        "path": "Practitioner.address.country",
        "max": "0"
      },
      {
        "id": "Practitioner.address.period",
        "path": "Practitioner.address.period",
        "max": "0"
      },
      {
        "id": "Practitioner.gender",
        "path": "Practitioner.gender",
        "max": "0"
      },
      {
        "id": "Practitioner.birthDate",
        "path": "Practitioner.birthDate",
        "max": "0"
      },
      {
        "id": "Practitioner.photo",
        "path": "Practitioner.photo",
        "max": "0"
      },
      {
        "id": "Practitioner.qualification",
        "path": "Practitioner.qualification",
        "max": "0"
      },
      {
        "id": "Practitioner.communication",
        "path": "Practitioner.communication",
        "max": "0"
      }
    ]
  }
}