{
  "resourceType": "StructureDefinition",
  "url": "https://api-erp.kamsoft.pl/ns/StructureDefinition/Attribute",
  "name": "Attribute",
  "version": "1.0.0",
  "title": "Atrybut (code + value)",
  "description": "Typ złożony kanoniczny — rodzaj cechy (code) i wartość; system w code zależy od zasobu nadrzędnego (np. document-attribute-type, party-attribute-type, location-attribute-type).",
  "kind": "complex-type",
  "abstract": false,
  "type": "Attribute",
  "snapshot": {
    "element": [
      {
        "path": "Attribute.code",
        "min": 0,
        "max": "1",
        "short": "Rodzaj atrybutu",
        "definition": "CodeableConcept; URI systemu dobierany wg kontekstu zasobu (patrz code-systems.md i IG zasobu nadrzędnego).",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "path": "Attribute.valueQuantity",
        "min": 0,
        "max": "1",
        "short": "Wartość — ilość",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "path": "Attribute.valueMoney",
        "min": 0,
        "max": "1",
        "short": "Wartość — kwota",
        "type": [
          {
            "code": "Money"
          }
        ]
      },
      {
        "path": "Attribute.valueItem",
        "min": 0,
        "max": "*",
        "short": "Wartości (valueItem)",
        "type": [
          {
            "code": "ValueItem[]"
          }
        ]
      },
      {
        "path": "Attribute.valueString",
        "min": 0,
        "max": "1",
        "short": "Wartość — tekst",
        "type": [
          {
            "code": "String"
          }
        ]
      },
      {
        "path": "Attribute.valueCodeableConcept",
        "min": 0,
        "max": "*",
        "short": "Wartość — CodeableConcept",
        "type": [
          {
            "code": "CodeableConcept[]"
          }
        ]
      },
      {
        "path": "Attribute.valueReference",
        "min": 0,
        "max": "*",
        "short": "Wartość — Reference",
        "type": [
          {
            "code": "Reference[]"
          }
        ]
      }
    ]
  }
}