{
  "resourceType": "StructureDefinition",
  "url": "https://api-erp.kamsoft.pl/ns/StructureDefinition/ValueItem",
  "name": "ValueItem",
  "version": "1.0.0",
  "title": "Wartość pozycji (valueItem)",
  "description": "Typ złożony kanoniczny — jeden typ (CodeableConcept) i dokładnie jedna z wartości value*; używany m.in. w pozycjach dokumentów i atrybutach.",
  "kind": "complex-type",
  "abstract": false,
  "type": "ValueItem",
  "snapshot": {
    "element": [
      {
        "path": "ValueItem.type",
        "min": 0,
        "max": "1",
        "short": "Typ składnika wartości",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "valueSet": "https://api-erp.kamsoft.pl/ns/value-item-type"
        }
      },
      {
        "path": "ValueItem.valueQuantity",
        "min": 0,
        "max": "1",
        "short": "Wartość — ilość",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "path": "ValueItem.valueMoney",
        "min": 0,
        "max": "1",
        "short": "Wartość — kwota",
        "type": [
          {
            "code": "Money"
          }
        ]
      },
      {
        "path": "ValueItem.valueString",
        "min": 0,
        "max": "1",
        "short": "Wartość — tekst",
        "type": [
          {
            "code": "String"
          }
        ]
      },
      {
        "path": "ValueItem.valueInteger",
        "min": 0,
        "max": "1",
        "short": "Wartość — liczba całkowita",
        "type": [
          {
            "code": "Int32"
          }
        ]
      },
      {
        "path": "ValueItem.valueBoolean",
        "min": 0,
        "max": "1",
        "short": "Wartość — logiczna",
        "type": [
          {
            "code": "Boolean"
          }
        ]
      },
      {
        "path": "ValueItem.valueCodeableConcept",
        "min": 0,
        "max": "1",
        "short": "Wartość — CodeableConcept",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "path": "ValueItem.valueReference",
        "min": 0,
        "max": "1",
        "short": "Wartość — Reference",
        "type": [
          {
            "code": "Reference"
          }
        ]
      }
    ]
  }
}