{
  "resourceType": "StructureDefinition",
  "url": "https://api-erp.kamsoft.pl/ns/StructureDefinition/InventoryDocumentPosition",
  "name": "InventoryDocumentPosition",
  "version": "1.0.0",
  "title": "Pozycja dokumentu magazynowego",
  "description": "Wiersz InventoryDocument — produkt, ilość, lokalizacje źródłowe/docelowe.",
  "kind": "complex-type",
  "abstract": false,
  "type": "InventoryDocumentPosition",
  "snapshot": {
    "element": [
      {
        "path": "InventoryDocumentPosition.positionNo",
        "min": 0,
        "max": "1",
        "short": "Numer pozycji",
        "type": [
          {
            "code": "Int32"
          }
        ]
      },
      {
        "path": "InventoryDocumentPosition.product",
        "min": 0,
        "max": "1",
        "short": "Produkt",
        "definition": "Reference do Product / ProductDefinition.",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "path": "InventoryDocumentPosition.quantity",
        "min": 0,
        "max": "1",
        "short": "Ilość",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "path": "InventoryDocumentPosition.fromLocation",
        "min": 0,
        "max": "1",
        "short": "Lokalizacja źródłowa",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "path": "InventoryDocumentPosition.toLocation",
        "min": 0,
        "max": "1",
        "short": "Lokalizacja docelowa",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "path": "InventoryDocumentPosition.attribute",
        "min": 0,
        "max": "*",
        "short": "Atrybuty pozycji",
        "type": [
          {
            "code": "Attribute[]"
          }
        ]
      },
      {
        "path": "InventoryDocumentPosition.status",
        "min": 0,
        "max": "1",
        "short": "Status pozycji",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "valueSet": "https://api-erp.kamsoft.pl/ns/inventory-document-position-status"
        }
      }
    ]
  }
}