﻿{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "PurchaseOrderPosition",
  "title": "1.0.0",
  "version": "1.0.0",
  "type": "object",
  "properties": {
    "positionNo": {
      "description": "Numer pozycji",
      "type": "integer"
    },
    "product": {
      "description": "Produkt",
      "$ref": "Reference.schema.json"
    },
    "description": {
      "description": "Opis pozycji",
      "type": "string"
    },
    "quantity": {
      "description": "Ilo\u015B\u0107 zam\u00F3wiona",
      "$ref": "Quantity.schema.json"
    },
    "unitPrice": {
      "description": "Cena jednostkowa",
      "$ref": "Money.schema.json"
    },
    "amount": {
      "description": "Warto\u015B\u0107 pozycji",
      "$ref": "Money.schema.json"
    },
    "status": {
      "description": "Status pozycji",
      "$ref": "CodeableConcept.schema.json"
    },
    "supplierProductId": {
      "description": "Identyfikator produktu u dostawcy",
      "type": "string"
    },
    "deliverySchedule": {
      "description": "Harmonogram dostaw",
      "type": "array",
      "items": {
        "$ref": "1.0.0.schema.json"
      }
    }
  }
}