{
  "resourceType": "StructureDefinition",
  "url": "https://api-erp.kamsoft.pl/ns/StructureDefinition/FormulaComponent",
  "name": "FormulaComponent",
  "version": "1.0.0",
  "title": "Składnik formuły (amortyzacji)",
  "description": "Zasób kanoniczny FK — węzeł hierarchii formuły z latami obowiązywania i znacznikiem końca łańcucha.",
  "kind": "resource",
  "abstract": false,
  "type": "FormulaComponent",
  "baseDefinition": "https://api-erp.kamsoft.pl/ns/StructureDefinition/DomainResource",
  "snapshot": {
    "element": [
      {
        "path": "FormulaComponent.identifier",
        "min": 0,
        "max": "*",
        "short": "Identyfikatory składnika",
        "type": [
          {
            "code": "Identifier[]"
          }
        ]
      },
      {
        "path": "FormulaComponent.partOf",
        "min": 0,
        "max": "1",
        "short": "Nadrzędny składnik",
        "definition": "PartOf → kolejny poziom formuły.",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "path": "FormulaComponent.level",
        "min": 0,
        "max": "1",
        "short": "Poziom w hierarchii",
        "type": [
          {
            "code": "Int32"
          }
        ]
      },
      {
        "path": "FormulaComponent.isLast",
        "min": 0,
        "max": "1",
        "short": "Ostatni w gałęzi",
        "type": [
          {
            "code": "Boolean"
          }
        ]
      },
      {
        "path": "FormulaComponent.startingYear",
        "min": 0,
        "max": "1",
        "short": "Rok początkowy",
        "type": [
          {
            "code": "Int32"
          }
        ]
      },
      {
        "path": "FormulaComponent.endingYear",
        "min": 0,
        "max": "1",
        "short": "Rok końcowy",
        "type": [
          {
            "code": "Int32"
          }
        ]
      }
    ]
  }
}