App Error

Your application server has encountered an error
Server Log
Meteor.settings.FHIR_URL https://integracije-test.infonet.si/api/firely Meteor.settings.FHIR_URL https://integracije-test.infonet.si/api/firely (node:1585837) Warning: The `util._extend` API is deprecated. Please use Object.assign() instead. (Use `node --trace-warnings ...` to show where the warning was created) [mailgun] [info] Webhooks are enabled. [Fri Mar 27 2026 09:14:50 GMT+0100 (Central European Standard Time)] [push] initialize FCM. [Fri Mar 27 2026 09:14:51 GMT+0100 (Central European Standard Time)] [transcoder] Starting up TRANSCODER WORKER! [Fri Mar 27 2026 09:14:51 GMT+0100 (Central European Standard Time)] [transcoder] FFmpeg version detected 4.2.7-0ubuntu0.1 Job server started [Fri Mar 27 2026 09:14:52 GMT+0100 (Central European Standard Time)] INITIALIZE TINCANJS [endpoint: http://10.10.10.108/data/xAPI, username: 12a84528caec28fd7dae26cfe4630b55289b64c8, password: 7098614799548fdb37ff74a8dac4685e725d0268] [Fri Mar 27 2026 09:14:52 GMT+0100 (Central European Standard Time)] config.directory enabled! Ensuring FHIR subscription for endpoint: https://meteor.mitv.si/fhir-webhook No active subscription found, creating a new one... Subscription created with ID 88e6d3a4-6a91-4e69-b214-0d048db97509, status = active, criteria = Patient Ensuring FHIR subscription for endpoint: https://meteor.mitv.si/fhir-webhook Subscription already exists with ID af881854-07c0-42f3-8a24-95166167b2d6, status = active, criteria Encounter?_profile=https://nmp.ezdrav.si/fhir/StructureDefinition/NMPEncounter Ensuring FHIR subscription for endpoint: https://meteor.mitv.si/fhir-webhook No active subscription found, creating a new one... Subscription created with ID 1ae43d8c-8570-438c-acc8-03909fc9010f, status = active, criteria = RelatedPerson Ensuring FHIR subscription for endpoint: https://meteor.mitv.si/fhir-webhook Subscription already exists with ID 0dff4331-d1ec-4c11-8889-bcf779a5d5c7, status = active, criteria ClinicalImpression?_profile=https://nmp.ezdrav.si/fhir/StructureDefinition/NMPClinicalImpression Ensuring FHIR subscription for endpoint: https://meteor.mitv.si/fhir-webhook Subscription already exists with ID 132cf784-20f2-46b1-8e27-a1d956b4423e, status = active, criteria Observation?_profile=https://nmp.ezdrav.si/fhir/StructureDefinition/NMPObservation [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] [uploader] tmp /home/FCS_Playlist/tmp/ [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] [formidable] UPLOAD TMP: /home/FCS_Playlist/tmp/ [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] [worker] Worker environment variables not set. [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] [worker] Starting up worker! [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] [worker] Using local JobQueue. [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] miJobs_RECORDER enabled [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] Load application specific methods and logic. - EXPORT to hospitals, Hipokrat, Urgis [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] nodeId: 60b07bdc349ae273faa66c2f85a71b7f22b1b9c6e56caa4828d78f6579669396 already exists [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] Instance is running in MODE: undefined Started your app. App running at: https://meteor.mitv.si [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] [sfu] got heartbeat [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] [sfu] clearCalls... [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] [sfu] ws opened - sync room data [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] [sfu] SFU response received. [Fri Mar 27 2026 09:14:53 GMT+0100 (Central European Standard Time)] [sfu] No rooms [Fri Mar 27 2026 09:14:54 GMT+0100 (Central European Standard Time)] [sfu] got heartbeat migrated userCache of 114 docs in assets matching {"content_type":"PROFILE"}. It took 2359ms [Fri Mar 27 2026 09:14:55 GMT+0100 (Central European Standard Time)] [connections] user connected uid: undefined cid: rihBg4hbRNgx55i2o [Fri Mar 27 2026 09:14:55 GMT+0100 (Central European Standard Time)] [LRS] SEND Statement CUSTOM connected. [uid: undefined, asset: rihBg4hbRNgx55i2o] [Fri Mar 27 2026 09:14:55 GMT+0100 (Central European Standard Time)] [Error] LAR ASSET Unknown LAR asset: rihBg4hbRNgx55i2o [Fri Mar 27 2026 09:14:55 GMT+0100 (Central European Standard Time)] [login] userId: qkmKNoZY2bxZraBAF type: resume cid: rihBg4hbRNgx55i2o [Fri Mar 27 2026 09:14:55 GMT+0100 (Central European Standard Time)] [LRS] SEND Statement LOG IN. [uid: qkmKNoZY2bxZraBAF] [Fri Mar 27 2026 09:14:56 GMT+0100 (Central European Standard Time)] [user: qkmKNoZY2bxZraBAF] COUNT ASSET [asset: 65aSCaCS33LPRiSPq] [Fri Mar 27 2026 09:14:56 GMT+0100 (Central European Standard Time)] [LRS] SEND LRS Statement INTERACTED. [uid: qkmKNoZY2bxZraBAF, asset: 65aSCaCS33LPRiSPq] [Fri Mar 27 2026 09:14:56 GMT+0100 (Central European Standard Time)] [LRS] [user: qkmKNoZY2bxZraBAF] LAR ASSET [LarAsset: 65aSCaCS33LPRiSPq, record_status: watched] [Fri Mar 27 2026 09:14:56 GMT+0100 (Central European Standard Time)] [saveAsset] [user: qkmKNoZY2bxZraBAF] SAVE ASSET [asset: L5QkwLjYfJYujnuq8] [Fri Mar 27 2026 09:15:04 GMT+0100 (Central European Standard Time)] [sfu] got heartbeat [Fri Mar 27 2026 09:15:14 GMT+0100 (Central European Standard Time)] [sfu] got heartbeat [Fri Mar 27 2026 09:15:24 GMT+0100 (Central European Standard Time)] [sfu] got heartbeat [Fri Mar 27 2026 09:15:34 GMT+0100 (Central European Standard Time)] [sfu] got heartbeat [Fri Mar 27 2026 09:15:43 GMT+0100 (Central European Standard Time)] [user: qkmKNoZY2bxZraBAF] COUNT ASSET [asset: JdvvBAjNivE94wL6Q] [Fri Mar 27 2026 09:15:43 GMT+0100 (Central European Standard Time)] [LRS] SEND Statement ATTENDED. [uid: qkmKNoZY2bxZraBAF, asset: 65aSCaCS33LPRiSPq] [Fri Mar 27 2026 09:15:43 GMT+0100 (Central European Standard Time)] [LRS] SEND LRS Statement INTERACTED. [uid: qkmKNoZY2bxZraBAF, asset: JdvvBAjNivE94wL6Q] [Fri Mar 27 2026 09:15:43 GMT+0100 (Central European Standard Time)] [LRS] [user: qkmKNoZY2bxZraBAF] LAR ASSET [LarAsset: JdvvBAjNivE94wL6Q, record_status: watched] [Fri Mar 27 2026 09:15:43 GMT+0100 (Central European Standard Time)] [saveAsset] [user: qkmKNoZY2bxZraBAF] SAVE ASSET [asset: 65EiMkBmJ4zPo9MoS] [Fri Mar 27 2026 09:15:44 GMT+0100 (Central European Standard Time)] [sfu] got heartbeat Received FHIR notification: { "resourceType": "RelatedPerson", "id": "75f18ae1-e7c0-4330-b5c1-7ce756b28f7b", "meta": { "versionId": "03ee71af-2650-4f96-856a-febf7706c25a", "lastUpdated": "2026-03-27T08:06:43.495+00:00" }, "patient": { "reference": "Patient/24eff7b5-9d72-4fd4-884a-25b9047dbef0" }, "telecom": [ { "system": "phone", "value": "0038640000000" } ] } RelatedPerson 75f18ae1-e7c0-4330-b5c1-7ce756b28f7b was created or updated meteor://💻app/app/app.js:53649 const eoc = (_result$entry$ = result.entry[0]) === null || _result$entry$ === void 0 ? void 0 : _result$entry$.resource; ^ TypeError: Cannot read properties of undefined (reading '0') at updateRelatedPerson (server/fhir-save.js:365:27) at processTicksAndRejections (node:internal/process/task_queues:105:5) at server/fhir-save.js:172:7 Node.js v22.22.0 Exited with code: 1 Your application is crashing. Waiting for file change.
Fix the error in your code and save your files. Once your server is running without errors, then reload this page.