{
  "resourceType": "StructureDefinition",
  "url": "https://medico-emr.net/medico/r4/sd/Organization_TenantPDM_1",
  "name": "Organization_TenantPDM_1",
  "status": "draft",
  "description": "This profile describes a PDM mandator of medico, which is a healthcare provider.",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Organization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Organization.id",
        "path": "Organization.id",
        "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.\r\nmedico: format will be Tenant-#####, where ##### is x8960hou.hou",
        "min": 1
      },
      {
        "id": "Organization.meta",
        "path": "Organization.meta",
        "min": 1
      },
      {
        "id": "Organization.meta.lastUpdated",
        "path": "Organization.meta.lastUpdated",
        "mustSupport": true
      },
      {
        "id": "Organization.meta.profile",
        "path": "Organization.meta.profile",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.identifier",
        "path": "Organization.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 2
      },
      {
        "id": "Organization.identifier:medicoResourceId",
        "path": "Organization.identifier",
        "sliceName": "medicoResourceId",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier:medicoResourceId.system",
        "path": "Organization.identifier.system",
        "definition": "The resulting value will be https://medico-emr.net/medico/%KUNDE%/sid1/Tenant\r\n - where %KUNDE& is a tenant specific 2-3 character id\r\nfor automatic calculation the Code with the system \"https://medico-emr.net/medico/cs/customerdefinedsystem\" is used",
        "comment": "Identifier.system is always case sensitive.\r\nDynamically resolved for validation\r\n--FixedValue=https://medico-emr.net/medico/%KUNDE%/sid1/Tenant",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier:medicoResourceId.value",
        "path": "Organization.identifier.value",
        "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.\r\nmedico: x8960hou.hou",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier:IKNr",
        "path": "Organization.identifier",
        "sliceName": "IKNr",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier:IKNr.system",
        "path": "Organization.identifier.system",
        "fixedUri": "http://fhir.de/sid/arge-ik/iknr",
        "mustSupport": true
      },
      {
        "id": "Organization.identifier:IKNr.value",
        "path": "Organization.identifier.value",
        "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.\r\nmedico: x8960hou.instno",
        "mustSupport": true
      },
      {
        "id": "Organization.type",
        "path": "Organization.type",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Organization.type.coding",
        "path": "Organization.type.coding",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Organization.type.coding.system",
        "path": "Organization.type.coding.system",
        "fixedUri": "http://terminology.hl7.org/CodeSystem/organization-type",
        "mustSupport": true
      },
      {
        "id": "Organization.type.coding.code",
        "path": "Organization.type.coding.code",
        "fixedCode": "prov",
        "mustSupport": true
      },
      {
        "id": "Organization.name",
        "path": "Organization.name",
        "mustSupport": true
      }
    ]
  }
}