{
  "resourceType": "StructureDefinition",
  "url": "https://api-erp.kamsoft.pl/ns/StructureDefinition/BankAccount",
  "name": "BankAccount",
  "version": "1.0.0",
  "title": "Rachunek bankowy (BankAccount)",
  "description": "Zasób kanoniczny BankAccount — identyfikator konta, bank, waluta, konto księgowe.",
  "kind": "resource",
  "abstract": false,
  "type": "BankAccount",
  "baseDefinition": "https://api-erp.kamsoft.pl/ns/StructureDefinition/DomainResource",
  "snapshot": {
    "element": [
      {
        "path": "BankAccount.identifier",
        "min": 0,
        "max": "*",
        "short": "Identyfikatory rachunku",
        "type": [
          {
            "code": "Identifier[]"
          }
        ]
      },
      {
        "path": "BankAccount.accountNumber",
        "min": 0,
        "max": "1",
        "short": "Numer konta (IBAN / lokalny)",
        "type": [
          {
            "code": "String"
          }
        ]
      },
      {
        "path": "BankAccount.bankName",
        "min": 0,
        "max": "1",
        "short": "Nazwa banku",
        "type": [
          {
            "code": "String"
          }
        ]
      },
      {
        "path": "BankAccount.swiftCode",
        "min": 0,
        "max": "1",
        "short": "Kod SWIFT/BIC",
        "type": [
          {
            "code": "String"
          }
        ]
      },
      {
        "path": "BankAccount.ledgerAccount",
        "min": 0,
        "max": "1",
        "short": "Konto księgowe",
        "definition": "Reference do konta w planie kont (LedgerAccount).",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "path": "BankAccount.currency",
        "min": 0,
        "max": "1",
        "short": "Waluta rachunku",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "path": "BankAccount.isDefault",
        "min": 0,
        "max": "1",
        "short": "Rachunek domyślny",
        "type": [
          {
            "code": "Boolean"
          }
        ]
      }
    ]
  }
}