Add facilities, contracts, orders, value lists, audit log, and desktop app modules

Extends omsorgCore with full CRUD for Facility/Contract/Order plus
configurable value lists and an audit trail, and wires the omsorgapp
frontend up to the new facilities, settings, and audit-log modules;
includes a sidebar active-nav-item highlight.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Felix Kemmler
2026-08-08 23:29:16 +02:00
co-authored by Claude Sonnet 5
parent ee74ed65f5
commit e9e96a57dc
528 changed files with 96814 additions and 456 deletions
@@ -0,0 +1,253 @@
# OmsorgCoreClient\OrdersApi
All URIs are relative to http://localhost, except if the operation defines another base path.
| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
| [**apiOrdersGet()**](OrdersApi.md#apiOrdersGet) | **GET** /api/orders | |
| [**apiOrdersIdGet()**](OrdersApi.md#apiOrdersIdGet) | **GET** /api/orders/{id} | |
| [**apiOrdersIdPut()**](OrdersApi.md#apiOrdersIdPut) | **PUT** /api/orders/{id} | |
| [**apiOrdersPost()**](OrdersApi.md#apiOrdersPost) | **POST** /api/orders | |
## `apiOrdersGet()`
```php
apiOrdersGet($search, $status_id, $facility_id, $page, $page_size): \OmsorgCoreClient\Model\OrderResponsePagedResponse
```
### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\OrdersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$search = 'search_example'; // string
$status_id = 'status_id_example'; // string
$facility_id = 'facility_id_example'; // string
$page = 1; // int
$page_size = 20; // int
try {
$result = $apiInstance->apiOrdersGet($search, $status_id, $facility_id, $page, $page_size);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrdersApi->apiOrdersGet: ', $e->getMessage(), PHP_EOL;
}
```
### Parameters
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **search** | **string**| | [optional] |
| **status_id** | **string**| | [optional] |
| **facility_id** | **string**| | [optional] |
| **page** | **int**| | [optional] [default to 1] |
| **page_size** | **int**| | [optional] [default to 20] |
### Return type
[**\OmsorgCoreClient\Model\OrderResponsePagedResponse**](../Model/OrderResponsePagedResponse.md)
### Authorization
[Bearer](../../README.md#Bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: `text/plain`, `application/json`, `text/json`
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
## `apiOrdersIdGet()`
```php
apiOrdersIdGet($id): \OmsorgCoreClient\Model\OrderResponse
```
### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\OrdersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 'id_example'; // string
try {
$result = $apiInstance->apiOrdersIdGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrdersApi->apiOrdersIdGet: ', $e->getMessage(), PHP_EOL;
}
```
### Parameters
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **id** | **string**| | |
### Return type
[**\OmsorgCoreClient\Model\OrderResponse**](../Model/OrderResponse.md)
### Authorization
[Bearer](../../README.md#Bearer)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: `text/plain`, `application/json`, `text/json`
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
## `apiOrdersIdPut()`
```php
apiOrdersIdPut($id, $update_order_request): \OmsorgCoreClient\Model\OrderResponse
```
### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\OrdersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 'id_example'; // string
$update_order_request = new \OmsorgCoreClient\Model\UpdateOrderRequest(); // \OmsorgCoreClient\Model\UpdateOrderRequest
try {
$result = $apiInstance->apiOrdersIdPut($id, $update_order_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrdersApi->apiOrdersIdPut: ', $e->getMessage(), PHP_EOL;
}
```
### Parameters
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **id** | **string**| | |
| **update_order_request** | [**\OmsorgCoreClient\Model\UpdateOrderRequest**](../Model/UpdateOrderRequest.md)| | [optional] |
### Return type
[**\OmsorgCoreClient\Model\OrderResponse**](../Model/OrderResponse.md)
### Authorization
[Bearer](../../README.md#Bearer)
### HTTP request headers
- **Content-Type**: `application/json`, `text/json`, `application/*+json`
- **Accept**: `text/plain`, `application/json`, `text/json`
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)
## `apiOrdersPost()`
```php
apiOrdersPost($create_order_request): \OmsorgCoreClient\Model\OrderResponse
```
### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: Bearer
$config = OmsorgCoreClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OmsorgCoreClient\Api\OrdersApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$create_order_request = new \OmsorgCoreClient\Model\CreateOrderRequest(); // \OmsorgCoreClient\Model\CreateOrderRequest
try {
$result = $apiInstance->apiOrdersPost($create_order_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrdersApi->apiOrdersPost: ', $e->getMessage(), PHP_EOL;
}
```
### Parameters
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
| **create_order_request** | [**\OmsorgCoreClient\Model\CreateOrderRequest**](../Model/CreateOrderRequest.md)| | [optional] |
### Return type
[**\OmsorgCoreClient\Model\OrderResponse**](../Model/OrderResponse.md)
### Authorization
[Bearer](../../README.md#Bearer)
### HTTP request headers
- **Content-Type**: `application/json`, `text/json`, `application/*+json`
- **Accept**: `text/plain`, `application/json`, `text/json`
[[Back to top]](#) [[Back to API list]](../../README.md#endpoints)
[[Back to Model list]](../../README.md#models)
[[Back to README]](../../README.md)