{
  "resourceType": "StructureDefinition",
  "url": "https://api-erp.kamsoft.pl/ns/StructureDefinition/PostingInstruction",
  "name": "PostingInstruction",
  "version": "2.0.0-draft",
  "title": "PostingInstruction - bufor dokumentu do FK",
  "description": "Kanoniczny zasob bufora dokumentow do FK; jeden model z wariantami przez type i profile.",
  "kind": "resource",
  "abstract": false,
  "type": "PostingInstruction",
  "baseDefinition": "https://api-erp.kamsoft.pl/ns/StructureDefinition/DomainResource",
  "snapshot": {
    "element": [
      {
        "path": "PostingInstruction.identifier",
        "min": 0,
        "max": "*",
        "short": "Identyfikatory techniczne i biznesowe",
        "type": [{ "code": "Identifier[]" }]
      },
      {
        "path": "PostingInstruction.participant",
        "min": 0,
        "max": "*",
        "short": "Uczestnicy dokumentu (PartyRole)",
        "type": [{ "code": "Reference[]" }]
      },
      {
        "path": "PostingInstruction.attachment",
        "min": 0,
        "max": "*",
        "short": "Załączniki powiązane z instrukcją",
        "type": [{ "code": "Attachment[]" }]
      },
      {
        "path": "PostingInstruction.issueDate",
        "min": 1,
        "max": "1",
        "short": "Data wystawienia",
        "type": [{ "code": "String" }]
      },
      {
        "path": "PostingInstruction.realizationDate",
        "min": 0,
        "max": "1",
        "short": "Data realizacji / otrzymania",
        "type": [{ "code": "String" }]
      },
      {
        "path": "PostingInstruction.symbol",
        "min": 1,
        "max": "1",
        "short": "Symbol typu dokumentu z systemu zewnetrznego",
        "type": [{ "code": "CodeableConcept" }]
      },
      {
        "path": "PostingInstruction.paymentMethod",
        "min": 0,
        "max": "1",
        "short": "Forma platnosci",
        "type": [{ "code": "CodeableConcept" }]
      },
      {
        "path": "PostingInstruction.accountingVariant",
        "min": 0,
        "max": "1",
        "short": "Wariant księgowania na nagłówku",
        "type": [{ "code": "Reference" }]
      },
      {
        "path": "PostingInstruction.grossAmount",
        "min": 0,
        "max": "1",
        "short": "Kwota brutto",
        "type": [{ "code": "Money" }]
      },
      {
        "path": "PostingInstruction.netAmount",
        "min": 0,
        "max": "1",
        "short": "Kwota netto",
        "type": [{ "code": "Money" }]
      },
      {
        "path": "PostingInstruction.vatAmount",
        "min": 0,
        "max": "1",
        "short": "Kwota VAT",
        "type": [{ "code": "Money" }]
      },
      {
        "path": "PostingInstruction.register",
        "min": 0,
        "max": "1",
        "short": "Rejestr FK",
        "type": [{ "code": "Reference" }]
      },
      {
        "path": "PostingInstruction.saleDate",
        "min": 0,
        "max": "1",
        "short": "Data sprzedazy",
        "type": [{ "code": "String" }]
      },
      {
        "path": "PostingInstruction.dueDate",
        "min": 0,
        "max": "1",
        "short": "Termin platnosci",
        "type": [{ "code": "String" }]
      },
      {
        "path": "PostingInstruction.accountingDate",
        "min": 0,
        "max": "1",
        "short": "Data ujęcia księgowego",
        "type": [{ "code": "String" }]
      },
      {
        "path": "PostingInstruction.paymentAccount",
        "min": 0,
        "max": "1",
        "short": "Rachunek platnosci",
        "type": [{ "code": "Reference" }]
      },
      {
        "path": "PostingInstruction.position",
        "min": 1,
        "max": "*",
        "short": "Pozycje instrukcji bufora",
        "definition": "Co najmniej jedna pozycja.",
        "type": [{ "code": "PostingInstructionLine[]" }]
      }
    ]
  }
}
