﻿{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "PurchaseRequisitionPosition",
  "title": "1.0.0",
  "version": "1.0.0",
  "type": "object",
  "properties": {
    "positionNo": {
      "description": "Numer pozycji",
      "type": "integer"
    },
    "product": {
      "description": "Produkt",
      "$ref": "Reference.schema.json"
    },
    "quantity": {
      "description": "Ilo\u015B\u0107 \u017C\u0105dana",
      "$ref": "Quantity.schema.json"
    },
    "priority": {
      "description": "Priorytet pozycji",
      "$ref": "CodeableConcept.schema.json"
    },
    "type": {
      "description": "Typ pozycji",
      "$ref": "CodeableConcept.schema.json"
    },
    "factor": {
      "description": "Mno\u017Cnik/przelicznik dla ilo\u015Bci",
      "type": "number"
    },
    "attribute": {
      "description": "Atrybuty pozycji",
      "type": "array",
      "items": {
        "$ref": "Attribute.schema.json"
      }
    },
    "status": {
      "description": "Status pozycji",
      "$ref": "CodeableConcept.schema.json"
    },
    "creationTime": {
      "description": "Data utworzenia pozycji",
      "type": "string"
    },
    "fulfilledQuantity": {
      "description": "Ilo\u015B\u0107 zrealizowana",
      "type": "integer"
    },
    "description": {
      "description": "Opis pozycji",
      "type": "string"
    }
  },
  "required": [
    "positionNo",
    "product",
    "quantity"
  ]
}