{
  "resourceType": "StructureDefinition",
  "url": "https://api-erp.kamsoft.pl/ns/StructureDefinition/Party",
  "name": "Party",
  "version": "1.0.0",
  "title": "Strona (Party)",
  "description": "Zasób kanoniczny Party — identyfikatory, nazwa, adres, kontakt; warstwa Core.",
  "kind": "resource",
  "abstract": false,
  "type": "Party",
  "baseDefinition": "https://api-erp.kamsoft.pl/ns/StructureDefinition/DomainResource",
  "snapshot": {
    "element": [
      {
        "path": "Party.identifier",
        "min": 0,
        "max": "*",
        "short": "Identyfikatory strony",
        "definition": "NIP, REGON, numery wewnętrzne itd. (Identifier.system + value).",
        "type": [
          {
            "code": "Identifier[]"
          }
        ]
      },
      {
        "path": "Party.name",
        "min": 0,
        "max": "1",
        "short": "Nazwa / firma",
        "definition": "CodeableConcept — nazwa wyświetlana lub ustrukturyzowana.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "path": "Party.address",
        "min": 0,
        "max": "*",
        "short": "Adresy",
        "type": [
          {
            "code": "Address[]"
          }
        ]
      },
      {
        "path": "Party.contactPoint",
        "min": 0,
        "max": "*",
        "short": "Dane kontaktowe",
        "type": [
          {
            "code": "ContactPoint[]"
          }
        ]
      },
      {
        "path": "Party.partOf",
        "min": 0,
        "max": "1",
        "short": "Strona nadrzędna",
        "definition": "Hierarchia organizacji (PartOf → inny Party).",
        "type": [
          {
            "code": "Reference"
          }
        ]
      }
    ]
  }
}