{
  "resourceType": "StructureDefinition",
  "url": "https://api-erp.kamsoft.pl/ns/StructureDefinition/PartyRole",
  "name": "PartyRole",
  "version": "1.0.0",
  "title": "Rola strony (PartyRole)",
  "description": "Zasób kanoniczny PartyRole — powiązanie Party z rolą (sprzedawca, nabywca, pracownik) w kontekście i okresie.",
  "kind": "resource",
  "abstract": false,
  "type": "PartyRole",
  "baseDefinition": "https://api-erp.kamsoft.pl/ns/StructureDefinition/DomainResource",
  "snapshot": {
    "element": [
      {
        "path": "PartyRole.party",
        "min": 0,
        "max": "1",
        "short": "Strona",
        "definition": "Reference do Party.",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "path": "PartyRole.role",
        "min": 0,
        "max": "1",
        "short": "Rola",
        "definition": "np. seller, buyer (party-role).",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "valueSet": "https://api-erp.kamsoft.pl/ns/party-role"
        }
      },
      {
        "path": "PartyRole.period",
        "min": 0,
        "max": "1",
        "short": "Okres ważności roli",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "path": "PartyRole.context",
        "min": 0,
        "max": "1",
        "short": "Kontekst",
        "definition": "np. umowa, dokument, jednostka organizacyjna.",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "path": "PartyRole.contextIdentifier",
        "min": 0,
        "max": "1",
        "short": "Identyfikator kontekstu",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      }
    ]
  }
}