{
  "resourceType": "StructureDefinition",
  "url": "https://api-erp.kamsoft.pl/ns/StructureDefinition/PostingInstructionLine",
  "name": "PostingInstructionLine",
  "version": "2.0.0-draft",
  "title": "Pozycja PostingInstruction",
  "description": "Pozycja instrukcji bufora FK (accounting-item, vat-summary).",
  "kind": "complex-type",
  "abstract": false,
  "type": "PostingInstructionLine",
  "snapshot": {
    "element": [
      {
        "path": "PostingInstructionLine.positionNo",
        "min": 0,
        "max": "1",
        "short": "Numer pozycji",
        "type": [{ "code": "Int32" }]
      },
      {
        "path": "PostingInstructionLine.code",
        "min": 0,
        "max": "1",
        "short": "Typ pozycji",
        "type": [{ "code": "CodeableConcept" }]
      },
      {
        "path": "PostingInstructionLine.valueMoney",
        "min": 0,
        "max": "1",
        "short": "Kwota pozycji",
        "type": [{ "code": "Money" }]
      },
      {
        "path": "PostingInstructionLine.valueItem",
        "min": 0,
        "max": "*",
        "short": "Wartosci pomocnicze pozycji",
        "type": [{ "code": "ValueItem[]" }]
      },
      {
        "path": "PostingInstructionLine.valueAllocation",
        "min": 0,
        "max": "*",
        "short": "Alokacje KO/KR",
        "type": [{ "code": "AllocationItem[]" }]
      },
      {
        "path": "PostingInstructionLine.valueCodeableConcept",
        "min": 0,
        "max": "*",
        "short": "Wartosci kodowane pozycji",
        "type": [{ "code": "CodeableConcept[]" }]
      },
      {
        "path": "PostingInstructionLine.valueReference",
        "min": 0,
        "max": "*",
        "short": "Referencje pozycji",
        "type": [{ "code": "Reference[]" }]
      },
      {
        "path": "PostingInstructionLine.purchaseVatDeduction",
        "min": 0,
        "max": "1",
        "short": "Tylko vat-summary: typ odliczenia VAT zakupu - §7.3",
        "type": [{ "code": "CodeableConcept" }]
      },
      {
        "path": "PostingInstructionLine.vatRate",
        "min": 0,
        "max": "1",
        "short": "Tylko vat-summary: stawka VAT",
        "type": [{ "code": "CodeableConcept" }]
      },
      {
        "path": "PostingInstructionLine.valueString",
        "min": 0,
        "max": "1",
        "short": "Wariant 3 (migracja): kody lub @symbol",
        "type": [{ "code": "String" }]
      },
      {
        "path": "PostingInstructionLine.accountingVariant",
        "min": 0,
        "max": "1",
        "short": "Wariant dekretacji na pozycji",
        "type": [{ "code": "Reference" }]
      }
    ]
  }
}
