{
  "resourceType": "StructureDefinition",
  "url": "https://api-erp.kamsoft.pl/ns/StructureDefinition/OrganizationUnit",
  "name": "OrganizationUnit",
  "version": "1.0.0",
  "title": "Jednostka organizacyjna",
  "description": "Zasób kanoniczny HR — jednostka w strukturze organizacji (symbol, nazwa, adres, hierarchia).",
  "kind": "resource",
  "abstract": false,
  "type": "OrganizationUnit",
  "baseDefinition": "https://api-erp.kamsoft.pl/ns/StructureDefinition/DomainResource",
  "snapshot": {
    "element": [
      {
        "path": "OrganizationUnit.identifier",
        "min": 0,
        "max": "*",
        "short": "Identyfikatory jednostki",
        "type": [
          {
            "code": "Identifier[]"
          }
        ]
      },
      {
        "path": "OrganizationUnit.symbol",
        "min": 0,
        "max": "1",
        "short": "Symbol jednostki",
        "type": [
          {
            "code": "String"
          }
        ]
      },
      {
        "path": "OrganizationUnit.shortName",
        "min": 0,
        "max": "1",
        "short": "Skrócona nazwa",
        "type": [
          {
            "code": "String"
          }
        ]
      },
      {
        "path": "OrganizationUnit.organization",
        "min": 1,
        "max": "1",
        "short": "Organizacja",
        "definition": "Reference do Party / zasobu reprezentującego podmiot prawny.",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "path": "OrganizationUnit.address",
        "min": 0,
        "max": "*",
        "short": "Adresy",
        "type": [
          {
            "code": "Address[]"
          }
        ]
      },
      {
        "path": "OrganizationUnit.period",
        "min": 0,
        "max": "1",
        "short": "Okres obowiązywania",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "path": "OrganizationUnit.name",
        "min": 0,
        "max": "1",
        "short": "Nazwa pełna",
        "type": [
          {
            "code": "String"
          }
        ]
      },
      {
        "path": "OrganizationUnit.partOf",
        "min": 0,
        "max": "1",
        "short": "Jednostka nadrzędna",
        "definition": "Hierarchia (PartOf → nadrzędna OrganizationUnit).",
        "type": [
          {
            "code": "Reference"
          }
        ]
      }
    ]
  }
}