{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2019-02-07T14:17:13.585+00:00"
  },
  "url": "http://medico-emr.net/stu3/sd/Practitioner-User-1",
  "name": "Practitioner-User-1",
  "status": "active",
  "date": "2019-02-07T14:17:13.4079775+00:00",
  "description": "A FHIR practitioner resource of this profile represents a medico user, which means an employees medico useraccount\r\nTables: x9102usr",
  "purpose": "Access: Read\r\nVisibility: public",
  "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",
        "definition": "Represents an employee to the hospital in which medico works - don't confuse with User\r\n(PSR-Tabelle - nicht user)"
      },
      {
        "id": "Practitioner.id",
        "path": "Practitioner.id",
        "definition": "Internal id representing this FHIR resource\r\nCurrent mapping here:  User-#####, where ##### is x9102usr.usr",
        "min": 1
      },
      {
        "id": "Practitioner.meta",
        "path": "Practitioner.meta",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Meta",
            "profile": "http://medico-emr.net/stu3/sd/Meta-ProfileOnly-1"
          }
        ]
      },
      {
        "id": "Practitioner.meta.profile",
        "path": "Practitioner.meta.profile",
        "fixedUri": "http://medico-emr.net/stu3/sd/Practitioner-User-1"
      },
      {
        "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.extension",
        "path": "Practitioner.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Practitioner.extension:Employee",
        "path": "Practitioner.extension",
        "sliceName": "Employee",
        "type": [
          {
            "code": "Extension",
            "profile": "http://medico-emr.net/stu3/sd/MXT-UserEmployeeReference-1"
          }
        ]
      },
      {
        "id": "Practitioner.identifier",
        "path": "Practitioner.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "max": "1"
      },
      {
        "id": "Practitioner.identifier:medicoResourceId",
        "path": "Practitioner.identifier",
        "sliceName": "medicoResourceId",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Identifier",
            "profile": "http://medico-emr.net/stu3/sd/Identifier-medicoResourceId-1"
          }
        ]
      },
      {
        "id": "Practitioner.identifier:medicoResourceId.system",
        "path": "Practitioner.identifier.system",
        "definition": "Must be a constant underneath http://medico-emr.net/%KUNDE%/sid1/User",
        "comment": "Dynamically resolved for validation\r\n--FixedValue=http://medico-emr.net/%KUNDE%/sid1/User"
      },
      {
        "id": "Practitioner.identifier:medicoResourceId.value",
        "path": "Practitioner.identifier.value",
        "definition": "medico's internal id for this type of medico resource: x9102usr.usr\r\nThis value must be unique within medico - for a given value of \"system\""
      },
      {
        "id": "Practitioner.active",
        "path": "Practitioner.active",
        "definition": "if active is \"false\" - this could mean either that the User-record does not exist any more - or it ran out of validity (datf/datt)\r\nWhether this practitioner's record is in active use.\r\nmedico: gets inactive if one of the following coditions is met:\r\n- now is not between x9102usr.datf and datt\r\n- now is not between x8201psr.datf and datt\r\n- x9102usr.lockmk doesnt equals 0",
        "min": 1
      },
      {
        "id": "Practitioner.name",
        "path": "Practitioner.name",
        "definition": "the name information are identical to the name information following the employee reference extension",
        "min": 1,
        "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",
        "definition": "A full text representation of the name.\r\nFormat: x8201psr.chr x8201psr.name",
        "min": 1
      },
      {
        "id": "Practitioner.name.family",
        "path": "Practitioner.name.family",
        "definition": "The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.\r\nmedico: x8201psr.name",
        "min": 1
      },
      {
        "id": "Practitioner.name.given",
        "path": "Practitioner.name.given",
        "definition": "Given name.\r\nmedico: x8201psr.chr",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Practitioner.name.prefix",
        "path": "Practitioner.name.prefix",
        "definition": "Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.\r\nmedico: x8201psr.vorsatz (if available)",
        "max": "1"
      },
      {
        "id": "Practitioner.name.suffix",
        "path": "Practitioner.name.suffix",
        "definition": "Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.\r\nmedico: x8201psr.namezus (if available)",
        "max": "1"
      },
      {
        "id": "Practitioner.name.period",
        "path": "Practitioner.name.period",
        "min": 1
      },
      {
        "id": "Practitioner.name.period.id",
        "path": "Practitioner.name.period.id",
        "max": "0"
      },
      {
        "id": "Practitioner.name.period.start",
        "path": "Practitioner.name.period.start",
        "definition": "The start of the period. The boundary is inclusive.\r\nmedico: x9102usr.datf",
        "min": 1
      },
      {
        "id": "Practitioner.name.period.end",
        "path": "Practitioner.name.period.end",
        "definition": "The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.\r\nmedico: x9102usr.datt if less than 31.12.2099"
      },
      {
        "id": "Practitioner.telecom",
        "path": "Practitioner.telecom",
        "max": "0"
      },
      {
        "id": "Practitioner.address",
        "path": "Practitioner.address",
        "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"
      }
    ]
  }
}