ESM - Przykłady
Przykłady pokazują model kanoniczny ESM dla kartoteki środka trwałego, alokacji, źródła finansowania oraz dokumentu ruchu majątku. Format zgodny z konwencjami API.ERP: camelCase w JSON, identifier z system, a pola słownikowe jako CodeableConcept.
1. FixedAsset
{
"resourceType": "FixedAsset",
"id": "fa-2235",
"identifier": [
{ "system": "https://api-erp.kamsoft.pl/ns/company", "value": "ST/2024/2235" },
{ "system": "https://api-erp.kamsoft.pl/ns/barcode", "value": "5901234567890" }
],
"name": "Laptop Dell Latitude 5540",
"status": {
"coding": [
{ "system": "https://api-erp.kamsoft.pl/ns/asset-status", "code": "accepted", "display": "Przyjęty" }
]
},
"type": {
"coding": [
{ "system": "https://api-erp.kamsoft.pl/ns/asset-type", "code": "equipment", "display": "Wyposażenie" }
]
},
"quantity": 1,
"acquisitionDate": "2024-06-01",
"acceptanceDate": "2024-06-15",
"initialValueBalance": { "value": 4500.00, "currency": "PLN" },
"bookValueBalance": { "value": 3937.50, "currency": "PLN" }
}
2. FixedAssetAllocation
[
{
"resourceType": "FixedAssetAllocation",
"subject": { "reference": "FixedAsset/fa-krzesla", "display": "Krzesła biurowe (50 szt.)" },
"dimension": {
"coding": [
{ "system": "https://api-erp.kamsoft.pl/ns/allocation-dimension", "code": "location", "display": "Lokalizacja" }
]
},
"target": { "reference": "Location/budynek-a", "display": "Budynek A" },
"quantity": 30
},
{
"resourceType": "FixedAssetAllocation",
"subject": { "reference": "FixedAsset/fa-krzesla", "display": "Krzesła biurowe (50 szt.)" },
"dimension": {
"coding": [
{ "system": "https://api-erp.kamsoft.pl/ns/allocation-dimension", "code": "cost-center", "display": "Ośrodek kosztów" }
]
},
"target": { "reference": "Group/cks-it", "display": "IT" },
"weight": 60
}
]
3. FundingSource
{
"resourceType": "FundingSource",
"id": "fs-nfz",
"identifier": [
{ "system": "https://api-erp.kamsoft.pl/ns/company", "value": "NFZ-2026" }
],
"name": "Narodowy Fundusz Zdrowia",
"type": {
"coding": [
{ "system": "https://api-erp.kamsoft.pl/ns/funding-source-type", "code": "nfz", "display": "NFZ" }
]
}
}
4. FixedAssetDocument
{
"resourceType": "FixedAssetDocument",
"id": "fad-zm-1001",
"identifier": [
{ "system": "https://api-erp.kamsoft.pl/ns/company", "value": "ZM/2025/1001" }
],
"type": {
"coding": [
{ "system": "https://api-erp.kamsoft.pl/ns/fixed-asset-document-type", "code": "location-change", "display": "Zmiana miejsca" }
]
},
"issueDate": "2025-03-10",
"status": {
"coding": [
{ "system": "https://api-erp.kamsoft.pl/ns/fixed-asset-document-status", "code": "open", "display": "Otwarty" }
]
},
"externalWorkflowStatus": {
"system": "EOD",
"status": {
"coding": [
{ "system": "https://api-erp.kamsoft.pl/ns/document-workflow-status", "code": "in_progress", "display": "W toku" }
]
}
},
"position": [
{
"positionNo": 1,
"fixedAsset": { "reference": "FixedAsset/fa-2235", "display": "Laptop Dell Latitude 5540" },
"fromLocation": { "reference": "Location/oddzial-a", "display": "Oddział A" },
"toLocation": { "reference": "Location/oddzial-b", "display": "Oddział B" },
"quantity": 1
}
]
}
5. Alokacja finansowania z umową
{
"resourceType": "FixedAssetAllocation",
"subject": { "reference": "FixedAsset/fa-tomograf", "display": "Tomograf XYZ" },
"dimension": {
"coding": [
{ "system": "https://api-erp.kamsoft.pl/ns/allocation-dimension", "code": "funding-source", "display": "Źródło finansowania" }
]
},
"target": { "reference": "FundingSource/fs-nfz", "display": "Narodowy Fundusz Zdrowia" },
"initialValue": { "value": 5000.00, "currency": "PLN" },
"agreement": { "reference": "Document/doc-upz-3333-2026", "display": "UPZ/3333/2026" }
}