{
  "resourceType": "StructureDefinition",
  "url": "https://api-erp.kamsoft.pl/ns/StructureDefinition/FixedAssetAllocation",
  "name": "FixedAssetAllocation",
  "version": "1.0.0",
  "title": "Alokacja środka trwałego",
  "description": "Zasób kanoniczny ESM — przypisanie środka (lub składowej) do obiektu kosztowego z wagą, ilością i okresem ważności.",
  "kind": "resource",
  "abstract": false,
  "type": "FixedAssetAllocation",
  "baseDefinition": "https://api-erp.kamsoft.pl/ns/StructureDefinition/DomainResource",
  "snapshot": {
    "element": [
      {
        "path": "FixedAssetAllocation.identifier",
        "min": 0,
        "max": "*",
        "short": "Identyfikatory alokacji",
        "type": [
          {
            "code": "Identifier[]"
          }
        ]
      },
      {
        "path": "FixedAssetAllocation.fixedAsset",
        "min": 0,
        "max": "1",
        "short": "Środek trwały",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "path": "FixedAssetAllocation.assetComponent",
        "min": 0,
        "max": "1",
        "short": "Składowa majątku",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "path": "FixedAssetAllocation.dimension",
        "min": 0,
        "max": "1",
        "short": "Wymiar przypisania",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "valueSet": "https://api-erp.kamsoft.pl/ns/fixed-asset-allocation-dimension"
        }
      },
      {
        "path": "FixedAssetAllocation.target",
        "min": 0,
        "max": "1",
        "short": "Cel (np. centrum kosztów, lokalizacja)",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "path": "FixedAssetAllocation.relatedTarget",
        "min": 0,
        "max": "1",
        "short": "Cel powiązany",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "path": "FixedAssetAllocation.participant",
        "min": 0,
        "max": "*",
        "short": "Uczestnicy",
        "type": [
          {
            "code": "Reference[]"
          }
        ]
      },
      {
        "path": "FixedAssetAllocation.quantity",
        "min": 0,
        "max": "1",
        "short": "Ilość",
        "type": [
          {
            "code": "Double"
          }
        ]
      },
      {
        "path": "FixedAssetAllocation.weight",
        "min": 0,
        "max": "1",
        "short": "Waga (np. udział procentowy)",
        "type": [
          {
            "code": "Double"
          }
        ]
      },
      {
        "path": "FixedAssetAllocation.initialValue",
        "min": 0,
        "max": "1",
        "short": "Wartość początkowa",
        "type": [
          {
            "code": "Money"
          }
        ]
      },
      {
        "path": "FixedAssetAllocation.agreement",
        "min": 0,
        "max": "1",
        "short": "Umowa / porozumienie",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "path": "FixedAssetAllocation.validFrom",
        "min": 0,
        "max": "1",
        "short": "Ważne od",
        "type": [
          {
            "code": "String"
          }
        ]
      },
      {
        "path": "FixedAssetAllocation.validTo",
        "min": 0,
        "max": "1",
        "short": "Ważne do",
        "type": [
          {
            "code": "String"
          }
        ]
      }
    ]
  }
}