{"openapi":"3.0.3","info":{"title":"Scrivio public API","version":"1.0.0","description":"The operations of the Scrivio API that an API-koppeling may call. Generated from the operations marked `x-scrivio-public: true`; do not edit by hand.\n"},"servers":[{"url":"https://api.scrivio.nl"}],"tags":[{"name":"answers","description":"Answer viewing and editing operations"},{"name":"care-circle","description":"Client care circle (naastenkring) contact operations"},{"name":"client-state-periods","description":"Client state history and versioned tracking"},{"name":"client-states","description":"Client state configuration management"},{"name":"client-zorgvraag","description":"Client zorgvraag en zorgaanbod operations"},{"name":"clients","description":"Client management operations"},{"name":"documents","description":"Document management operations"},{"name":"dsm5-diagnoses","description":"DSM-5 diagnosis reference data operations"},{"name":"form-submission-answers","description":"Filling in a form submission (answers, AI suggestions, review)"},{"name":"form-submissions","description":"Form submission lifecycle and queries"},{"name":"forms","description":"Form management operations"},{"name":"letters","description":"Letter generation and management"},{"name":"reference-data","description":"Reference data for zorgvraagtypering codes"},{"name":"zorgtrajecten","description":"Zorgtraject (care trajectory) management operations"},{"name":"zorgvraagtypering","description":"Zorgvraagtypering (care typing) management operations"}],"paths":{"/api/v1/client-states":{"get":{"summary":"List client states","description":"Returns all client states for the authenticated user's organization","operationId":"listClientStates","tags":["client-states"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"activeOnly","in":"query","description":"If true, only return active client states","required":false,"schema":{"type":"boolean","default":false}},{"name":"page","in":"query","description":"Page number (0-indexed)","required":false,"schema":{"type":"integer","format":"int32","minimum":0,"default":0}},{"name":"size","in":"query","description":"Number of items per page","required":false,"schema":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"List of client states","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientStateListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}},"/api/v1/clients":{"get":{"summary":"List clients","description":"List clients in the authenticated user's organization with pagination,\nsearch, and filtering capabilities.\n","operationId":"listClients","tags":["clients"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"page","in":"query","description":"Page number (0-indexed)","required":false,"schema":{"type":"integer","format":"int32","minimum":0,"default":0}},{"name":"size","in":"query","description":"Number of items per page","required":false,"schema":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20}},{"name":"sort","in":"query","description":"Sort specification as \"field,direction\" (e.g., \"lastName,asc\" or \"createdAt,desc\"). Supported fields: createdAt, updatedAt, firstName, lastName, email, dateOfBirth, intakeDate, patientNumber, stateSince. Any other field falls back to lastName. stateSince orders on currentStateSince and puts a client without one last in both directions, so \"stateSince,asc\" lists the longest-waiting client first.","required":false,"schema":{"type":"string","default":"lastName,asc"}},{"name":"search","in":"query","description":"The cliënt search — the same search as the app's global cliënt search field. It matches the name (per word, so \"Floor de Wit\" finds a cliënt with tussenvoegsel \"de\"), e-mail, BSN, address, external reference and patiëntnummer as a case-insensitive substring, so \"123\" finds patiëntnummer \"P-000123\". A date of birth matches written as yyyy-mm-dd (also in part, e.g. \"1985-03\") or as a full Dutch date dd-mm-yyyy (also \"12/03/1985\", \"12.03.1985\" or \"12031985\").","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"locationId","in":"query","description":"Filter by location ID","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"archived","in":"query","description":"Include archived clients (default false shows only active)","required":false,"schema":{"type":"boolean","default":false}},{"name":"clientStateId","in":"query","description":"Filter by current client state (status). Returns only clients whose most recent state period matches this state.","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"clientStateCategoryId","in":"query","description":"Filter by client state category: returns only clients whose current state is grouped\nunder this category. Combined with clientStateId when both are given.\n","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"clientIds","in":"query","description":"Restrict the page to exactly these clients — the overview narrowed to a set\nsomebody else already worked out, rather than a property of the clients\nthemselves.\n\nCombined with the other filters rather than replacing them, so the archived,\nlocation and status filters still apply on top. Omitted or empty means no\nrestriction; an id outside the reader's visibility scope simply does not\ncome back.\n","required":false,"style":"form","explode":true,"schema":{"type":"array","items":{"type":"string","format":"uuid"}}}],"responses":{"200":{"description":"Clients retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}},"post":{"summary":"Create new client","description":"Creates a new client in the authenticated user's organization","operationId":"createClient","tags":["clients"],"security":[{"firebaseAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateClientRequest"},"examples":{"fullClient":{"summary":"Client with all fields","value":{"firstName":"Jan","lastName":"Berg","prefix":"van den","email":"jan.vandenberg@example.nl","phone":"+31612345678","addressStreet":"Hoofdstraat","addressHouseNumber":"123","addressPostalCode":"1234AB","addressCity":"Amsterdam","dateOfBirth":"1985-03-15","bsn":"123456782","gender":"MALE","intakeDate":"2024-01-15"}},"minimalClient":{"summary":"Client with only required fields","value":{"firstName":"Maria","lastName":"Jansen"}}}}}},"responses":{"201":{"description":"Client created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientProfile"}}}},"400":{"description":"Invalid request data, including a BSN that fails the elfproef — `errors` then\ncarries one entry naming `bsn`.\n","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"401":{"description":"Unauthorized - missing or invalid authentication token","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden - user not assigned to organization","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"409":{"description":"Conflict - BSN already exists in organization","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"422":{"description":"Validation error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/clients/{clientId}":{"get":{"summary":"Get client by ID","description":"Retrieves a single client by ID. User must be in same organization.","operationId":"getClientById","tags":["clients"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"clientId","in":"path","description":"Client UUID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Client retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientProfile"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden - client not in same organization","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Client not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}},"put":{"summary":"Update client","description":"Updates an existing client. User must be in same organization.","operationId":"updateClient","tags":["clients"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"clientId","in":"path","description":"Client UUID","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateClientRequest"},"examples":{"updateContact":{"summary":"Update contact information","value":{"email":"newemail@example.nl","phone":"+31687654321"}},"updateLocation":{"summary":"Update location","value":{"locationId":"880e8400-e29b-41d4-a716-446655440003"}}}}}},"responses":{"200":{"description":"Client updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientProfile"}}}},"400":{"description":"Invalid request data, including a BSN this request *changes* to one that fails\nthe elfproef — `errors` then carries one entry naming `bsn`. A stored BSN the\nrequest leaves alone is never judged.\n","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Client not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"409":{"description":"Conflict - BSN already exists","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"422":{"description":"Validation error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/clients/{clientId}/behandelaars":{"get":{"summary":"Get assigned behandelaars","description":"Retrieves all active behandelaar assignments for a client.","operationId":"getClientBehandelaars","tags":["clients"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"clientId","in":"path","description":"Client UUID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Behandelaars retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ClientBehandelaarResponse"}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Client not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/clients/{clientId}/care-circle":{"get":{"summary":"List care circle contacts","description":"Retrieves all active care circle contacts (zorgkring) for a client.","operationId":"listCareCircleContacts","tags":["care-circle"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"clientId","in":"path","description":"Client UUID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Care circle contacts retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CareCircleContactResponse"}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Client not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}},"post":{"summary":"Create care circle contact","description":"Creates a new care circle contact (zorgkring) for a client.","operationId":"createCareCircleContact","tags":["care-circle"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"clientId","in":"path","description":"Client UUID","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCareCircleContactRequest"},"examples":{"huisarts":{"summary":"GP (Huisarts)","value":{"role":"HUISARTS","name":"Dr. Jan de Vries","email":"j.devries@huisartsenpraktijk.nl","phone":"+31201234567","agbCode":"01012345","praktijkName":"Huisartsenpraktijk De Vries","praktijkStreet":"Dokterslaan 1","praktijkPostalCode":"1234AB","praktijkCity":"Amsterdam"}},"contactPerson":{"summary":"Contact person (family member)","value":{"role":"CONTACT_PERSOON","name":"Maria Jansen","relation":"Moeder","email":"m.jansen@example.nl","phone":"+31612345678","addressStreet":"Familiestraat 42","addressPostalCode":"5678CD","addressCity":"Rotterdam"}}}}}},"responses":{"201":{"description":"Care circle contact created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CareCircleContactResponse"}}}},"400":{"description":"Invalid request data","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Client not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"422":{"description":"Validation error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/clients/{clientId}/care-circle/{contactId}":{"get":{"summary":"Get care circle contact","description":"Retrieves a specific care circle contact by ID.","operationId":"getCareCircleContact","tags":["care-circle"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"clientId","in":"path","description":"Client UUID","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"contactId","in":"path","description":"Care circle contact UUID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Care circle contact retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CareCircleContactResponse"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Client or contact not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}},"put":{"summary":"Update care circle contact","description":"Updates an existing care circle contact.","operationId":"updateCareCircleContact","tags":["care-circle"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"clientId","in":"path","description":"Client UUID","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"contactId","in":"path","description":"Care circle contact UUID","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCareCircleContactRequest"}}}},"responses":{"200":{"description":"Care circle contact updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CareCircleContactResponse"}}}},"400":{"description":"Invalid request data","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Client or contact not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"422":{"description":"Validation error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/clients/{clientId}/documents":{"get":{"summary":"List documents for client","description":"Returns a paginated list of documents for a client","operationId":"listDocuments","tags":["documents"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"labelIds","in":"query","description":"Filter by label IDs","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"}}},{"name":"documentType","in":"query","description":"Filter by document type","required":false,"schema":{"$ref":"#/components/schemas/DocumentType"}},{"name":"excludeDocumentTypes","in":"query","description":"Leave out documents of these types. A document with no type is never excluded. The page and its total are cut after the exclusion.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/DocumentType"}}},{"name":"search","in":"query","description":"Case-insensitive partial match on the document's name. Matches both `displayName` and `filename`, so a renamed document is found under either name.","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"Page number (0-indexed)","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","description":"Page size","required":false,"schema":{"type":"integer","format":"int32","default":20}},{"name":"sort","in":"query","description":"Sort specification as \"field,direction\" (e.g., \"uploadedAt,desc\"). Supported fields: uploadedAt, originalFilename, exposedAt, documentType. Any other field falls back to uploadedAt.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Documents retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Client not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}},"post":{"summary":"Upload document","description":"Uploads a document for a client. Accepts multipart form data with the file and optional metadata.","operationId":"uploadDocument","tags":["documents"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","required":["file"],"properties":{"file":{"type":"string","format":"binary","description":"The file to upload"},"displayName":{"type":"string","nullable":true,"maxLength":255,"description":"Human-readable name for the document, shown wherever a document name is\ndisplayed. Omit it (or send blank) to keep showing the uploaded filename —\na camera capture is called `image.jpg` on every phone, which is what this\nexists to replace.\n\nThe file extension is not part of this name: downloads keep their\nextension and `Content-Type` from the uploaded file, not from here.\n","example":"Legitimatiebewijs voorzijde"},"labelIds":{"type":"string","nullable":true,"description":"Comma-separated list of label UUIDs to assign to the document"},"documentType":{"$ref":"#/components/schemas/DocumentType"},"exposedToClient":{"type":"boolean","nullable":true,"description":"Whether to expose this document to the client portal. Defaults to false if not specified."},"notifyClient":{"type":"boolean","nullable":true,"description":"Mail the client that a new document is waiting in the portal. Opt-in:\nabsent or null means false. Only honoured when the document is actually\nexposed by this upload. The mail names the practice and never the document.\n"},"requiresAcknowledgment":{"type":"boolean","nullable":true,"description":"Whether this document requires the client's explicit acknowledgment in the\nportal. Defaults to false if not specified. Independent of `exposedToClient` —\na document can be flagged as requiring acknowledgment before being exposed.\n"}}}}}},"responses":{"201":{"description":"Document uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"400":{"description":"Bad request (invalid file, missing required fields)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Client not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/clients/{clientId}/form-submissions":{"get":{"summary":"List form submissions for a client","description":"Returns all form submissions for a specific client, with pagination.\nOnly submissions for forms in the user's organization are returned.\nSubmissions are ordered by submission time descending (most recent first).\n","operationId":"listClientFormSubmissions","tags":["form-submissions"],"parameters":[{"$ref":"#/components/parameters/ClientIdPath"},{"name":"page","in":"query","description":"Page number (0-indexed)","required":false,"schema":{"type":"integer","format":"int32","minimum":0,"default":0}},{"name":"size","in":"query","description":"Number of items per page","required":false,"schema":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20}},{"name":"includeAnswers","in":"query","required":false,"description":"When true, each submission carries its answers so the dossier can show the text immediately. Batch-loaded server-side.","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Form submissions retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientFormSubmissionListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"firebaseAuth":[]}]}},"/api/v1/clients/{clientId}/forms/{formId}/answers":{"get":{"summary":"Get all answers for a form","description":"Returns all answers submitted for a specific form by a client.\nIncludes the most recent submission if available.\n","operationId":"getFormAnswers","tags":["answers"],"parameters":[{"$ref":"#/components/parameters/ClientIdPath"},{"$ref":"#/components/parameters/FormIdPath"},{"name":"submissionId","in":"query","description":"Filter by specific submission ID (optional)","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Answers retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormAnswersResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"firebaseAuth":[]}]}},"/api/v1/clients/{clientId}/letters":{"get":{"summary":"List generated letters for a client","description":"Returns one page of the generated letters for a specific client, newest first.\nEach letter includes the template name, generation date, and the user who generated it.\n\nRequires `letters.generate` permission.\n","operationId":"listClientLetters","tags":["letters"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"clientId","in":"path","required":true,"description":"Client UUID","schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","description":"Page number (0-indexed)","required":false,"schema":{"type":"integer","format":"int32","minimum":0,"default":0}},{"name":"size","in":"query","description":"Number of letters per page","required":false,"schema":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"List of generated letters for the client","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeneratedLetterListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"Client not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/clients/{clientId}/state":{"get":{"summary":"Get current client state","description":"Returns the current state of a client. A client without one answers 204, so 404 keeps\nmeaning that the client itself was not found.\n","operationId":"getCurrentClientState","tags":["client-state-periods"],"security":[{"firebaseAuth":[]}],"parameters":[{"$ref":"#/components/parameters/ClientIdPath"}],"responses":{"200":{"description":"Current client state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientStatePeriodResponse"}}}},"204":{"description":"The client exists but has no current state yet"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/clients/{clientId}/state/history":{"get":{"summary":"Get client state history","description":"Returns the full state history of a client","operationId":"getClientStateHistory","tags":["client-state-periods"],"security":[{"firebaseAuth":[]}],"parameters":[{"$ref":"#/components/parameters/ClientIdPath"}],"responses":{"200":{"description":"Client state history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientStateHistoryResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}},"/api/v1/clients/{clientId}/zorgtrajecten":{"get":{"summary":"List zorgtrajecten for client","description":"List zorgtrajecten for a specific client with pagination and filtering.\nResults are ordered by startdatum descending (most recent first).\n","operationId":"listClientZorgtrajecten","tags":["zorgtrajecten"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"clientId","in":"path","description":"Client UUID","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","description":"Page number (0-indexed)","required":false,"schema":{"type":"integer","format":"int32","minimum":0,"default":0}},{"name":"size","in":"query","description":"Number of items per page","required":false,"schema":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20}},{"name":"status","in":"query","description":"Filter by status","required":false,"schema":{"$ref":"#/components/schemas/ZorgtrajectStatus"}},{"name":"includeAfgesloten","in":"query","description":"Include afgesloten (closed) zorgtrajecten","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"200":{"description":"Zorgtrajecten retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZorgtrajectListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Client not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/clients/{clientId}/zorgvraag":{"get":{"summary":"Get client care needs and offer","description":"Retrieves the care needs (zorgvraag) and care offer (zorgaanbod) for a client.","operationId":"getClientZorgvraag","tags":["client-zorgvraag"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"clientId","in":"path","description":"Client UUID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Zorgvraag data retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientZorgvraagResponse"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Client not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/documents/{documentId}/download":{"get":{"summary":"Download document file","description":"Downloads the actual file content of a document","operationId":"downloadDocument","tags":["documents"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Document file content","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Document not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/dsm5-diagnoses":{"get":{"summary":"Search DSM-5 diagnoses","description":"Search the official NZa DSM-5 diagnosis codelist.\nReturns diagnoses matching the search term in code or description.\nResults are ordered by code.\n","operationId":"searchDsm5Diagnoses","tags":["dsm5-diagnoses"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"search","in":"query","description":"Search term to match against code or description (case-insensitive, partial match)","required":false,"schema":{"type":"string","maxLength":100}},{"name":"limit","in":"query","description":"Maximum number of results to return","required":false,"schema":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"Diagnoses retrieved successfully","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dsm5DiagnosisDto"}}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/form-submissions":{"post":{"summary":"Create a new form submission","description":"Creates a new empty form submission for the specified form template.\nThe submission is created with no answers yet and no appointment link.\nThe form template must be ACTIVE and belong to the authenticated user's organization.\n\nThis endpoint is used when creating standalone form submissions, independent of\nappointments. Pass `clientId` to attach the submission to a client's dossier right\naway — the internal, behandelaar-filled dossier form. The submission can also be\nlinked to a client or appointment later via PATCH.\n\nA submission is always created as a draft. Through the public API it stays one: only a\nbehandelaar marks it reviewed, in Scrivio.\n","operationId":"createFormSubmission","tags":["form-submissions"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFormSubmissionRequest"},"examples":{"basic":{"summary":"Create submission for a form","value":{"formId":"550e8400-e29b-41d4-a716-446655440000"}},"forClient":{"summary":"Create an internal dossier submission for a client","value":{"formId":"550e8400-e29b-41d4-a716-446655440000","clientId":"3fa85f64-5717-4562-b3fc-2c963f66afa6"}}}}}},"responses":{"201":{"description":"Form submission created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionResponse"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"Form template or client not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"409":{"description":"Conflict - form is not in ACTIVE status","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"422":{"$ref":"#/components/responses/ValidationError"}},"security":[{"firebaseAuth":[]}]}},"/api/v1/form-submissions/{submissionId}":{"get":{"summary":"Get form submission detail","description":"Returns the full detail of a form submission including:\n- Submission metadata (id, createdAt, createdBy)\n- Form template (id, title, items/questions)\n- Answers (current values per question)\n- Linked client information (if any)\n- Linked appointment information (if any)\n","operationId":"getFormSubmissionDetail","tags":["form-submissions"],"parameters":[{"$ref":"#/components/parameters/FormSubmissionIdPath"}],"responses":{"200":{"description":"Form submission detail retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionDetailResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"firebaseAuth":[]}]}},"/api/v1/form-submissions/{submissionId}/answers":{"post":{"summary":"Save answers for a form submission","description":"Saves multiple answers in a single transaction. Creates new answer versions\nfor each answer. If an answer doesn't exist yet, creates it.\n\nThrough the public API only a draft can be filled in: the answers are a proposal a\nbehandelaar reviews in Scrivio, so a submission that has already been reviewed is\nrefused with a 409.\n","operationId":"saveFormSubmissionAnswers","tags":["form-submission-answers"],"parameters":[{"name":"submissionId","in":"path","required":true,"description":"Form submission UUID","schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveAnswersRequest"},"examples":{"saveMultipleAnswers":{"summary":"Save multiple answers","value":{"answers":[{"questionId":"550e8400-e29b-41d4-a716-446655440001","value":"John Doe"},{"questionId":"550e8400-e29b-41d4-a716-446655440002","value":true}]}}}}}},"responses":{"200":{"description":"Answers saved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormSubmissionDetailResponse"}}}},"400":{"description":"Bad request - validation failed (e.g., question not found)","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"description":"Called through the public API on a submission that is no longer a draft","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}},"security":[{"firebaseAuth":[]}]}},"/api/v1/forms":{"get":{"summary":"List all forms","description":"Returns all non-deleted forms for the authenticated user's organization.\n","operationId":"listForms","tags":["forms"],"responses":{"200":{"description":"Forms retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}},"security":[{"firebaseAuth":[]}]}},"/api/v1/forms/{formId}":{"get":{"summary":"Get a form","description":"Returns a form with all its items.","operationId":"getForm","tags":["forms"],"parameters":[{"$ref":"#/components/parameters/FormIdPath"}],"responses":{"200":{"description":"Form retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}},"security":[{"firebaseAuth":[]}]}},"/api/v1/reference-data/zorgvraagtypering-codes":{"get":{"summary":"List all zorgvraagtypering codes","description":"Returns all zorgvraagtypering codes (ZT01-ZT21) with their official NZa\ndescription and their hoofdgroep as published in Vektis codelijst\nCL0007-NZA. Used for dropdown population in forms.\n","operationId":"listZorgvraagtyperingCodes","tags":["reference-data"],"security":[{"firebaseAuth":[]}],"responses":{"200":{"description":"List of zorgvraagtypering codes","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZorgvraagtyperingCodeListResponse"}}}},"401":{"description":"Unauthorized - missing or invalid authentication token","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/zorgtrajecten":{"get":{"summary":"List all zorgtrajecten in organization","description":"List all zorgtrajecten in the authenticated user's organization with pagination,\nsearch, and filtering capabilities. Useful for admin/overview purposes.\n","operationId":"listOrganizationZorgtrajecten","tags":["zorgtrajecten"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"page","in":"query","description":"Page number (0-indexed)","required":false,"schema":{"type":"integer","format":"int32","minimum":0,"default":0}},{"name":"size","in":"query","description":"Number of items per page","required":false,"schema":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20}},{"name":"search","in":"query","description":"Search query (searches client name)","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"status","in":"query","description":"Filter by status","required":false,"schema":{"$ref":"#/components/schemas/ZorgtrajectStatus"}},{"name":"regiebehandelaarId","in":"query","description":"Filter by regiebehandelaar user ID","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"startdatumFrom","in":"query","description":"Filter by minimum startdatum","required":false,"schema":{"type":"string","format":"date"}},{"name":"startdatumTo","in":"query","description":"Filter by maximum startdatum","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"Zorgtrajecten retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZorgtrajectListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/zorgtrajecten/{zorgtrajectId}":{"get":{"summary":"Get zorgtraject by ID","description":"Retrieves a single zorgtraject by ID. User must be in same organization.","operationId":"getZorgtrajectById","tags":["zorgtrajecten"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"zorgtrajectId","in":"path","description":"Zorgtraject UUID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Zorgtraject retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZorgtrajectResponse"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden - zorgtraject not in same organization","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Zorgtraject not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/zorgtrajecten/{zorgtrajectId}/verwijsbrief":{"get":{"summary":"Get verwijsbrief for zorgtraject","description":"Returns the verwijsbrief document metadata for a zorgtraject","operationId":"getZorgtrajectVerwijsbrief","tags":["documents"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"zorgtrajectId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Verwijsbrief document metadata retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Zorgtraject or verwijsbrief not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}},"/api/v1/zorgtrajecten/{zorgtrajectId}/zorgvraagtypering":{"get":{"summary":"Get zorgvraagtypering history for zorgtraject","description":"Returns the current zorgvraagtypering and complete history for a zorgtraject.\nHistory is ordered by startdatum descending (most recent first).\nIncludes herijking count for summary display.\n","operationId":"getZorgvraagtyperingHistory","tags":["zorgvraagtypering"],"security":[{"firebaseAuth":[]}],"parameters":[{"name":"zorgtrajectId","in":"path","description":"Zorgtraject UUID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Zorgvraagtypering history retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZorgvraagtyperingHistoryResponse"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"403":{"description":"Forbidden - zorgtraject not in same organization","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"404":{"description":"Zorgtraject not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}}}}},"components":{"schemas":{"AnswerResponse":{"type":"object","description":"An answer to a question in a form submission","required":["id","submissionId","questionId","questionVersionId","value","createdAt"],"properties":{"id":{"type":"string","format":"uuid","description":"Answer UUID"},"submissionId":{"type":"string","format":"uuid","description":"Form submission UUID"},"questionId":{"type":"string","format":"uuid","description":"Question UUID"},"questionVersionId":{"type":"string","format":"uuid","description":"Question version UUID (version at time of answer)"},"questionText":{"type":"string","description":"Question text (denormalized for display)"},"questionType":{"$ref":"#/components/schemas/QuestionType"},"value":{"description":"The answer value. Type depends on question type:\n- TEXT_SHORT/TEXT_LONG: string\n- YES_NO: boolean\n- SINGLE_CHOICE: an option key, or `{key, text}` when the option picked\n  is marked `allowsFreeText` — the key it names plus the text typed into it\n- MULTI_CHOICE: array of option keys, at most one of which may be the\n  `{key, text}` object above\n- AGREEMENT: boolean\n- DATE: string (ISO 8601 date)\n- NUMBER: number\n- TEXT_LIST: array of non-blank strings, in order, at most the question's\n  `fieldCount` of them\n","oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"$ref":"#/components/schemas/TaggedChoiceValue"},{"type":"array","items":{"oneOf":[{"type":"string"},{"$ref":"#/components/schemas/TaggedChoiceValue"}]}}]},"options":{"type":"array","nullable":true,"description":"The options of the question version this answer was given on, for the\nchoice types. A SINGLE_CHOICE / MULTI_CHOICE `value` holds option keys,\nso this is what a consumer resolves them to labels against — the same\nlookup the letter placeholder, the PDF and the AI recap already do\nserver-side. Null for every other question type.\n","items":{"$ref":"#/components/schemas/QuestionOption"}},"fieldCount":{"type":"integer","format":"int32","nullable":true,"minimum":1,"maximum":10,"description":"How many fields the TEXT_LIST question version this answer was given on\nshowed, which is the most entries an edit of it may hold. Null for every\nother question type.\n"},"hasBeenEdited":{"type":"boolean","description":"Whether this answer has been edited after initial submission"},"editCount":{"type":"integer","format":"int32","description":"Number of times this answer has been edited","minimum":0},"lastEditedAt":{"type":"integer","format":"int64","nullable":true,"description":"Last edit timestamp (epoch milliseconds)"},"lastEditedBy":{"type":"string","nullable":true,"description":"Name of the user who last edited the answer"},"hasNewerVersion":{"type":"boolean","description":"Whether a newer version of the question exists than the one this answer was given on"},"currentQuestionText":{"type":"string","nullable":true,"description":"The current (latest) question text, only included when hasNewerVersion is true"},"createdAt":{"type":"integer","format":"int64","description":"Creation timestamp (epoch milliseconds)"}}},"BasisGgzProfiel":{"type":"string","enum":["KORT","MIDDEL","INTENSIEF","CHRONISCH"],"description":"Basis GGZ behandelprofiel"},"BehandelaarAnswerSubmission":{"type":"object","description":"A single answer submission from a behandelaar","required":["questionId","value"],"properties":{"questionId":{"type":"string","format":"uuid","description":"Question UUID to answer"},"value":{"description":"The answer value. Type depends on question type:\n- TEXT_SHORT/TEXT_LONG: string\n- YES_NO: boolean\n- SINGLE_CHOICE: an option key, or `{key, text}` when the option picked\n  is marked `allowsFreeText` — the key it names plus the text typed into it\n- MULTI_CHOICE: array of option keys, at most one of which may be the\n  `{key, text}` object above\n- AGREEMENT: boolean\n- DATE: string (ISO 8601 date)\n- NUMBER: number\n- TEXT_LIST: array of non-blank strings, in order, at most the question's\n  `fieldCount` of them\n"}}},"CareCircleContactResponse":{"type":"object","required":["id","clientId","role","name","heeftGezag","addressCountry","isActive","createdAt","updatedAt"],"properties":{"id":{"type":"string","format":"uuid","description":"Contact unique identifier","example":"990e8400-e29b-41d4-a716-446655440004"},"clientId":{"type":"string","format":"uuid","description":"Client this contact belongs to","example":"550e8400-e29b-41d4-a716-446655440000"},"role":{"$ref":"#/components/schemas/CareCircleRole"},"name":{"type":"string","maxLength":255,"description":"Contact name","example":"Dr. Jan de Vries"},"email":{"type":"string","format":"email","nullable":true,"description":"Contact email address","example":"j.devries@huisartsenpraktijk.nl"},"phone":{"type":"string","maxLength":20,"nullable":true,"description":"Contact phone number","example":"+31201234567"},"relation":{"type":"string","maxLength":100,"nullable":true,"description":"Relationship description (for personal contacts)","example":"Moeder"},"addressStreet":{"type":"string","maxLength":255,"nullable":true,"description":"Street name only; the house number is `addressHouseNumber`. A contact stored before the address was split may still hold street and number here, with no house number.","example":"Familiestraat"},"addressHouseNumber":{"type":"string","maxLength":10,"nullable":true,"description":"House number, without its toevoeging","example":"42"},"addressHouseNumberSuffix":{"type":"string","maxLength":20,"nullable":true,"description":"Huisletter and huisnummertoevoeging together","example":"A"},"addressPostalCode":{"type":"string","maxLength":10,"nullable":true,"description":"Contact postal code, held to the rule of `addressCountry`","example":"5678CD"},"addressCity":{"type":"string","maxLength":100,"nullable":true,"description":"Contact city","example":"Rotterdam"},"addressCountry":{"type":"string","pattern":"^[A-Z]{2}$","description":"Country of the address, ISO 3166-1 alpha-2. A contact entered without one lives in the Netherlands.","example":"NL"},"agbCode":{"type":"string","pattern":"^\\d{8}$","nullable":true,"description":"AGB code of the zorgverlener themselves (8 digits) — ZorgMail's `zvAgbCode`.\nKept distinct from `praktijkAgbCode`: a ZorgMail mailbox alias exists for the\nzorgverlener, the praktijk, or both, and matching the one we hold against the\nother's alias reports a reachable huisarts as unreachable.\n","example":"01012345"},"praktijkAgbCode":{"type":"string","pattern":"^\\d{8}$","nullable":true,"description":"AGB code of the praktijk this contact works at (8 digits) — ZorgMail's `prAgbCode`. See `agbCode`.","example":"01234567"},"praktijkName":{"type":"string","maxLength":255,"nullable":true,"description":"Practice/clinic name (for GP/specialists)","example":"Huisartsenpraktijk De Vries"},"praktijkStreet":{"type":"string","maxLength":500,"nullable":true,"description":"Practice street address","example":"Dokterslaan 1"},"praktijkPostalCode":{"type":"string","maxLength":10,"nullable":true,"description":"Practice postal code","example":"1234AB"},"praktijkCity":{"type":"string","maxLength":100,"nullable":true,"description":"Practice city","example":"Amsterdam"},"notes":{"type":"string","nullable":true,"description":"Additional notes about this contact","example":"Available on Tuesdays and Thursdays"},"soortRelatie":{"allOf":[{"$ref":"#/components/schemas/SoortRelatie"}],"nullable":true,"description":"The iJW soort relatie (`LDT_SoortRelatie`), when recorded."},"heeftGezag":{"type":"boolean","description":"Whether this person holds gezag over the cliënt. Recorded explicitly, never inferred\nfrom `role` or `soortRelatie` — parenthood does not imply gezag. Grants nothing on its own.\n","example":true},"volgorde":{"type":"integer","minimum":0,"maximum":99,"nullable":true,"description":"JW301 `Relatie/Volgorde` — the contact person's priority (1 = first contact, 2 = second).","example":1},"startdatum":{"type":"string","format":"date","nullable":true,"description":"First day of the relation; open when absent.","example":"2024-01-01"},"einddatum":{"type":"string","format":"date","nullable":true,"description":"Last day of the relation; open when absent. Must not be before `startdatum`.","example":"2026-12-31"},"isActive":{"type":"boolean","description":"Whether this contact is active","example":true},"createdAt":{"type":"integer","format":"int64","description":"Timestamp when contact was created (milliseconds since epoch)","example":1705334400000},"updatedAt":{"type":"integer","format":"int64","description":"Timestamp when contact was last updated (milliseconds since epoch)","example":1705420800000}}},"CareCircleRole":{"type":"string","enum":["HUISARTS","CONTACT_PERSOON","PARTNER","OUDER","VOOGD","KIND","WMO_CONSULENT","VERWIJZER","SPECIALIST","MANTELZORGER","ANDERS"],"description":"Type of care circle contact:\n- HUISARTS: General practitioner (GP)\n- CONTACT_PERSOON: Primary contact person\n- PARTNER: Partner/spouse\n- OUDER: Parent\n- VOOGD: Guardian (voogd). Holds gezag by law, but gezag is still recorded on the contact as `heeftGezag`\n- KIND: Child\n- WMO_CONSULENT: WMO consultant\n- VERWIJZER: Referrer\n- SPECIALIST: Medical specialist\n- MANTELZORGER: Informal caregiver\n- ANDERS: Other\n"},"CareIntensity":{"type":"string","enum":["A","B","C","D","E"],"description":"Care intensity level for residential stays (verblijfsdagen) in the ZPM.\nRequired for clients who will be billed for residential (VD) service codes:\n- A: Lichte verzorgingsgraad (VD0001)\n- B: Beperkte verzorgingsgraad (VD0009)\n- C: Matige verzorgingsgraad (VD0017)\n- D: Gemiddelde verzorgingsgraad (VD0025)\n- E: Intensieve verzorgingsgraad (VD0033)\n"},"ClientBehandelaarResponse":{"type":"object","required":["id","clientId","userId","userName","assignedAt"],"properties":{"id":{"type":"string","format":"uuid","description":"Assignment unique identifier","example":"880e8400-e29b-41d4-a716-446655440003"},"clientId":{"type":"string","format":"uuid","description":"Client UUID","example":"550e8400-e29b-41d4-a716-446655440000"},"userId":{"type":"string","format":"uuid","description":"User (behandelaar) UUID. A Scrivio user id, the one other public operations name a behandelaar by.","example":"770e8400-e29b-41d4-a716-446655440002"},"userName":{"type":"string","description":"Full name of behandelaar","example":"Dr. Sarah de Vries"},"assignedAt":{"type":"integer","format":"int64","description":"Timestamp when assignment was created (milliseconds since epoch)","example":1705334400000}}},"ClientFormSubmissionListResponse":{"type":"object","description":"Paginated list of form submissions for a client","required":["content","page","size","totalElements","totalPages"],"properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/ClientFormSubmissionResponse"}},"page":{"type":"integer","format":"int32","description":"Current page number (0-indexed)"},"size":{"type":"integer","format":"int32","description":"Number of items per page"},"totalElements":{"type":"integer","format":"int64","description":"Total number of submissions"},"totalPages":{"type":"integer","format":"int32","description":"Total number of pages"}}},"ClientFormSubmissionResponse":{"type":"object","description":"A form submission record for a client, including form details","required":["id","formId","formTitle","submissionType","submittedAt"],"properties":{"answers":{"type":"array","description":"Present only when requested with includeAnswers=true: the submission's answers, newest question order preserved.","items":{"$ref":"#/components/schemas/AnswerResponse"}},"id":{"type":"string","format":"uuid","description":"Submission UUID"},"formId":{"type":"string","format":"uuid","description":"Form UUID that was submitted"},"formTitle":{"type":"string","description":"Title of the form that was submitted"},"submissionType":{"$ref":"#/components/schemas/SubmissionType"},"submittedByUserId":{"type":"string","format":"uuid","nullable":true,"description":"User UUID who submitted (for BEHANDELAAR submissions). A Scrivio user id. Outside the app it can only be matched against the `userId` that getClientBehandelaars returns."},"submittedByClientId":{"type":"string","format":"uuid","nullable":true,"description":"Client UUID who submitted (for CLIENT submissions)"},"submittedAt":{"type":"integer","format":"int64","description":"Submission timestamp (epoch milliseconds)"},"appointmentId":{"type":"string","format":"uuid","nullable":true,"description":"Associated appointment UUID (if submitted during an appointment). An afspraak id. No appointment operation is part of the public API."},"appointmentTitle":{"type":"string","nullable":true,"description":"Name of the appointment type (if submitted during an appointment)"},"appointmentStartTime":{"type":"integer","format":"int64","nullable":true,"description":"Appointment start time in epoch milliseconds (if submitted during an appointment)"},"submitterName":{"type":"string","nullable":true,"description":"Display name of the submitter. For BEHANDELAAR submissions this is the user's full name, for CLIENT submissions this is \"Cliënt via portaal\""},"systemForm":{"allOf":[{"$ref":"#/components/schemas/SystemForm"}],"nullable":true,"description":"Set when the submission is of a form Scrivio provisions rather than one the organisation authored. A `DOSSIERNOTITIE` submission is an afspraak's dossiernotitie: filed on the afspraak for no client, one shared text for every participant, its one answer the note."}}},"ClientLanguage":{"type":"string","enum":["NL","EN"],"description":"The language a client reads — what is sent to them and the portal they sign in to. NL unless the practice chose otherwise. Defined identically in openapi-portal.yaml, which returns it on the portal's own profile."},"ClientListResponse":{"type":"object","required":["content","page","size","totalElements","totalPages","totalUnfilteredCount"],"properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/ClientProfile"},"description":"List of clients for current page"},"page":{"type":"integer","format":"int32","description":"Current page number (0-indexed)","example":0},"size":{"type":"integer","format":"int32","description":"Number of items per page","example":20},"totalElements":{"type":"integer","format":"int64","description":"Total number of clients matching criteria","example":42},"totalPages":{"type":"integer","format":"int32","description":"Total number of pages","example":3},"totalUnfilteredCount":{"type":"integer","format":"int64","description":"Total number of non-archived clients regardless of filters (used for 'All' count)","example":100},"statusCounts":{"type":"array","items":{"$ref":"#/components/schemas/ClientStatusCount"},"description":"Per-state counts of non-archived clients visible to the caller, regardless of the current status/location/search filters. Powers the status tabs and count summary. Clients without a current state are not represented."}}},"ClientProfile":{"type":"object","required":["id","organizationId","firstName","lastName","addressCountry","language","createdAt","updatedAt"],"properties":{"id":{"type":"string","format":"uuid","readOnly":true,"description":"Client unique identifier","example":"550e8400-e29b-41d4-a716-446655440000"},"organizationId":{"type":"string","format":"uuid","readOnly":true,"description":"Organization this client belongs to","example":"660e8400-e29b-41d4-a716-446655440001"},"firstName":{"type":"string","minLength":1,"maxLength":100,"description":"Client first name","example":"Jan"},"lastName":{"type":"string","minLength":1,"maxLength":100,"description":"Client last name","example":"Berg"},"prefix":{"type":"string","maxLength":20,"nullable":true,"description":"Name prefix (tussenvoegsel)","example":"van den"},"initials":{"type":"string","maxLength":20,"nullable":true,"description":"Client initials","example":"J.P."},"email":{"type":"string","format":"email","nullable":true,"description":"Client email address","example":"jan.vandenberg@example.nl"},"phone":{"type":"string","maxLength":20,"nullable":true,"description":"Client phone number","example":"+31612345678"},"addressStreet":{"type":"string","maxLength":200,"nullable":true,"description":"Street name only. The house number is `addressHouseNumber`; a caller that holds one composed line must split it before sending, because nothing here splits it for them.","example":"Hoofdstraat"},"addressHouseNumber":{"type":"string","maxLength":10,"nullable":true,"description":"House number, without its toevoeging","example":"123"},"addressHouseNumberSuffix":{"type":"string","maxLength":20,"nullable":true,"description":"Huisletter and huisnummertoevoeging together, as the zib carries them","example":"A"},"addressPostalCode":{"type":"string","maxLength":10,"nullable":true,"description":"Postal code","example":"1234AB"},"addressCity":{"type":"string","maxLength":100,"nullable":true,"description":"City","example":"Amsterdam"},"addressCountry":{"type":"string","pattern":"^[A-Z]{2}$","description":"Country of the address, ISO 3166-1 alpha-2. A cliënt entered without one lives in the Netherlands (`NL`). It decides the rule `addressPostalCode` is held to.","example":"NL"},"dateOfBirth":{"type":"string","format":"date","nullable":true,"description":"Date of birth (YYYY-MM-DD)","example":"1985-03-15"},"bsn":{"type":"string","pattern":"^\\d{9}$","nullable":true,"description":"Burgerservicenummer (Dutch citizen service number, 9 digits).\n\nA value written today also passes the elfproef (11-check), which OpenAPI cannot\nexpress. A value stored before that rule was introduced may not.\n","example":"123456782"},"gender":{"allOf":[{"$ref":"#/components/schemas/Gender"}],"nullable":true},"locationId":{"type":"string","format":"uuid","nullable":true,"description":"Location ID where this client receives services. No operation of the public API lists locations yet.","example":"880e8400-e29b-41d4-a716-446655440003"},"patientNumber":{"type":"string","maxLength":36,"nullable":true,"readOnly":true,"description":"Per-organization patient number. Auto-generated (P-{seq}) on native create, or preserved verbatim when supplied on import. Unique per organization and immutable after creation.","example":"P-000123"},"externalReference":{"type":"string","maxLength":64,"nullable":true,"readOnly":true,"description":"The client's number in the source system this client was imported from (for a ZPM import, the export's client_id / ZorgAdmin id). Set by the import and searchable, so an organization can find a client by the number they use themselves. Not unique - source systems can collide.","example":"12345"},"locationName":{"type":"string","maxLength":100,"nullable":true,"readOnly":true,"description":"Name of the location (computed from location record)","example":"Hoofdkantoor Amsterdam"},"activeZorgtrajectName":{"type":"string","maxLength":200,"nullable":true,"readOnly":true,"description":"Name of the currently active zorgtraject for this client: the behandelsetting of its\ncurrent setting period. Null when the client has no active zorgtraject, when that\nzorgtraject has no setting period, and always when `activeZorgtrajectFinancingRegime`\nis set and is not `ZVW` — such a zorgtraject has no behandelsetting and is named by\nits regime instead.\n\nComputed for display in the Scrivio app.\n","example":"Ambulante begeleiding 2024"},"activeZorgtrajectFinancingRegime":{"allOf":[{"$ref":"#/components/schemas/FinancingRegime"}],"nullable":true,"readOnly":true,"description":"Financing regime of the currently active zorgtraject. Null when the client has no\nactive zorgtraject, or when its regime was never recorded — which is named like `ZVW`.\n"},"nextAppointmentDate":{"type":"string","format":"date-time","nullable":true,"readOnly":true,"description":"Date and time of the next scheduled appointment (ISO 8601). Computed for display in the Scrivio app.","example":"2024-01-20T14:30:00Z"},"status":{"type":"string","maxLength":50,"nullable":true,"readOnly":true,"description":"Current client state name, computed from ClientStatePeriod history. Use the client-states API to manage state changes.","example":"In behandeling"},"currentStateSince":{"type":"string","format":"date","nullable":true,"readOnly":true,"description":"Since when the client has been in its status (\"In status sinds\"): the startdatum of the latest state period on or before today. A period scheduled in the future does not count. Null when the client has no such period.","example":"2024-01-15"},"avatarUrl":{"type":"string","format":"uri","nullable":true,"description":"URL to client avatar image. A path in the Scrivio app; the avatar operation is not part of the public API.","example":"https://storage.googleapis.com/scrivio-avatars/client-123.jpg"},"intakeDate":{"type":"string","format":"date","nullable":true,"description":"Date of intake (YYYY-MM-DD)","example":"2024-01-15"},"dischargeDate":{"type":"string","format":"date","nullable":true,"description":"Date of discharge (YYYY-MM-DD)","example":"2024-12-31"},"createdAt":{"type":"integer","format":"int64","readOnly":true,"description":"Timestamp when client was created (milliseconds since epoch)","example":1705334400000},"updatedAt":{"type":"integer","format":"int64","readOnly":true,"description":"Timestamp when client was last updated (milliseconds since epoch)","example":1705420800000},"archivedAt":{"type":"integer","format":"int64","readOnly":true,"nullable":true,"description":"Timestamp when client was archived (milliseconds since epoch, null if not archived)","example":null},"portalInvitedAt":{"type":"integer","format":"int64","readOnly":true,"nullable":true,"description":"When the cliënt was last sent a cliëntportaal invitation (milliseconds since epoch, null\nif never). A resend overwrites it.\n","example":null},"idDocumentType":{"allOf":[{"$ref":"#/components/schemas/IdDocumentType"}],"nullable":true},"idDocumentNumber":{"type":"string","maxLength":50,"nullable":true,"description":"Number of the identity document used to establish the client's identity (Wabvpz). Registered but never accompanied by a stored scan.","example":"NL1234567"},"idVerifiedAt":{"type":"integer","format":"int64","readOnly":true,"nullable":true,"description":"Timestamp when the client's identity was verified (milliseconds since epoch, null if never verified)","example":1705334400000},"idVerifiedBy":{"type":"string","format":"uuid","readOnly":true,"nullable":true,"description":"User who verified the client's identity (null if never verified). A Scrivio user id. Outside the app it can only be matched against the `userId` that getClientBehandelaars returns.","example":"550e8400-e29b-41d4-a716-446655440000"},"warningLevel":{"allOf":[{"$ref":"#/components/schemas/ClientWarningLevel"}],"nullable":true,"description":"Level of the client's one standing warning, null exactly when there is none.\nAlways null together with `warningText`: the two are one fact, and a database\nCHECK refuses any other pairing.\n"},"warningText":{"type":"string","maxLength":2000,"nullable":true,"description":"The client's one standing warning — free text a practitioner typed about this\nclient, surfaced wherever the client is opened (their profile, and every\nappointment they take part in). Null exactly when there is no warning.\n"},"gezagsdragerBekend":{"type":"boolean","readOnly":true,"description":"Derived, never stored: true when any of the client's active care-circle contacts holds\ngezag (`heeftGezag`) today — inside its `startdatum`/`einddatum` period, open ends\nunbounded. JW315's optional `GezagsdragerBekend`. Grants nothing on its own.\n","example":true},"language":{"$ref":"#/components/schemas/ClientLanguage"},"privacyverklaringOndertekendOp":{"type":"string","format":"date","nullable":true,"description":"The date the client signed a privacyverklaring (YYYY-MM-DD): client and practitioner agree that nothing traceable to a diagnosis appears on the declaration to the insurer or on the nota. Null when no privacyverklaring is on file.","example":"2026-11-09"},"ownTariffPercentageOfNza":{"type":"number","format":"double","nullable":true,"description":"Eigen tarief agreed with this client, as a percentage of the NZa maximum, for a consult no contract prices. Overrides the organisation's own eigen tarief on every cliëntnota to this client. Null when none was agreed, which is the organisation's eigen tarief (or the full NZa maximum) and is not the same as 0.","example":70}}},"ClientStateHistoryResponse":{"type":"object","required":["clientId","history","wijzigingCount"],"properties":{"clientId":{"type":"string","format":"uuid","description":"Client ID"},"current":{"$ref":"#/components/schemas/ClientStatePeriodResponse","nullable":true,"description":"Current (active) state period"},"history":{"type":"array","items":{"$ref":"#/components/schemas/ClientStatePeriodResponse"},"description":"All state periods ordered by startdatum descending"},"wijzigingCount":{"type":"integer","format":"int32","description":"Number of state changes (excluding initial state). Computed for display in the Scrivio app."}}},"ClientStateListResponse":{"type":"object","required":["content","page","size","totalElements","totalPages"],"properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/ClientStateResponse"}},"page":{"type":"integer","format":"int32","description":"Current page number (0-indexed)"},"size":{"type":"integer","format":"int32","description":"Number of items per page"},"totalElements":{"type":"integer","format":"int64","description":"Total number of items"},"totalPages":{"type":"integer","format":"int32","description":"Total number of pages"}}},"ClientStatePeriodResponse":{"type":"object","required":["id","clientId","clientStateId","startdatum","isActive","createdAt","updatedAt"],"properties":{"id":{"type":"string","format":"uuid","readOnly":true,"description":"Period unique identifier"},"clientId":{"type":"string","format":"uuid","description":"Client this period belongs to"},"clientStateId":{"type":"string","format":"uuid","description":"Reference to the client state"},"stateName":{"type":"string","nullable":true,"description":"Name of the state (resolved from clientStateId)","example":"Actief"},"stateColor":{"type":"string","nullable":true,"description":"Color of the state","example":"#10B981"},"startdatum":{"type":"string","format":"date","description":"Effective start date of this period","example":"2024-01-15"},"einddatum":{"type":"string","format":"date","nullable":true,"description":"Derived end date (null means current/active period)","example":null},"reden":{"type":"string","nullable":true,"description":"Optional reason for the state change","example":"Intake afgerond, behandeling gestart"},"isActive":{"type":"boolean","description":"True when this is the current (open-ended) period"},"createdAt":{"type":"integer","format":"int64","readOnly":true,"description":"Timestamp when created (milliseconds since epoch)"},"updatedAt":{"type":"integer","format":"int64","readOnly":true,"description":"Timestamp when last updated (milliseconds since epoch)"}}},"ClientStateResponse":{"type":"object","required":["id","organizationId","name","displayOrder","isActive","isDefault","createdAt","updatedAt"],"properties":{"id":{"type":"string","format":"uuid","readOnly":true,"description":"Client state unique identifier"},"organizationId":{"type":"string","format":"uuid","readOnly":true,"description":"Organization this state belongs to"},"name":{"type":"string","minLength":1,"maxLength":100,"description":"State name (e.g., \"Lead\", \"Intake\", \"Actief\")","example":"Actief"},"color":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","nullable":true,"description":"Hex color code for visual identification","example":"#10B981"},"displayOrder":{"type":"integer","format":"int32","description":"Order in which states appear in lists","example":2},"isActive":{"type":"boolean","description":"Whether this state can be assigned to clients","example":true},"isDefault":{"type":"boolean","description":"If true, this state is assigned to new clients","example":false},"categoryId":{"type":"string","format":"uuid","nullable":true,"description":"The category this state is grouped under, or null for none"},"createdAt":{"type":"integer","format":"int64","readOnly":true,"description":"Timestamp when created (milliseconds since epoch)"},"updatedAt":{"type":"integer","format":"int64","readOnly":true,"description":"Timestamp when last updated (milliseconds since epoch)"}}},"ClientStatusCount":{"type":"object","required":["clientStateId","count"],"properties":{"clientStateId":{"type":"string","format":"uuid","description":"The client state (status) these clients are currently in"},"count":{"type":"integer","format":"int64","description":"Number of non-archived clients currently in this state","example":12}}},"ClientWarningLevel":{"type":"string","enum":["INFO","WARNING","CRITICAL"],"description":"How loudly a client's standing warning is drawn. INFO is something to know, WARNING something to watch, CRITICAL something that changes what you do before you open the door. Defined identically in openapi-appointments.yaml, which needs it on AppointmentParticipant."},"ClientZorgvraagResponse":{"type":"object","required":["clientId","createdAt","updatedAt"],"properties":{"clientId":{"type":"string","format":"uuid","description":"Client UUID","example":"550e8400-e29b-41d4-a716-446655440000"},"aanmeldklacht":{"type":"string","nullable":true,"description":"Initial complaint or reason for referral","example":"Cliënt ervaart stress op het werk en thuis"},"hulpvraag":{"type":"string","nullable":true,"description":"Client's help request","example":"Wil leren omgaan met stress en betere werk-privé balans"},"doelen":{"type":"array","items":{"type":"string"},"description":"Goals and objectives","example":["Stressniveau verlagen","Grenzen leren stellen op werk","Meer quality time met gezin"]},"hulpaanbod":{"type":"string","nullable":true,"description":"Type of help/support being offered","example":"Individuele begeleiding, 1x per week"},"createdAt":{"type":"integer","format":"int64","description":"Timestamp when record was created (milliseconds since epoch)","example":1705334400000},"updatedAt":{"type":"integer","format":"int64","description":"Timestamp when record was last updated (milliseconds since epoch)","example":1705420800000}}},"CreateCareCircleContactRequest":{"type":"object","required":["role","name"],"properties":{"role":{"$ref":"#/components/schemas/CareCircleRole"},"name":{"type":"string","minLength":1,"maxLength":255,"description":"Contact name","example":"Dr. Jan de Vries"},"email":{"type":"string","format":"email","nullable":true,"description":"Contact email address","example":"j.devries@huisartsenpraktijk.nl"},"phone":{"type":"string","maxLength":20,"nullable":true,"description":"Contact phone number","example":"+31201234567"},"relation":{"type":"string","maxLength":100,"nullable":true,"description":"Relationship description (for personal contacts)","example":"Moeder"},"addressStreet":{"type":"string","maxLength":255,"nullable":true,"description":"Street name only; the house number is `addressHouseNumber`. A contact stored before the address was split may still hold street and number here, with no house number.","example":"Familiestraat"},"addressHouseNumber":{"type":"string","maxLength":10,"nullable":true,"description":"House number, without its toevoeging","example":"42"},"addressHouseNumberSuffix":{"type":"string","maxLength":20,"nullable":true,"description":"Huisletter and huisnummertoevoeging together","example":"A"},"addressPostalCode":{"type":"string","maxLength":10,"nullable":true,"description":"Contact postal code, held to the rule of `addressCountry`","example":"5678CD"},"addressCity":{"type":"string","maxLength":100,"nullable":true,"description":"Contact city","example":"Rotterdam"},"addressCountry":{"type":"string","pattern":"^[A-Z]{2}$","nullable":true,"description":"Country of the address, ISO 3166-1 alpha-2. Absent or null on create means the Netherlands (`NL`).","example":"NL"},"agbCode":{"type":"string","pattern":"^\\d{8}$","nullable":true,"description":"AGB code of the zorgverlener themselves (8 digits) — ZorgMail's `zvAgbCode`.\nKept distinct from `praktijkAgbCode`: a ZorgMail mailbox alias exists for the\nzorgverlener, the praktijk, or both, and matching the one we hold against the\nother's alias reports a reachable huisarts as unreachable.\n","example":"01012345"},"praktijkAgbCode":{"type":"string","pattern":"^\\d{8}$","nullable":true,"description":"AGB code of the praktijk this contact works at (8 digits) — ZorgMail's `prAgbCode`. See `agbCode`.","example":"01234567"},"praktijkName":{"type":"string","maxLength":255,"nullable":true,"description":"Practice/clinic name (for GP/specialists)","example":"Huisartsenpraktijk De Vries"},"praktijkStreet":{"type":"string","maxLength":500,"nullable":true,"description":"Practice street address","example":"Dokterslaan 1"},"praktijkPostalCode":{"type":"string","maxLength":10,"nullable":true,"description":"Practice postal code","example":"1234AB"},"praktijkCity":{"type":"string","maxLength":100,"nullable":true,"description":"Practice city","example":"Amsterdam"},"notes":{"type":"string","nullable":true,"description":"Additional notes about this contact","example":"Available on Tuesdays and Thursdays"},"soortRelatie":{"allOf":[{"$ref":"#/components/schemas/SoortRelatie"}],"nullable":true,"description":"The iJW soort relatie (`LDT_SoortRelatie`), when recorded."},"heeftGezag":{"type":"boolean","description":"Whether this person holds gezag over the cliënt. Recorded explicitly, never inferred\nfrom `role` or `soortRelatie` — parenthood does not imply gezag. Grants nothing on its own.\nOmitted on create means false.\n","example":true},"volgorde":{"type":"integer","minimum":0,"maximum":99,"nullable":true,"description":"JW301 `Relatie/Volgorde` — the contact person's priority (1 = first contact, 2 = second).","example":1},"startdatum":{"type":"string","format":"date","nullable":true,"description":"First day of the relation; open when absent.","example":"2024-01-01"},"einddatum":{"type":"string","format":"date","nullable":true,"description":"Last day of the relation; open when absent. Must not be before `startdatum`.","example":"2026-12-31"}}},"CreateClientRequest":{"type":"object","required":["firstName","lastName"],"properties":{"firstName":{"type":"string","minLength":1,"maxLength":100,"description":"Client first name","example":"Jan"},"lastName":{"type":"string","minLength":1,"maxLength":100,"description":"Client last name","example":"Berg"},"prefix":{"type":"string","maxLength":20,"nullable":true,"description":"Name prefix (tussenvoegsel)","example":"van den"},"initials":{"type":"string","maxLength":20,"nullable":true,"description":"Client initials","example":"J.P."},"email":{"type":"string","format":"email","nullable":true,"description":"Client email address","example":"jan.vandenberg@example.nl"},"phone":{"type":"string","maxLength":20,"nullable":true,"description":"Client phone number. A Dutch number (`0612345678`, `+31 6 12345678`) or a foreign one in international form (`+32 470 12 34 56`), stored without spaces or dashes. A number without a country prefix is read as Dutch. A malformed value supplied here is a `400` naming this field; a stored value the request leaves alone is not judged.","example":"+31612345678"},"addressStreet":{"type":"string","maxLength":200,"nullable":true,"description":"Street name only. The house number is `addressHouseNumber`; a caller that holds one composed line must split it before sending, because nothing here splits it for them.","example":"Hoofdstraat"},"addressHouseNumber":{"type":"string","maxLength":10,"nullable":true,"description":"House number, without its toevoeging","example":"123"},"addressHouseNumberSuffix":{"type":"string","maxLength":20,"nullable":true,"description":"Huisletter and huisnummertoevoeging together, as the zib carries them","example":"A"},"addressPostalCode":{"type":"string","maxLength":10,"nullable":true,"description":"Postal code. For an address in the Netherlands, four digits and two letters, stored as `1234AB` whatever spacing or case it was sent in; for any other country, stored upper-cased and held only to the length. A malformed value supplied here is a `400` naming this field; a stored value the request leaves alone is not judged.","example":"1234AB"},"addressCity":{"type":"string","maxLength":100,"nullable":true,"description":"City","example":"Amsterdam"},"addressCountry":{"type":"string","pattern":"^[A-Za-z]{2}$","description":"Country of the address, ISO 3166-1 alpha-2. Omitted, the cliënt lives in the Netherlands (`NL`). It decides the rule `addressPostalCode` is held to.","example":"BE"},"dateOfBirth":{"type":"string","format":"date","nullable":true,"description":"Date of birth (YYYY-MM-DD)","example":"1985-03-15"},"bsn":{"type":"string","pattern":"^\\d{9}$","nullable":true,"description":"Burgerservicenummer (9 digits).\n\nIt must also pass the elfproef (11-check), which OpenAPI cannot express: the\nweighted digit sum 9·d1 + 8·d2 + … + 2·d8 − d9 is positive and divisible by 11.\nA value that does not is refused with `400` and an `errors` entry naming `bsn`.\n","example":"123456782"},"gender":{"allOf":[{"$ref":"#/components/schemas/Gender"}],"nullable":true},"locationId":{"type":"string","format":"uuid","nullable":true,"description":"Location ID where this client receives services. No operation of the public API lists locations yet.","example":"880e8400-e29b-41d4-a716-446655440003"},"patientNumber":{"type":"string","minLength":1,"maxLength":36,"nullable":true,"description":"Optional patient number carried over from an external system (e.g. Zorgadmin). Preserved verbatim and must be unique within the organization; a duplicate is rejected with 409. When omitted, Scrivio auto-generates one (P-{seq}).","example":"P-000123"},"intakeDate":{"type":"string","format":"date","nullable":true,"description":"Date of intake (YYYY-MM-DD)","example":"2024-01-15"},"idDocumentType":{"allOf":[{"$ref":"#/components/schemas/IdDocumentType"}],"nullable":true},"idDocumentNumber":{"type":"string","maxLength":50,"nullable":true,"description":"Identity document number (Wabvpz). When both idDocumentType and idDocumentNumber are provided, the client's identity is marked as verified (idVerifiedAt/idVerifiedBy are stamped). No scan is stored.","example":"NL1234567"},"warningLevel":{"allOf":[{"$ref":"#/components/schemas/ClientWarningLevel"}],"nullable":true,"description":"Level of the client's one standing warning. Ignored when `warningText` is blank\nor omitted — a warning *is* its text, so a level with nothing under it stores\nnothing. A text sent without a level is stored as WARNING; OpenAPI 3.0 cannot\nexpress either rule, which is why they are stated here.\n"},"warningText":{"type":"string","maxLength":2000,"nullable":true,"description":"The client's one standing warning. Blank or omitted means the client has none.\n"},"language":{"allOf":[{"$ref":"#/components/schemas/ClientLanguage"}],"description":"The language the client reads. Omitted means NL."},"privacyverklaringOndertekendOp":{"type":"string","format":"date","nullable":true,"description":"The date the client signed a privacyverklaring (YYYY-MM-DD): client and practitioner agree that nothing traceable to a diagnosis appears on the declaration to the insurer or on the nota. Null or omitted when no privacyverklaring is on file. May not lie after today; a later date is refused with 400.","example":"2026-11-09"}}},"CreateFormSubmissionRequest":{"type":"object","description":"Request to create a new standalone form submission","required":["formId"],"properties":{"formId":{"type":"string","format":"uuid","description":"UUID of the form template to create a submission for"},"clientId":{"type":"string","format":"uuid","description":"Optional UUID of the client this submission belongs to. Set for an internal,\nbehandelaar-filled dossier form: the submission is attached to the client's\ndossier with no appointment, and is never exposed to the client portal\n(the portal reads form assignments, not submissions).\nThe client must belong to the same organization.\n"}}},"DiagnoseStatus":{"type":"string","enum":["DIFFERENTIAAL","DEFINITIEF"],"description":"Status of a DSM-5 diagnose:\n- DIFFERENTIAAL: Differential diagnosis (working hypothesis)\n- DEFINITIEF: Definitive diagnosis (confirmed)\n"},"DocumentLabelResponse":{"type":"object","required":["id","organizationId","name","color","createdAt"],"properties":{"id":{"type":"string","format":"uuid","readOnly":true,"description":"Unique label identifier"},"organizationId":{"type":"string","format":"uuid","readOnly":true,"description":"Organization this label belongs to"},"name":{"type":"string","description":"Label name","example":"Verwijsbrief"},"color":{"type":"string","description":"Hex color code","example":"#FF6B35"},"createdAt":{"type":"integer","format":"int64","readOnly":true,"description":"Creation timestamp (epoch milliseconds)","example":1705334400000}}},"DocumentListResponse":{"type":"object","required":["content","page","size","totalElements","totalPages"],"properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/DocumentResponse"},"description":"List of documents for current page"},"page":{"type":"integer","format":"int32","description":"Current page number (0-indexed)","example":0},"size":{"type":"integer","format":"int32","description":"Number of items per page","example":20},"totalElements":{"type":"integer","format":"int64","description":"Total number of documents matching criteria","example":15},"totalPages":{"type":"integer","format":"int32","description":"Total number of pages","example":1}}},"DocumentResponse":{"type":"object","required":["id","organizationId","clientId","filename","contentType","size","uploadedAt","uploadedById","uploadedByName"],"properties":{"id":{"type":"string","format":"uuid","readOnly":true,"description":"Unique document identifier"},"organizationId":{"type":"string","format":"uuid","readOnly":true,"description":"Organization this document belongs to"},"clientId":{"type":"string","format":"uuid","description":"Client this document belongs to"},"zorgtrajectId":{"type":"string","format":"uuid","nullable":true,"description":"Zorgtraject this document is linked to (for verwijsbrief documents)"},"zorgtrajectDescription":{"type":"string","nullable":true,"readOnly":true,"description":"Human-readable description of the linked zorgtraject (e.g., \"Sectie 2 Mono (gestart 15-01-2026)\"). Computed for display in the Scrivio app. Read the zorgtraject itself with getZorgtrajectById."},"displayName":{"type":"string","nullable":true,"readOnly":true,"description":"Human-readable name given to the document, or null when it has none of its own.\nAnything showing a document name shows `displayName` when set and `filename`\notherwise. Carries no file extension.\n","example":"Legitimatiebewijs voorzijde"},"filename":{"type":"string","description":"Original filename, as uploaded. Also the name a download is served with.","example":"verwijsbrief.pdf"},"contentType":{"type":"string","description":"MIME type of the file","example":"application/pdf"},"size":{"type":"integer","format":"int64","description":"File size in bytes","example":204800},"labels":{"type":"array","items":{"$ref":"#/components/schemas/DocumentLabelResponse"},"description":"Labels assigned to this document"},"documentType":{"$ref":"#/components/schemas/DocumentType"},"uploadedAt":{"type":"integer","format":"int64","readOnly":true,"description":"Upload timestamp (epoch milliseconds)","example":1705334400000},"uploadedById":{"type":"string","format":"uuid","readOnly":true,"description":"ID of the user who uploaded the document. A Scrivio user id. Outside the app it can only be matched against the `userId` that getClientBehandelaars returns."},"uploadedByName":{"type":"string","readOnly":true,"description":"Display name of the user who uploaded the document","example":"Jan de Vries"},"exposedToClient":{"type":"boolean","readOnly":true,"description":"Whether this document is currently exposed to the client via the portal","example":false},"exposedAt":{"type":"integer","format":"int64","readOnly":true,"nullable":true,"description":"Timestamp when the document was exposed (epoch milliseconds), null if not exposed","example":1705334400000},"exposedById":{"type":"string","format":"uuid","readOnly":true,"nullable":true,"description":"ID of the user who exposed the document, null if not exposed or auto-exposed. A Scrivio user id. Outside the app it can only be matched against the `userId` that getClientBehandelaars returns."},"exposedByName":{"type":"string","readOnly":true,"nullable":true,"description":"Display name of the user who exposed the document, null if not exposed or auto-exposed","example":"Jan de Vries"},"exposedAutomatically":{"type":"boolean","readOnly":true,"description":"Whether the document was automatically exposed (e.g., via intake form)","example":false},"clientNotified":{"type":"boolean","readOnly":true,"description":"Present only on the response to an upload or exposure that asked to notify the client\n(`notifyClient: true`). True when the mail was handed to delivery after the\nchange committed; false when it was skipped — the dossier has no e-mailadres, or the\nrequest exposed nothing new. The change itself succeeded either way.\n"},"requiresAcknowledgment":{"type":"boolean","readOnly":true,"description":"Whether this document requires the client's explicit acknowledgment in the\nportal. Independent of `exposedToClient` — a behandelaar can flag a document\nas requiring acknowledgment before it is exposed.\n","example":false},"acknowledgedAt":{"type":"integer","format":"int64","readOnly":true,"nullable":true,"description":"Timestamp when the client acknowledged the document (epoch milliseconds),\nnull if not yet acknowledged or not requiring acknowledgment.\n","example":1705334400000},"portalAudience":{"$ref":"#/components/schemas/PortalItemAudience"},"portalCompletionRule":{"$ref":"#/components/schemas/PortalCompletionRule"},"portalAudienceHouseholdId":{"type":"string","format":"uuid","nullable":true,"description":"The household a HOUSEHOLD item is for; null for any other audience"},"fromOrganizationDefault":{"type":"boolean","readOnly":true,"description":"Whether this row came from an organisation default — a document the practice gives\nevery cliënt — rather than being uploaded for this cliënt. The default itself is not\nidentified.\n","example":false},"lineageId":{"type":"string","format":"uuid","readOnly":true,"description":"The chain this document belongs to — its own id when it is the first version.\nDocuments sharing a `lineageId` are versions of one document and are shown as\nversions rather than as loose files. Almost every document stands alone,\nin which case this is its own id and `version` is 1.\n"},"version":{"type":"integer","format":"int32","readOnly":true,"description":"Position in the lineage, 1-based. A later version supersedes the one before it;\nneither is deleted, because a regenerated document never overwrites the bytes\nsomebody already received.\n","example":1},"versionReason":{"type":"string","nullable":true,"readOnly":true,"description":"Why this version was produced, as the behandelaar stated it. Null for a first\nversion, which needs no reason — it exists because the document was created.\n","example":"Adres van de cliënt gecorrigeerd"}}},"DocumentType":{"type":"string","enum":["PASSPORT_OR_ID","REFERRAL_LETTER","GENERATED_LETTER","INVOICE","ZORGMAIL_EMAIL","SENT_MESSAGE"],"description":"Type of document. `GENERATED_LETTER` and `INVOICE` are produced by Scrivio itself — an invoice's PDF is rendered once when the invoice is issued and filed in the client's dossier — so neither is normally set on an upload. `ZORGMAIL_EMAIL` is a ZorgMail message filed into the dossier and `SENT_MESSAGE` the record of a message sent from it; both are correspondence and are never exposed in the client portal (exposing one is refused with 422, and its `expose` capability is false)."},"DossierFieldTarget":{"type":"string","enum":["NAME","DATE_OF_BIRTH","GENDER","BSN","EMAIL","PHONE","ADDRESS","LANGUAGE","HUISARTS","ZORGVERZEKERING","AANMELDKLACHT","HULPVRAAG","CONTACT_PERSON","DOELEN"],"description":"The dossier field a Scrivio-owned question is linked to."},"DossierValue":{"type":"object","description":"What the cliënt's dossier holds for a linked question, shown read-only in its place.","required":["questionId","value"],"properties":{"questionId":{"type":"string","format":"uuid"},"value":{"description":"The value in the shape an answer to the question takes; a block as one object"}}},"Dsm5DiagnosisDto":{"type":"object","description":"DSM-5 diagnosis from the official NZa codelist","required":["id","code","description","selectable"],"properties":{"id":{"type":"string","format":"uuid","readOnly":true,"description":"Unique identifier","example":"550e8400-e29b-41d4-a716-446655440000"},"code":{"type":"string","maxLength":20,"description":"DSM-5 diagnosis code (e.g., \"D5_1.01.01\")","example":"D5_1.01.01"},"description":{"type":"string","description":"Full description of the diagnosis","example":"Verstandelijke beperking: licht"},"icd10Code":{"type":"string","maxLength":10,"nullable":true,"description":"ICD-10 code for GDS801 billing compatibility","example":"F70.9"},"icd9cmCode":{"type":"string","maxLength":10,"nullable":true,"description":"Numeric DSM / ICD-9-CM code (e.g. \"309.24\") — the code clinicians\nrecognise. Searchable alongside the D5_ code and description.\n","example":"317"},"parentCode":{"type":"string","maxLength":20,"nullable":true,"description":"DSM-5 code of the parent group in the hierarchy (null for top-level\nchapters). Used to build a collapsible tree.\n","example":"D5_1.01"},"niveau":{"type":"integer","format":"int32","nullable":true,"description":"Hierarchy level (1 = chapter, deeper = more specific).","example":3},"selectable":{"type":"boolean","description":"Whether this row is a selectable leaf diagnosis. Non-selectable rows\nare group/parent nodes that exist only to build the tree.\n","example":true}}},"Dsm5DiagnosisSummary":{"type":"object","description":"Summary of a DSM-5 diagnosis for inclusion in zorgtraject responses","required":["id","code","description","isPrimair"],"properties":{"id":{"type":"string","format":"uuid","readOnly":true,"description":"Unique identifier","example":"550e8400-e29b-41d4-a716-446655440000"},"code":{"type":"string","maxLength":20,"description":"DSM-5 diagnosis code (e.g., \"D5_1.01.01\")","example":"D5_1.01.01"},"description":{"type":"string","description":"Full description of the diagnosis","example":"Verstandelijke beperking: licht"},"icd10Code":{"type":"string","maxLength":10,"nullable":true,"description":"ICD-10 code for GDS801 billing compatibility","example":"F70.9"},"isPrimair":{"type":"boolean","readOnly":true,"description":"Whether this is the zorgtraject's primary diagnosis. At most one entry per\nzorgtraject is primary; none is when it has not been determined.\n","example":true},"status":{"allOf":[{"$ref":"#/components/schemas/DiagnoseStatus"}],"nullable":true,"readOnly":true,"description":"Whether *this* diagnosis is differentiaal or definitief. Null when never recorded.\nStated per diagnosis rather than once for the zorgtraject.\n"}}},"DsmHoofdgroepCode":{"type":"string","minLength":2,"maxLength":2,"pattern":"^[0-9]{2}$","description":"A DSM hoofdgroep code as published in Vektis codelijst CL0005-NZA — two digits,\ne.g. `04` (Depressieve stemmingsstoornissen). Enumerate the values that are valid\ntoday via `GET /api/v1/reference-data/dsm-hoofdgroep-codes`.\n","example":"04"},"FinancingRegime":{"type":"string","description":"Financing regime (wettelijk kader) under which care is funded and declared","enum":["ZVW","WMO","JEUGDWET","PARTICULIER","PGB","ANDERS"],"example":"WMO"},"FormAnswersResponse":{"type":"object","description":"Response containing all answers for a form","required":["clientId","formId","answers","totalCount"],"properties":{"clientId":{"type":"string","format":"uuid","description":"Client UUID"},"formId":{"type":"string","format":"uuid","description":"Form UUID"},"submission":{"$ref":"#/components/schemas/FormSubmissionResponse","description":"The form submission record (if exists)"},"answers":{"type":"array","items":{"$ref":"#/components/schemas/AnswerResponse"},"description":"List of answers"},"totalCount":{"type":"integer","format":"int32","description":"Total number of answers","minimum":0}}},"FormItemContent":{"type":"object","description":"Content for STATIC_TEXT or DOCUMENT_LINK form items","properties":{"text":{"type":"string","description":"Text content for STATIC_TEXT items","example":"Please read the following instructions carefully."},"title":{"type":"string","description":"Title for DOCUMENT_LINK items","example":"Privacy Policy"},"url":{"type":"string","format":"uri","description":"URL for DOCUMENT_LINK items","example":"https://example.com/privacy"}}},"FormItemResponse":{"type":"object","description":"A form item (question, static text, or document link)","required":["id","position","itemType","createdAt"],"properties":{"id":{"type":"string","format":"uuid","description":"Form item UUID"},"position":{"type":"integer","format":"int32","description":"Position of the item in the form (1-based ordering)","minimum":1},"itemType":{"$ref":"#/components/schemas/FormItemType"},"question":{"$ref":"#/components/schemas/QuestionResponse","description":"The question reference (only present when itemType is QUESTION)"},"content":{"$ref":"#/components/schemas/FormItemContent","description":"Content for STATIC_TEXT or DOCUMENT_LINK items"},"visibleWhen":{"type":"array","description":"When the item is shown. Empty means always, otherwise the item is shown when any condition holds, and a condition on an unanswered question never holds. Only the items of a system form carry conditions.","items":{"$ref":"#/components/schemas/FormItemVisibility"}},"label":{"type":"string","nullable":true,"description":"What this form asks instead of the question's own text; null shows the question's"},"helpText":{"type":"string","nullable":true,"description":"What this form shows instead of the question's description"},"required":{"type":"boolean","nullable":true,"description":"Whether this form requires an answer, instead of what the question says; null follows the question"},"createdAt":{"type":"integer","format":"int64","description":"Creation timestamp (epoch milliseconds)"}}},"FormItemType":{"type":"string","enum":["QUESTION","STATIC_TEXT","DOCUMENT_LINK"],"description":"Types of items that can be added to a form:\n- QUESTION: A reference to a Question entity\n- STATIC_TEXT: Static text content (instructions, descriptions)\n- DOCUMENT_LINK: A link to an external document\n"},"FormItemVisibility":{"type":"object","description":"A condition on the answer to another question of the same form.","required":["questionId","operator","values"],"properties":{"questionId":{"type":"string","format":"uuid","description":"The question whose answer the condition reads"},"operator":{"$ref":"#/components/schemas/VisibilityOperator"},"values":{"type":"array","description":"The option values the answer is compared with","items":{"type":"string"}}}},"FormListResponse":{"type":"object","description":"List of forms","required":["forms","totalCount"],"properties":{"forms":{"type":"array","items":{"$ref":"#/components/schemas/FormResponse"}},"totalCount":{"type":"integer","format":"int32","description":"Total number of forms","minimum":0}}},"FormResponse":{"type":"object","description":"A form with all its items","required":["id","organizationId","title","status","forAppointment","forClient","includeInAiRecap","isRegistrationForm","items","createdAt","updatedAt"],"properties":{"id":{"type":"string","format":"uuid","description":"Form UUID"},"organizationId":{"type":"string","format":"uuid","description":"Organization this form belongs to"},"title":{"type":"string","description":"Form title","example":"Client Intake Form"},"description":{"type":"string","nullable":true,"description":"Client-facing form introduction, printed above the questions","example":"Standard intake form for new clients"},"aiInstruction":{"type":"string","nullable":true,"description":"Author-facing general instruction for the AI form fill, applied to every\nquestion of this form. Never printed and never shown to the client.\n","example":"Schrijf in de derde persoon en houd het feitelijk."},"status":{"$ref":"#/components/schemas/FormStatus"},"forAppointment":{"type":"boolean","description":"Whether this form is used during appointments"},"forClient":{"type":"boolean","description":"Whether this form is available to clients via portal"},"includeInAiRecap":{"type":"boolean","description":"Whether submissions of this form may be read by the AI recap on the client\ndossier. False keeps the form out of it entirely: its answers reach neither the\nprompt nor the recap's data sources, and cannot make a recap generate on their own.\n"},"isRegistrationForm":{"type":"boolean","description":"Whether this is the practice's registration form. It can be activated only while it\nholds every dossier field a new cliënt requires, and those fields cannot be removed\nfrom it or made optional.\n"},"defaultPortalAudience":{"allOf":[{"$ref":"#/components/schemas/PortalItemAudience"}],"nullable":true,"description":"The audience the share dialog is pre-filled with for this form. A preference of the\npractice only: nothing reads it when the form is shared.\n"},"defaultPortalCompletionRule":{"allOf":[{"$ref":"#/components/schemas/PortalCompletionRule"}],"nullable":true,"description":"The completion rule the share dialog is pre-filled with for this form. A preference of\nthe practice only: nothing reads it when the form is shared.\n"},"items":{"type":"array","description":"Form items ordered by position","items":{"$ref":"#/components/schemas/FormItemResponse"}},"createdAt":{"type":"integer","format":"int64","description":"Creation timestamp (epoch milliseconds)"},"updatedAt":{"type":"integer","format":"int64","description":"Last update timestamp (epoch milliseconds)"}}},"FormStatus":{"type":"string","enum":["DRAFT","ACTIVE","DEPRECATED"],"description":"Status of a form:\n- DRAFT: Form is being created/edited, not yet available for use\n- ACTIVE: Form is available for submissions\n- DEPRECATED: Form is no longer available for new submissions\n"},"FormSubmissionDetailResponse":{"type":"object","description":"Full detail of a form submission including the form template structure,\nanswers, and linked entity information.\n","required":["id","createdAt","submissionType","status","form","answers"],"properties":{"id":{"type":"string","format":"uuid","description":"Submission UUID"},"status":{"$ref":"#/components/schemas/FormSubmissionStatus"},"createdAt":{"type":"integer","format":"int64","description":"Creation timestamp (epoch milliseconds)"},"createdBy":{"type":"object","nullable":true,"description":"Information about who created this submission","properties":{"userId":{"type":"string","format":"uuid","nullable":true,"description":"User UUID who submitted (for BEHANDELAAR submissions)"},"userName":{"type":"string","nullable":true,"description":"Full name of the user who submitted"},"clientId":{"type":"string","format":"uuid","nullable":true,"description":"Client UUID who submitted (for CLIENT submissions)"}}},"submissionType":{"$ref":"#/components/schemas/SubmissionType"},"form":{"$ref":"#/components/schemas/FormResponse","description":"The form template including all items/questions"},"answers":{"type":"array","items":{"$ref":"#/components/schemas/AnswerResponse"},"description":"List of answers for this submission"},"dossierValues":{"type":"array","description":"For a submission about a cliënt, what the dossier holds for each question of the form\nlinked to a dossier field. Such a question shows this value read-only and has no answer\nof its own.\n","items":{"$ref":"#/components/schemas/DossierValue"}},"linkedClient":{"type":"object","nullable":true,"description":"Linked client information (if submission is for a specific client)","properties":{"id":{"type":"string","format":"uuid","description":"Client UUID"},"name":{"type":"string","description":"Full name of the client"}}},"linkedAppointment":{"type":"object","nullable":true,"description":"Linked appointment information (if submission is tied to an appointment). The afspraak the submission belongs to. No appointment operation is part of the public API.","properties":{"id":{"type":"string","format":"uuid","description":"Appointment UUID"},"startTime":{"type":"integer","format":"int64","description":"Appointment start time (epoch milliseconds)"},"appointmentTypeName":{"type":"string","nullable":true,"description":"Name of the appointment type"}}}}},"FormSubmissionResponse":{"type":"object","description":"A form submission record","required":["id","formId","submissionType","status","submittedAt"],"properties":{"id":{"type":"string","format":"uuid","description":"Submission UUID"},"formId":{"type":"string","format":"uuid","description":"Form UUID that was submitted"},"submissionType":{"$ref":"#/components/schemas/SubmissionType"},"status":{"$ref":"#/components/schemas/FormSubmissionStatus"},"clientId":{"type":"string","format":"uuid","nullable":true,"description":"Client UUID the form was submitted about. For group appointments, this identifies\nwhich client within the group this submission pertains to. For single-client\nappointments, this matches the appointment's clientId.\n"},"clientName":{"type":"string","nullable":true,"description":"Full name of the client the form was submitted about"},"submittedByUserId":{"type":"string","format":"uuid","nullable":true,"description":"User UUID who submitted (for BEHANDELAAR submissions). A Scrivio user id. Outside the app it can only be matched against the `userId` that getClientBehandelaars returns."},"submittedByClientId":{"type":"string","format":"uuid","nullable":true,"description":"Client UUID who submitted (for CLIENT submissions)"},"submittedAt":{"type":"integer","format":"int64","description":"Submission timestamp (epoch milliseconds)"},"appointmentId":{"type":"string","format":"uuid","nullable":true,"description":"Associated appointment UUID (if submitted during an appointment). An afspraak id. No appointment operation is part of the public API."},"appointmentTitle":{"type":"string","nullable":true,"description":"Name of the appointment type (if submitted during an appointment)"},"appointmentStartTime":{"type":"integer","format":"int64","nullable":true,"description":"Appointment start time in epoch milliseconds (if submitted during an appointment)"},"submitterName":{"type":"string","nullable":true,"description":"Display name of the submitter. For BEHANDELAAR submissions this is the user's full name, for CLIENT submissions this is \"Cliënt via portaal\""}}},"FormSubmissionStatus":{"type":"string","enum":["DRAFT","REVIEWED"],"description":"Status of a form submission:\n- DRAFT: Form submission created but not yet reviewed\n- REVIEWED: Form submission has been reviewed by a behandelaar\n"},"Gender":{"type":"string","enum":["MALE","FEMALE","OTHER","UNKNOWN"],"description":"Client gender"},"GeneratedLetterListResponse":{"type":"object","description":"One page of the generated letters for a client, newest first","required":["content","letters","page","size","totalElements","totalPages"],"properties":{"content":{"type":"array","description":"The letters on this page, sorted by generation date descending","items":{"$ref":"#/components/schemas/GeneratedLetterSummary"}},"letters":{"type":"array","deprecated":true,"description":"The same letters as `content`. Kept only for a browser tab still running a frontend\nbuilt before this list was paged, and removed once those have reloaded; read `content`.\n","items":{"$ref":"#/components/schemas/GeneratedLetterSummary"}},"page":{"type":"integer","format":"int32","description":"Current page number (0-indexed)"},"size":{"type":"integer","format":"int32","description":"Number of letters per page"},"totalElements":{"type":"integer","format":"int64","description":"Total number of letters"},"totalPages":{"type":"integer","format":"int32","description":"Total number of pages"}}},"GeneratedLetterSummary":{"type":"object","description":"Summary information about a generated letter","required":["id","templateId","templateName","generatedAt","generatedByName","documentId","editable"],"properties":{"id":{"type":"string","format":"uuid","description":"Unique identifier of the generated letter"},"templateId":{"type":"string","format":"uuid","description":"ID of the letter template used"},"templateName":{"type":"string","description":"Name of the letter template used","example":"Afsluitbrief"},"editable":{"type":"boolean","description":"The HTML the letter was rendered from is stored, so it can be reopened in the editor and\ngenerated again. False for letters generated before that content was kept.\n","example":true},"generatedAt":{"type":"integer","format":"int64","description":"Timestamp when the letter was generated (milliseconds since epoch)","example":1705334400000},"generatedByName":{"type":"string","description":"Display name of the user who generated the letter","example":"Jan de Vries"},"documentId":{"type":"string","format":"uuid","description":"ID of the document in the client's dossier"},"zorgMailSends":{"type":"array","description":"Every ZorgMail attempt for this letter, newest first — accepted *and* refused.\n","items":{"$ref":"#/components/schemas/ZorgMailSendRecord"}}}},"GgzType":{"type":"string","enum":["BASIS_GGZ","GESPECIALISEERDE_GGZ"],"description":"Which kind of ggz a zorgtraject delivers. Chosen per zorgtraject — a practice\ndelivers both — and it decides which diagnosis codelist the declaration carries\n(Vektis `DiagnoseCodelijstCode`):\n- BASIS_GGZ: codelijst `033`, the GB-ggz profiel (CL0009-NZA: `GBG01` kort,\n  `GBG02` middel, `GBG03` intensief, `GBG04` chronisch)\n- GESPECIALISEERDE_GGZ: codelijst `029`, the DSM hoofdgroep (CL0005-NZA, `01`-`23`)\n\nAbsent on a trajectory whose type was never recorded. The codelist is selected\nfrom this value alone and never inferred from which diagnosis field happens to be\nfilled, so an untyped trajectory declares no codelist at all.\n"},"IdDocumentType":{"type":"string","enum":["PASSPORT","ID_CARD","DRIVERS_LICENSE","RESIDENCE_PERMIT"],"description":"Type of identity document used to establish the client's identity (Wabvpz). Only the document type and number are registered; a scan or copy of the document is never stored."},"PortalCompletionRule":{"type":"string","enum":["ONE","EVERYONE","SPECIFIC"],"description":"Whose action completes a portal item that asks for one:\n- ONE: one person in the audience (the default)\n- EVERYONE: every person in the required set — under 12 every gezag holder, 12–15 every\n  gezag holder and the young person, from 16 the young person — within the audience\n- SPECIFIC: each person the practice member picked\n"},"PortalItemAudience":{"type":"string","enum":["CHILD","HOUSEHOLD","PERSON"],"description":"Who a portal item is for:\n- CHILD: everyone who has access to the cliënt's portal (the default)\n- HOUSEHOLD: the members of one of the cliënt's households\n- PERSON: people the practice member picked\n"},"ProblemDetail":{"type":"object","description":"RFC 7807 Problem Details for HTTP APIs","required":["type","title","status"],"properties":{"type":{"type":"string","format":"uri","description":"URI reference identifying the problem type","example":"https://api.scrivio.nl/problems/validation-error"},"title":{"type":"string","description":"Short, human-readable summary","example":"Validation Error"},"status":{"type":"integer","format":"int32","description":"HTTP status code","example":422},"detail":{"type":"string","description":"Human-readable explanation","example":"Name already exists"},"instance":{"type":"string","format":"uri","description":"URI reference identifying the specific occurrence"},"errors":{"type":"array","description":"List of validation errors","items":{"type":"object","properties":{"field":{"type":"string","description":"Field name that failed validation"},"message":{"type":"string","description":"Error message"}}}}}},"QuestionOption":{"type":"object","description":"An option for choice-type questions","required":["key","label"],"properties":{"key":{"type":"string","description":"Unique identifier for this option (used in answers)","example":"very_satisfied","minLength":1,"maxLength":100},"label":{"type":"string","description":"Display text for this option","example":"Very Satisfied","minLength":1,"maxLength":500},"allowsFreeText":{"type":"boolean","description":"Whether picking this option also accepts typed text — an \"Anders, namelijk\".\nAt most one option per question may set it; a second is refused with a 400.\n\nAn answer naming such an option stores `{key, text}` instead of the bare key\n(see the `value` descriptions on the answer schemas). Absent means false;\nno `default:` is declared because a default on a request-body property\nsurvives deserialisation and resets the field.\n"}}},"QuestionResponse":{"type":"object","description":"A question with its latest version","required":["id","organizationId","key","currentVersion","createdAt","hasAnswers","inLibrary","imported","carryOverSourceQuestionIds"],"properties":{"id":{"type":"string","format":"uuid","description":"Question UUID"},"organizationId":{"type":"string","format":"uuid","description":"Organization this question belongs to"},"key":{"type":"string","description":"Human-readable key for the question (e.g., 'client_name')","pattern":"^[a-z][a-z0-9_]*$","minLength":1,"maxLength":100,"example":"client_name"},"currentVersion":{"$ref":"#/components/schemas/QuestionVersionResponse"},"createdAt":{"type":"integer","format":"int64","description":"Question creation timestamp (epoch milliseconds)"},"archivedAt":{"type":"integer","format":"int64","nullable":true,"description":"When the question was archived (epoch milliseconds), null if not archived"},"hasAnswers":{"type":"boolean","description":"Whether this question has any answers. Questions with answers cannot be deleted but can be archived."},"inLibrary":{"type":"boolean","description":"Whether this question is in the reusable question library.\nLibrary questions can be added to multiple forms.\nInline questions (inLibrary=false) are form-specific and not shown in the library picker.\n"},"carryOverAnswer":{"type":"boolean","description":"\"Eerder antwoord overnemen\": a new submission for a cliënt opens with the cliënt's\nmost recent non-blank answer to this question from another form.\n"},"carryOverFromSameForm":{"type":"boolean","description":"\"Ook uit een eerder ingevuld exemplaar van dit formulier\": with carryOverAnswer on,\nthe earlier answer may also come from an earlier submission of the same form.\n"},"carryOverAnswerOffered":{"type":"boolean","description":"Whether carryOverAnswer may be switched on. False for a system question and for a\nquestion an import created.\n"},"carryOverSourceQuestionIds":{"type":"array","description":"\"Overnemen van\": the questions whose latest answers the field opens with, in order.\nEmpty means the question's own earlier answer. A question deleted since is still\nlisted here and is skipped when the answers are looked up.\n","items":{"type":"string","format":"uuid"}},"imported":{"type":"boolean","description":"Whether an import created this question to file migrated records on.\nAn imported question is never in the library and cannot be added to it.\n"},"dossierField":{"allOf":[{"$ref":"#/components/schemas/DossierFieldTarget"}],"nullable":true,"description":"The dossier field this Scrivio-owned question is linked to. Read-only: a question an\norganisation creates never has one. In a form for an existing cliënt the question\nshows the dossier's value and is not answered.\n"}}},"QuestionType":{"type":"string","enum":["TEXT_SHORT","TEXT_LONG","YES_NO","SINGLE_CHOICE","MULTI_CHOICE","AGREEMENT","DATE","NUMBER","TEXT_LIST","NAME","ADDRESS","HUISARTS","ZORGVERZEKERING","CONTACT_PERSON","FILE"],"description":"Types of questions available in forms:\n- TEXT_SHORT: Short text input (single line)\n- TEXT_LONG: Long text input (multi-line)\n- YES_NO: Binary yes/no choice\n- SINGLE_CHOICE: Select one from multiple options\n- MULTI_CHOICE: Select multiple from options\n- AGREEMENT: Agreement/consent checkbox\n- DATE: Date input\n- NUMBER: Numeric input\n- TEXT_LIST: Several short text inputs (\"Meerdere korte antwoorden\"); how many is\n  the version's `fieldCount`\n- NAME, ADDRESS, HUISARTS, ZORGVERZEKERING: a dossier field whose members are answered\n  together, as one object keyed by the members of that dossier field. Only a question\n  linked to a dossier field has one; a question cannot be created or changed to one.\n- CONTACT_PERSON: the same, repeatable — an array of such objects, at most the dossier\n  field's `maxEntries`.\n- FILE: A file the person uploads. Only on a registration form; the answer is\n  `{attachmentId, filename}`, the file as it was stored after its malware scan.\n"},"QuestionVersionResponse":{"type":"object","description":"A specific version of a question","required":["id","version","type","text","required","createdAt"],"properties":{"id":{"type":"string","format":"uuid","description":"Version UUID"},"version":{"type":"integer","format":"int32","description":"Version number (1-based)","minimum":1},"type":{"$ref":"#/components/schemas/QuestionType"},"text":{"type":"string","description":"The question text","example":"What is your full name?"},"description":{"type":"string","nullable":true,"description":"Client-facing explanation shown under the question and printed","example":"Please enter your complete legal name"},"aiInstruction":{"type":"string","nullable":true,"description":"Author-facing instruction telling the AI what to extract from the transcript\nfor this question. Never printed and never shown to the client.\n","example":"Vat samen wat de cliënt vertelt over het slaappatroon."},"options":{"type":"array","nullable":true,"description":"Options for choice-type questions","items":{"$ref":"#/components/schemas/QuestionOption"}},"fieldCount":{"type":"integer","format":"int32","nullable":true,"minimum":1,"maximum":10,"description":"How many single-line fields a TEXT_LIST question shows, and so the most entries\nits answer may hold. Null for every other type.\n"},"required":{"type":"boolean","description":"Whether an answer is required"},"createdAt":{"type":"integer","format":"int64","description":"Creation timestamp (epoch milliseconds)"}}},"SaveAnswersRequest":{"type":"object","description":"Request to save multiple answers for a form submission","required":["answers"],"properties":{"answers":{"type":"array","description":"List of answers to save","items":{"$ref":"#/components/schemas/BehandelaarAnswerSubmission"},"minItems":0}}},"Setting":{"type":"string","enum":["AMBULANT_MONO","AMBULANT_MULTI","KLINISCH","PRAKTIJK"],"description":"Treatment setting (behandelsetting) per NZA tariff structure:\n- AMBULANT_MONO: Ambulant monodisciplinair (outpatient monodisciplinary)\n- AMBULANT_MULTI: Ambulant multidisciplinair (outpatient multidisciplinary)\n- KLINISCH: Klinisch (inpatient clinical)\n- PRAKTIJK: Praktijk (private practice)\n"},"SoortRelatie":{"type":"string","enum":["HULPVERLENER","ANDERS","OUDER","VOOGD","PLEEGOUDER","FAMILIELID","GEZINSLID"],"description":"What the contact is to the cliënt, in iJW's terms (`LDT_SoortRelatie`, JW301 `Relatie/Soort`).\nOnly the codes that occur around a minor; the Vektis code is in brackets:\n- HULPVERLENER: Hulpverlener (07)\n- ANDERS: Anders (09)\n- OUDER: Ouder (10)\n- VOOGD: Voogd (11)\n- PLEEGOUDER: Pleegouder (13)\n- FAMILIELID: Familielid (17)\n- GEZINSLID: Gezinslid (18) — also a parent's partner, for whom iJW has no code\n\nA soort says nothing about gezag: that is `heeftGezag`, recorded per relation.\n"},"SubmissionType":{"type":"string","enum":["BEHANDELAAR","CLIENT","PUBLIC"],"description":"Type of form submission:\n- BEHANDELAAR: Submitted by a user (care provider)\n- CLIENT: Submitted by a client via portal\n- PUBLIC: Submitted on a public registration link by someone without an account\n"},"SystemForm":{"type":"string","description":"A form Scrivio provisions and the organisation cannot author. DOSSIERNOTITIE is provisioned\nfor every organisation; LADIS_UITSCHRIJVING and LADIS_INTAKE (records 31 and 32) for an\norganisation with LADIS delivery switched on, each answered once per zorgtraject.\n","enum":["DOSSIERNOTITIE","LADIS_UITSCHRIJVING","LADIS_INTAKE"]},"TaggedChoiceValue":{"type":"object","description":"A choice answer that also carries typed text — what a SINGLE_CHOICE value is, or\none entry of a MULTI_CHOICE array, when the option picked is marked\n`allowsFreeText`.\n\nAn ordinary choice stays the bare option key it has always been; only the\nfree-text option is tagged, so which option was chosen is never inferred from the\ntext. `text` must not be blank: \"picked it and typed nothing\" is the bare key.\n","required":["key","text"],"properties":{"key":{"type":"string","description":"The key of the option chosen; must be one the question offers","example":"anders","minLength":1,"maxLength":100},"text":{"type":"string","description":"The text typed into that option","example":"Ik ervaar vooral spanning op mijn werk","minLength":1}}},"UpdateCareCircleContactRequest":{"type":"object","description":"All fields are optional. Only provided fields will be updated.","properties":{"role":{"$ref":"#/components/schemas/CareCircleRole"},"name":{"type":"string","minLength":1,"maxLength":255,"nullable":true,"description":"Contact name","example":"Dr. Jan de Vries"},"email":{"type":"string","format":"email","nullable":true,"description":"Contact email address","example":"j.devries@huisartsenpraktijk.nl"},"phone":{"type":"string","maxLength":20,"nullable":true,"description":"Contact phone number","example":"+31201234567"},"relation":{"type":"string","maxLength":100,"nullable":true,"description":"Relationship description (for personal contacts)","example":"Moeder"},"addressStreet":{"type":"string","maxLength":255,"nullable":true,"description":"Street name only; the house number is `addressHouseNumber`. A contact stored before the address was split may still hold street and number here, with no house number.","example":"Familiestraat"},"addressHouseNumber":{"type":"string","maxLength":10,"nullable":true,"description":"House number, without its toevoeging","example":"42"},"addressHouseNumberSuffix":{"type":"string","maxLength":20,"nullable":true,"description":"Huisletter and huisnummertoevoeging together","example":"A"},"addressPostalCode":{"type":"string","maxLength":10,"nullable":true,"description":"Contact postal code, held to the rule of `addressCountry`","example":"5678CD"},"addressCity":{"type":"string","maxLength":100,"nullable":true,"description":"Contact city","example":"Rotterdam"},"addressCountry":{"type":"string","pattern":"^[A-Z]{2}$","nullable":true,"description":"Country of the address, ISO 3166-1 alpha-2. Null means the Netherlands (`NL`).","example":"NL"},"agbCode":{"type":"string","pattern":"^\\d{8}$","nullable":true,"description":"AGB code of the zorgverlener themselves (8 digits) — ZorgMail's `zvAgbCode`.\nKept distinct from `praktijkAgbCode`: a ZorgMail mailbox alias exists for the\nzorgverlener, the praktijk, or both, and matching the one we hold against the\nother's alias reports a reachable huisarts as unreachable.\n","example":"01012345"},"praktijkAgbCode":{"type":"string","pattern":"^\\d{8}$","nullable":true,"description":"AGB code of the praktijk this contact works at (8 digits) — ZorgMail's `prAgbCode`. See `agbCode`.","example":"01234567"},"praktijkName":{"type":"string","maxLength":255,"nullable":true,"description":"Practice/clinic name (for GP/specialists)","example":"Huisartsenpraktijk De Vries"},"praktijkStreet":{"type":"string","maxLength":500,"nullable":true,"description":"Practice street address","example":"Dokterslaan 1"},"praktijkPostalCode":{"type":"string","maxLength":10,"nullable":true,"description":"Practice postal code","example":"1234AB"},"praktijkCity":{"type":"string","maxLength":100,"nullable":true,"description":"Practice city","example":"Amsterdam"},"notes":{"type":"string","nullable":true,"description":"Additional notes about this contact","example":"Available on Tuesdays and Thursdays"},"soortRelatie":{"allOf":[{"$ref":"#/components/schemas/SoortRelatie"}],"nullable":true,"description":"The iJW soort relatie (`LDT_SoortRelatie`), when recorded."},"heeftGezag":{"type":"boolean","nullable":true,"description":"Whether this person holds gezag over the cliënt. Recorded explicitly, never inferred\nfrom `role` or `soortRelatie` — parenthood does not imply gezag. Grants nothing on its own.\n","example":true},"volgorde":{"type":"integer","minimum":0,"maximum":99,"nullable":true,"description":"JW301 `Relatie/Volgorde` — the contact person's priority (1 = first contact, 2 = second).","example":1},"startdatum":{"type":"string","format":"date","nullable":true,"description":"First day of the relation; open when absent.","example":"2024-01-01"},"einddatum":{"type":"string","format":"date","nullable":true,"description":"Last day of the relation; open when absent. Must not be before `startdatum`.","example":"2026-12-31"},"isActive":{"type":"boolean","nullable":true,"description":"Whether this contact is active","example":true}}},"UpdateClientRequest":{"type":"object","description":"All fields are optional. Only provided fields will be updated.","properties":{"firstName":{"type":"string","minLength":1,"maxLength":100,"nullable":true,"description":"Client first name","example":"Jan"},"lastName":{"type":"string","minLength":1,"maxLength":100,"nullable":true,"description":"Client last name","example":"Berg"},"prefix":{"type":"string","maxLength":20,"nullable":true,"description":"Name prefix (tussenvoegsel)","example":"van den"},"initials":{"type":"string","maxLength":20,"nullable":true,"description":"Client initials","example":"J.P."},"email":{"type":"string","format":"email","nullable":true,"description":"Client email address","example":"jan.vandenberg@example.nl"},"phone":{"type":"string","maxLength":20,"nullable":true,"description":"Client phone number. A Dutch number (`0612345678`, `+31 6 12345678`) or a foreign one in international form (`+32 470 12 34 56`), stored without spaces or dashes. A number without a country prefix is read as Dutch. A malformed value supplied here is a `400` naming this field; a stored value the request leaves alone is not judged.","example":"+31612345678"},"addressStreet":{"type":"string","maxLength":200,"nullable":true,"description":"Street name only. The house number is `addressHouseNumber`; a caller that holds one composed line must split it before sending, because nothing here splits it for them.","example":"Hoofdstraat"},"addressHouseNumber":{"type":"string","maxLength":10,"nullable":true,"description":"House number, without its toevoeging","example":"123"},"addressHouseNumberSuffix":{"type":"string","maxLength":20,"nullable":true,"description":"Huisletter and huisnummertoevoeging together, as the zib carries them","example":"A"},"addressPostalCode":{"type":"string","maxLength":10,"nullable":true,"description":"Postal code. For an address in the Netherlands, four digits and two letters, stored as `1234AB` whatever spacing or case it was sent in; for any other country, stored upper-cased and held only to the length. A malformed value supplied here is a `400` naming this field; a stored value the request leaves alone is not judged.","example":"1234AB"},"addressCity":{"type":"string","maxLength":100,"nullable":true,"description":"City","example":"Amsterdam"},"addressCountry":{"type":"string","pattern":"^[A-Za-z]{2}$","description":"Country of the address, ISO 3166-1 alpha-2. Omitted, it stays as it is. Changing it re-checks the stored `addressPostalCode` against the new country's rule.","example":"BE"},"dateOfBirth":{"type":"string","format":"date","nullable":true,"description":"Date of birth (YYYY-MM-DD)","example":"1985-03-15"},"bsn":{"type":"string","pattern":"^\\d{9}$","nullable":true,"description":"Burgerservicenummer (9 digits).\n\nA **changed** BSN must also pass the elfproef (11-check), which OpenAPI cannot\nexpress, and is refused with `400` and an `errors` entry naming `bsn` when it\ndoes not. A stored BSN this request does not change is accepted whatever\nit is — an edit to the address or the verzekering of a cliënt whose BSN predates\nthat rule must not be blocked over a field nobody touched.\n","example":"123456782"},"gender":{"allOf":[{"$ref":"#/components/schemas/Gender"}],"nullable":true},"locationId":{"type":"string","format":"uuid","nullable":true,"description":"Location ID where this client receives services. No operation of the public API lists locations yet.","example":"880e8400-e29b-41d4-a716-446655440003"},"intakeDate":{"type":"string","format":"date","nullable":true,"description":"Date of intake (YYYY-MM-DD)","example":"2024-01-15"},"dischargeDate":{"type":"string","format":"date","nullable":true,"description":"Date of discharge (YYYY-MM-DD)","example":"2024-12-31"},"idDocumentType":{"allOf":[{"$ref":"#/components/schemas/IdDocumentType"}],"nullable":true},"idDocumentNumber":{"type":"string","maxLength":50,"nullable":true,"description":"Identity document number (Wabvpz). When both idDocumentType and idDocumentNumber are provided, the client's identity is marked as verified (idVerifiedAt/idVerifiedBy are stamped). No scan is stored.","example":"NL1234567"},"warningLevel":{"allOf":[{"$ref":"#/components/schemas/ClientWarningLevel"}],"nullable":true,"description":"Level of the client's one standing warning. The two warning fields are one fact\nand are resolved together against what is stored, so a request naming neither\nleaves the warning untouched and one naming either re-decides both. OpenAPI 3.0\ncannot express that, hence the prose:\n\n- clearing `warningText` (sending null, or blank) removes the warning entirely,\n  level included — that is the only way to remove one;\n- `warningLevel` alone re-colours the stored text, and stores nothing when there\n  is no stored text;\n- `warningText` alone keeps the stored level, or WARNING when there was none.\n"},"warningText":{"type":"string","maxLength":2000,"nullable":true,"description":"The client's one standing warning. Sending null or blank removes the warning.\nSee `warningLevel` for how the two are resolved together.\n"},"language":{"allOf":[{"$ref":"#/components/schemas/ClientLanguage"}],"description":"The language the client reads. Omitted leaves it unchanged."},"privacyverklaringOndertekendOp":{"type":"string","format":"date","nullable":true,"description":"The date the client signed a privacyverklaring (YYYY-MM-DD): client and practitioner agree that nothing traceable to a diagnosis appears on the declaration to the insurer or on the nota. Omitted leaves it unchanged; null withdraws it. May not lie after today; a later date is refused with 400.","example":"2026-11-09"},"ownTariffPercentageOfNza":{"type":"number","format":"double","nullable":true,"minimum":0,"maximum":100,"description":"Eigen tarief agreed with this client, as a percentage of the NZa maximum, for a consult no contract prices; it overrides the organisation's. Omitted leaves it unchanged; null clears it, returning the client to the organisation's eigen tarief, which is not the same as 0. Changing it requires `billing.update` (403 otherwise) and a value outside 0..100 is refused with 400. Invoiced or batched declaratieregels keep the price they were committed at.","example":70}}},"VerwijstypeCode":{"type":"string","enum":["VERWIJZING_AANWEZIG","DOORVERWIJZING","GEEN_VERWIJZING_VERLATE_CORRESPONDENTIE","GEEN_VERWIJZING_CORRESPONDENTIE_NIET_TOEGESTAAN","GEEN_VERWIJZING","GEEN_VERWIJZING_ANDERE_RECHTMATIGHEIDSGROND","VERWIJZING_AANWEZIG_ZONDER_AGB"],"description":"Type verwijzing per Vektis codelijst CL0004-NZA, required on the restitutienota:\n- VERWIJZING_AANWEZIG: 01 - Verwijzing aanwezig\n- DOORVERWIJZING: 02 - Doorverwijzing\n- GEEN_VERWIJZING_VERLATE_CORRESPONDENTIE: 03 - Geen verwijzing aanwezig vanwege uitzondering, verlate correspondentie\n- GEEN_VERWIJZING_CORRESPONDENTIE_NIET_TOEGESTAAN: 04 - Geen verwijzing aanwezig vanwege uitzondering, door patiënt geen correspondentie toegestaan\n- GEEN_VERWIJZING: 05 - Geen verwijzing\n- GEEN_VERWIJZING_ANDERE_RECHTMATIGHEIDSGROND: 06 - Geen verwijzing, andere rechtmatigheidsgrond\n- VERWIJZING_AANWEZIG_ZONDER_AGB: 07 - Verwijzing aanwezig, maar verwijzer heeft geen AGB-code\n"},"VerwijzerType":{"type":"string","enum":["HUISARTS","SPECIALIST","BEDRIJFSARTS","OTHER"],"description":"Type verwijzer (referrer type):\n- HUISARTS: Huisarts (General practitioner)\n- SPECIALIST: Medisch specialist\n- BEDRIJFSARTS: Bedrijfsarts (Company doctor)\n- OTHER: Overige verwijzer\n"},"VisibilityOperator":{"type":"string","description":"With IN the answer is one of the values, with NOT_IN the question is answered with a value that is not one of them.","enum":["IN","NOT_IN"]},"VoorgesteldeDsmHoofdgroep":{"type":"object","description":"A DSM hoofdgroep proposed from a zorgtraject's recorded DSM-5 diagnosis, together with\nthe diagnosis it was derived from. A **proposal**, never applied: nothing on the\nserver writes it, and it reaches the practitioner as a pre-filled, labelled value in the\nGGZ-profiel form, which she confirms by saving.\n\nCarries its origin because the practitioner has to be able to judge it: the two\ntaxonomies do not line up one-to-one, and eight of the DSM-5 niveau-1 roots can only\nfold onto `23 Restgroep`.\n\nAbsent from a zorgtraject that records no DSM-5 diagnosis, whose diagnoses point at\ndifferent hoofdgroepen with none marked primair, or whose diagnosis names a DSM-5 root\nScrivio has no answer for. Independent of `dsmHoofdgroepCode`: it is carried whether or\nnot one is already recorded, so the correction dialog can offer it too.\n","required":["code","betekenis","afgeleidVanDsm5Code","afgeleidVanDsm5Omschrijving"],"properties":{"code":{"allOf":[{"$ref":"#/components/schemas/DsmHoofdgroepCode"}],"description":"The proposed hoofdgroep, valid on the zorgtraject's startdatum"},"betekenis":{"type":"string","description":"Betekenis of the proposed hoofdgroep, exactly as CL0005-NZA states it","example":"Angststoornissen"},"afgeleidVanDsm5Code":{"type":"string","maxLength":20,"description":"The DSM-5 code the proposal was derived from — the primary diagnosis when one is\nmarked, otherwise any of the recorded diagnoses, which all point at this hoofdgroep.\n","example":"D5_5.08.02"},"afgeleidVanDsm5Omschrijving":{"type":"string","description":"Description of that DSM-5 diagnosis","example":"Ongespecificeerde angststoornis"}}},"ZorgMailSendRecord":{"type":"object","description":"One attempt to hand a letter to ZorgMail.","required":["id","sentAt","accepted","recipientAddress","recipientName"],"properties":{"id":{"type":"string","format":"uuid"},"sentAt":{"type":"integer","format":"int64","description":"When the attempt was made (milliseconds since epoch)","example":1705334400000},"accepted":{"type":"boolean","description":"ZorgMail took the message. **Deliberately not called delivered**: acceptance is\nacknowledgement of the submission, and a content failure bounces asynchronously into the\npractice's own ZorgMail mailbox, which Scrivio does not read.\n","example":true},"recipientAddress":{"type":"string","description":"The recipient's EDI address as it was at the time of sending. The message itself went to `gateway@lms.lifeline.nl`.","example":"500012345@lms.lifeline.nl"},"recipientName":{"type":"string","description":"The recipient as the sender confirmed them. Stored rather than resolved again on read:\nthe adresboek is a live search, and a practice that has since moved would make this row\nname someone who was never sent anything.\n","example":"J. de Vries"},"recipientOrganization":{"type":"string","nullable":true,"example":"Huisartsenpraktijk De Vries"},"messageId":{"type":"string","nullable":true,"description":"The RFC 5322 `Message-ID` the submission carried. Null on a refusal.\n"},"refusal":{"type":"string","nullable":true,"description":"The name of the ZorgMail error condition, when the attempt was refused\n(`RECIPIENT_UNKNOWN`, `NOT_PERMITTED_FOR_SENDER`, `SENDER_UNKNOWN`, `UNREACHABLE`, …).\nNull when accepted.\n\nA free string rather than an `enum:` on purpose, matching the column beneath it: the\nvocabulary tracks Enovation's 25 error conditions and will grow, and a stored code a\nlater build no longer knows must still read as \"this send was refused\" rather than\nfailing the letter's whole history. Branch on it if you recognise it; render\n`refusalReason` if you do not.\n","example":"RECIPIENT_UNKNOWN"},"refusalReason":{"type":"string","nullable":true,"description":"The Dutch sentence for `refusal`, resolved at read time from the refusal constant so\ncorrecting the wording corrects every historical row at once. Null when accepted, and\nalso when `refusal` names a constant this build no longer has.\n","example":"Deze ontvanger heeft geen ZorgMail-account, of het account is niet actief. Controleer het ZorgMail-adres van de huisarts."}}},"ZorgtrajectListResponse":{"type":"object","required":["content","page","size","totalElements","totalPages"],"properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/ZorgtrajectResponse"},"description":"List of zorgtrajecten for current page"},"page":{"type":"integer","format":"int32","description":"Current page number (0-indexed)","example":0},"size":{"type":"integer","format":"int32","description":"Number of items per page","example":20},"totalElements":{"type":"integer","format":"int64","description":"Total number of zorgtrajecten matching criteria","example":42},"totalPages":{"type":"integer","format":"int32","description":"Total number of pages","example":3}}},"ZorgtrajectResponse":{"type":"object","required":["id","clientId","organizationId","startdatum","verwijzingAanwezig","status","createdAt","updatedAt","hasAppointments","startdatumVergrendeld"],"properties":{"id":{"type":"string","format":"uuid","readOnly":true,"description":"Zorgtraject unique identifier","example":"550e8400-e29b-41d4-a716-446655440000"},"clientId":{"type":"string","format":"uuid","readOnly":true,"description":"Client this zorgtraject belongs to","example":"660e8400-e29b-41d4-a716-446655440001"},"clientName":{"type":"string","readOnly":true,"description":"Client full name","example":"Jan van den Berg"},"name":{"type":"string","maxLength":200,"nullable":true,"description":"Optional descriptive name/title for the zorgtraject","example":"Angststoornis behandeling 2024"},"nummer":{"type":"string","maxLength":36,"nullable":true,"readOnly":true,"description":"Zorgtrajectnummer as a random UUID version 4, as required by the NZa\nZorgprestatiemodel (landelijk uniek). Auto-generated on native create,\nthe UUID supplied verbatim on import, or the one an update replaced it\nwith (`zorgtrajectNummer`). Populates the required GDS801 GGZ Zorgtraject\nblock.\n","example":"3f2504e0-4f89-41d3-9a0c-0305e82c3301"},"organizationId":{"type":"string","format":"uuid","readOnly":true,"description":"Organization this zorgtraject belongs to","example":"770e8400-e29b-41d4-a716-446655440002"},"locationId":{"type":"string","format":"uuid","nullable":true,"description":"Reference to the location for billing purposes.\nThe location provides the AGB code used for billing.\nIf null, the organization's default AGB code is used.\n","example":"880e8400-e29b-41d4-a716-446655440003"},"locationName":{"type":"string","nullable":true,"readOnly":true,"description":"Name of the linked location (denormalized for display)","example":"Vestiging Amsterdam"},"settingId":{"type":"string","format":"uuid","nullable":true,"readOnly":true,"description":"Reference to the unified settings table (billing domain).\nThis is the new source of truth for treatment setting.\n"},"setting":{"$ref":"#/components/schemas/Setting","deprecated":true,"description":"Legacy Setting enum value. Deprecated - use settingId instead.\n\nAbsent when the zorgtraject records no behandelsetting, which only a regime that\ndoes not require one allows — a `JEUGDWET` zorgtraject may have none.\n"},"settingDescription":{"type":"string","readOnly":true,"description":"Human-readable setting description","example":"Monodisciplinair"},"startdatum":{"type":"string","format":"date","description":"Start date of the zorgtraject","example":"2024-01-15"},"einddatum":{"type":"string","format":"date","nullable":true,"description":"End date of the zorgtraject (null if still active)","example":"2024-06-30"},"regiebehandelaarId":{"type":"string","format":"uuid","description":"User ID of the regiebehandelaar — the practitioner who bears\nprofessional responsibility for the zorgtraject. Selected from the\norganization's designated regiebehandelaren.\n\nAbsent when the zorgtraject names none. The regiebehandelaar is a Zvw role, so\nonly a regime that does not require one allows that — a `JEUGDWET` zorgtraject\nmay have none.\n\nA Scrivio user id. Outside the app it can only be matched against the `userId` that getClientBehandelaars returns.\n","example":"880e8400-e29b-41d4-a716-446655440003"},"regiebehandelaarName":{"type":"string","readOnly":true,"description":"Full name of the regiebehandelaar. Absent when `regiebehandelaarId` is.","example":"Dr. Sarah de Vries"},"primairBehandelaarId":{"type":"string","format":"uuid","nullable":true,"readOnly":true,"description":"User ID of the primair behandelaar (dossierverantwoordelijke) — the\npractitioner who carries out the treatment and maintains the dossier.\nNot limited to the client's behandelteam: whoever is chosen joins it when the\nchoice is saved. Null when not yet assigned.\n\nRead-only projection of the currently active period; assign it at\ncreation time or change it via\n`POST /zorgtrajecten/{id}/primair-behandelaar/wijzigen`.\n\nA Scrivio user id. Outside the app it can only be matched against the `userId` that getClientBehandelaars returns.\n","example":"770e8400-e29b-41d4-a716-446655440002"},"primairBehandelaarName":{"type":"string","nullable":true,"readOnly":true,"description":"Full name of the primair behandelaar, or null when unassigned","example":"Jan Jansen"},"zorgvraagtyperingId":{"type":"string","format":"uuid","nullable":true,"readOnly":true,"description":"Link to current active zorgvraagtypering","example":"990e8400-e29b-41d4-a716-446655440004"},"zorgvraagtyperingCode":{"allOf":[{"$ref":"#/components/schemas/ZorgvraagtyperingCode"}],"nullable":true,"readOnly":true,"description":"Current zorgvraagtypering code","example":"ZT08"},"zorgvraagtyperingDescription":{"type":"string","nullable":true,"readOnly":true,"description":"Current zorgvraagtypering description","example":"Psychische aandoening, zeer hoog risico"},"zorgvraagtyperingStartdatum":{"type":"string","format":"date","nullable":true,"readOnly":true,"description":"Start date of current zorgvraagtypering","example":"2024-01-15"},"herijkingCount":{"type":"integer","format":"int32","nullable":true,"readOnly":true,"description":"Number of herijkingen performed on this zorgtraject. Computed for display in the Scrivio app.","example":0},"dsmHoofdgroepCode":{"allOf":[{"$ref":"#/components/schemas/DsmHoofdgroepCode"}],"nullable":true,"readOnly":true,"description":"The DSM hoofdgroep currently recorded on the zorgtraject — the `Diagnosecode`\na gespecialiseerde-ggz declaration states under Diagnosecodelijst `029`.\n\nRead-only projection of the GGZ-profiel period with the latest startdatum;\nrecord it at creation time or append a period via\n`POST /zorgtrajecten/{id}/ggz-profiel/wijzigen`.\n"},"dsmHoofdgroepBetekenis":{"type":"string","nullable":true,"readOnly":true,"description":"Betekenis of the current DSM hoofdgroep, exactly as CL0005-NZA states it","example":"Depressieve stemmingsstoornissen"},"dsmHoofdgroepStartdatum":{"type":"string","format":"date","nullable":true,"readOnly":true,"description":"Start date of the current GGZ-profiel period","example":"2026-01-15"},"voorgesteldeDsmHoofdgroep":{"$ref":"#/components/schemas/VoorgesteldeDsmHoofdgroep"},"dsm5Diagnoses":{"type":"array","readOnly":true,"description":"Structured DSM-5 diagnoses from the official NZa codelist","items":{"$ref":"#/components/schemas/Dsm5DiagnosisSummary"}},"diagnoseVrijeTekst":{"type":"string","nullable":true,"readOnly":true,"description":"Diagnose wording no DSM-5 code expresses — what the retired free-text diagnose periods\ncarried, one line per period, and what a ZPM import whose code resolves to nothing\nrecords. Read-only: there is no write path, and nothing declares from it. The DSM-5\ndiagnosis is `dsm5Diagnoses`.\n"},"ggzType":{"allOf":[{"$ref":"#/components/schemas/GgzType"}],"nullable":true,"readOnly":true,"description":"Which kind of ggz this zorgtraject delivers, and so which diagnosecodelijst\nits declaration carries. Null when the type was never recorded.\n\nRead-only projection of the GGZ-profiel period with the latest startdatum —\nthe type is versioned together with the diagnosis it selects, so it is\nchanged by appending a period via\n`POST /zorgtrajecten/{id}/ggz-profiel/wijzigen`.\n"},"basisGgzProfiel":{"allOf":[{"$ref":"#/components/schemas/BasisGgzProfiel"}],"nullable":true,"readOnly":true,"description":"GB-ggz behandelprofiel, the diagnosis a basis-ggz declaration carries\n(codelijst `033`). Only belongs on a `BASIS_GGZ` trajectory — the write paths\nrefuse to record one on a `GESPECIALISEERDE_GGZ` trajectory.\n\nRead-only projection of the current GGZ-profiel period, like `ggzType`.\n"},"financingRegime":{"allOf":[{"$ref":"#/components/schemas/FinancingRegime"}],"nullable":true,"readOnly":true,"description":"Which financing regime (wettelijk kader) funds this zorgtraject.\n\nNull means the regime was never recorded; such a zorgtraject is validated exactly\nas a `ZVW` one. Stated on create (`CreateZorgtrajectRequest.financingRegime`) or by\nan import, and never changed afterwards.\n"},"careIntensity":{"allOf":[{"$ref":"#/components/schemas/CareIntensity"}],"nullable":true,"description":"Care intensity level for residential billing (verblijfsdagen).\nRequired when the client has VERBLIJF appointment types for proper\nVD code selection. Values A-E correspond to different care levels.\n"},"verwijzingAanwezig":{"type":"boolean","description":"Whether a referral (verwijzing) is present.\n\nWhen `true`, `verwijzerType`, `verwijzerNaam` and `verwijsdatum` are populated,\nand `agbVerwijzer` too unless `verwijstype` is `VERWIJZING_AANWEZIG_ZONDER_AGB` —\nthe write paths enforce it, so the ZPM invoice can render the verwijzer block in\nfull.\n","example":true},"verwijzerType":{"allOf":[{"$ref":"#/components/schemas/VerwijzerType"}],"nullable":true,"description":"Type of referrer. Populated when `verwijzingAanwezig` is true."},"verwijstype":{"allOf":[{"$ref":"#/components/schemas/VerwijstypeCode"}],"nullable":true,"description":"Type verwijzing per Vektis CL0004-NZA, shown on de restitutienota"},"agbVerwijzer":{"type":"string","pattern":"^\\d{8}$","maxLength":8,"nullable":true,"description":"AGB code of the verwijzer. Populated when `verwijzingAanwezig` is true, unless\n`verwijstype` is `VERWIJZING_AANWEZIG_ZONDER_AGB` (Vektis CL0004-NZA 07) — the\ncode that declares this verwijzer has no AGB-code.\n","example":"01234567"},"verwijsdatum":{"type":"string","format":"date","nullable":true,"description":"Date of the referral (verwijsdatum) for GDS801 XML generation.\nPopulated when `verwijzingAanwezig` is true.\n","example":"2024-01-10"},"verwijsbriefDocumentId":{"type":"string","format":"uuid","nullable":true,"description":"Link to verwijsbrief document","example":"aa0e8400-e29b-41d4-a716-446655440005"},"verwijzerNaam":{"type":"string","maxLength":200,"nullable":true,"description":"Name of the referrer (e.g., initials + surname).\nPopulated when `verwijzingAanwezig` is true.\n","example":"REGJ Vijgen"},"verwijzerEmail":{"type":"string","format":"email","maxLength":254,"nullable":true,"description":"Email address of the referrer, used for sending letters via Zivver","example":"huisarts@praktijk.nl"},"status":{"$ref":"#/components/schemas/ZorgtrajectStatus"},"createdAt":{"type":"integer","format":"int64","readOnly":true,"description":"Timestamp when zorgtraject was created (milliseconds since epoch)","example":1705334400000},"updatedAt":{"type":"integer","format":"int64","readOnly":true,"description":"Timestamp when zorgtraject was last updated (milliseconds since epoch)","example":1705420800000},"hasAppointments":{"type":"boolean","readOnly":true,"description":"Whether this zorgtraject has any appointments, cancelled ones included. Kept for clients that predate `earliestAppointmentDate`; new callers should read that field, which answers the same question and also says how far the startdatum may move.","example":false},"earliestAppointmentDate":{"type":"string","format":"date","nullable":true,"readOnly":true,"description":"The date of the zorgtraject's earliest afspraak — its Amsterdam calendar date, cancelled afspraken included — or null when it has none. The startdatum may be corrected to any date on or before it, and is refused (409) beyond it.","example":"2026-04-16"},"startdatumVergrendeld":{"type":"boolean","readOnly":true,"description":"Whether the startdatum is fixed because the insurer already holds a declaration carrying it: a regel in an exported batch that is in it, was sent or was accepted. The insurer pins the startdatum per zorgtrajectnummer, so a change would make every later declaration be rejected, and an update that changes it is refused (409). The zorgtrajectnummer itself is fixed on the same ground. A declaration that was rejected or credited does not count.","example":false}}},"ZorgtrajectStatus":{"type":"string","enum":["ACTIEF","AFGESLOTEN"],"description":"Zorgtraject status:\n- ACTIEF: Active zorgtraject\n- AFGESLOTEN: Closed zorgtraject\n"},"ZorgvraagtyperingCode":{"type":"string","enum":["ZT01","ZT02","ZT03","ZT04","ZT05","ZT06","ZT07","ZT08","ZT10","ZT11","ZT12","ZT13","ZT14","ZT15","ZT16","ZT17","ZT18","ZT19","ZT20","ZT21"],"description":"Zorgvraagtypering codes as defined by NZa, published as Vektis codelijst CL0007-NZA\n(Diagnosecodelijst 031). 20 codes: the numbering jumps ZT08 -> ZT10.\n"},"ZorgvraagtyperingCodeInfo":{"type":"object","required":["code","description"],"properties":{"code":{"$ref":"#/components/schemas/ZorgvraagtyperingCode"},"description":{"type":"string","description":"Official NZa \"Naam zorgvraagtype\" for this code","example":"Psychische aandoening - zeer risicovol/chaotische problematiek"},"hoofdgroep":{"$ref":"#/components/schemas/ZorgvraagtyperingHoofdgroep"},"hoofdgroepDisplayName":{"type":"string","description":"The hoofdgroep exactly as CL0007-NZA states it. Absent for a code that\nis not on the published list.\n","example":"X - Psychische aandoening"}}},"ZorgvraagtyperingCodeListResponse":{"type":"object","required":["codes"],"properties":{"codes":{"type":"array","items":{"$ref":"#/components/schemas/ZorgvraagtyperingCodeInfo"},"description":"All zorgvraagtypering codes"}}},"ZorgvraagtyperingHistoryResponse":{"type":"object","required":["zorgtrajectId","history","herijkingCount"],"properties":{"zorgtrajectId":{"type":"string","format":"uuid","description":"Zorgtraject this history belongs to","example":"550e8400-e29b-41d4-a716-446655440000"},"current":{"$ref":"#/components/schemas/ZorgvraagtyperingResponse"},"history":{"type":"array","items":{"$ref":"#/components/schemas/ZorgvraagtyperingResponse"},"description":"All typeringen ordered by startdatum descending (most recent first)"},"herijkingCount":{"type":"integer","format":"int32","description":"Number of herijkingen performed. Computed for display in the Scrivio app.","example":2}}},"ZorgvraagtyperingHoofdgroep":{"type":"string","enum":["X","Y","Z"],"description":"Hoofdgroep of a zorgvraagtype, as published in Vektis codelijst CL0007-NZA\n(column `Toelichting 1`):\n- X: Psychische aandoening (ZT01-ZT08)\n- Y: psychotische stoornis (ZT10-ZT17)\n- Z: Cognitieve beperking (ZT18-ZT21)\n"},"ZorgvraagtyperingResponse":{"type":"object","required":["id","zorgtrajectId","organizationId","code","codeDescription","startdatum","isHerijking","isActive","createdAt","createdBy","createdByName"],"properties":{"id":{"type":"string","format":"uuid","readOnly":true,"description":"Zorgvraagtypering unique identifier","example":"550e8400-e29b-41d4-a716-446655440000"},"zorgtrajectId":{"type":"string","format":"uuid","readOnly":true,"description":"Zorgtraject this typering belongs to","example":"660e8400-e29b-41d4-a716-446655440001"},"organizationId":{"type":"string","format":"uuid","readOnly":true,"description":"Organization this typering belongs to","example":"770e8400-e29b-41d4-a716-446655440002"},"code":{"$ref":"#/components/schemas/ZorgvraagtyperingCode"},"codeDescription":{"type":"string","readOnly":true,"description":"Official NZa \"Naam zorgvraagtype\" for this code","example":"Psychische aandoening - zeer risicovol/chaotische problematiek"},"hoofdgroep":{"$ref":"#/components/schemas/ZorgvraagtyperingHoofdgroep"},"hoofdgroepDisplayName":{"type":"string","readOnly":true,"description":"The hoofdgroep exactly as CL0007-NZA states it. Absent for a code that\nis not on the published list.\n","example":"X - Psychische aandoening"},"startdatum":{"type":"string","format":"date","description":"Start date of this typering","example":"2024-01-15"},"einddatum":{"type":"string","format":"date","nullable":true,"description":"End date of this typering (null if still active)","example":"2024-06-30"},"isHerijking":{"type":"boolean","description":"Whether this is a herijking (reassessment)","example":false},"previousTyperingId":{"type":"string","format":"uuid","nullable":true,"description":"Link to previous typering (if herijking)","example":"880e8400-e29b-41d4-a716-446655440003"},"herijkingReden":{"type":"string","nullable":true,"description":"The reason recorded with this typering, if any — the herijking's reason on a\nherijking, the correction's on one that was corrected. Named for the column, which\nwas named for the only writer it had when it was added.\n","example":"Cliënt vertoont significante verbetering"},"isActive":{"type":"boolean","readOnly":true,"description":"Whether this is the current active typering (einddatum is null)","example":true},"createdAt":{"type":"integer","format":"int64","readOnly":true,"description":"Timestamp when typering was created (milliseconds since epoch)","example":1705334400000},"createdBy":{"type":"string","format":"uuid","readOnly":true,"description":"User ID who created this typering. A Scrivio user id. Outside the app it can only be matched against the `userId` that getClientBehandelaars returns.","example":"990e8400-e29b-41d4-a716-446655440004"},"createdByName":{"type":"string","readOnly":true,"description":"Name of the user who created this typering","example":"Dr. Sarah de Vries"}}}},"parameters":{"ClientIdPath":{"name":"clientId","in":"path","description":"Client UUID","required":true,"schema":{"type":"string","format":"uuid"}},"FormIdPath":{"name":"formId","in":"path","description":"Form UUID","required":true,"schema":{"type":"string","format":"uuid"}},"FormSubmissionIdPath":{"name":"submissionId","in":"path","description":"Form Submission UUID","required":true,"schema":{"type":"string","format":"uuid"}}},"responses":{"BadRequest":{"description":"Invalid request data","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"Forbidden":{"description":"Forbidden - insufficient permissions","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"NotFound":{"description":"Not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"Unauthorized":{"description":"Unauthorized - missing or invalid authentication token","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}},"ValidationError":{"description":"Validation error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetail"}}}}},"securitySchemes":{"firebaseAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer token. An API-koppeling sends an access token from https://auth.scrivio.nl obtained with the OAuth 2.0 client_credentials grant; the Scrivio app itself sends a Firebase ID token."}}}}