From bfe6ebf5af59677020d3ead65272f0fb87b29d9c Mon Sep 17 00:00:00 2001 From: Steffen Date: Wed, 14 Oct 2026 11:37:12 +0200 Subject: [PATCH] Implement owned Profile schema and atomic authorized lifecycle --- HealthApp.slnx | 2 +- .../_Sil3ntDragon_2026-10-14_11_33_57.trx | 1219 +++++++++++++++ .../_Sil3ntDragon_2026-10-14_11_35_56.trx | 1326 +++++++++++++++++ ImplementationPlan/implementation-log.md | 4 + .../AuthorizedPatientContext.cs | 22 + .../CreatePatientRequest.cs | 14 + src/HealthApp.Contracts/PatientDto.cs | 3 + .../UpdatePatientRequest.cs | 11 + .../HealthApp.Infrastructure.csproj | 4 + .../RequestTransaction.cs | 34 + .../Controllers/PatientController.cs | 29 + src/HealthApp/HealthApp.csproj | 2 +- src/HealthApp/Program.cs | 21 +- src/HealthApp/Security/AccessPolicy.cs | 12 + src/Modules/Profile/AssemblyInfo.cs | 2 + src/Modules/Profile/Domain/Patient.cs | 12 + .../Profile/Migrations/001-profile.sql | 7 + .../Profile/Persistence/PatientDbContext.cs | 24 + src/Modules/Profile/Profile.csproj | 4 + src/Modules/Profile/ProfileFacade.cs | 40 + .../CreatePatientTests.cs | 99 ++ .../PatientApiFixture.cs | 65 + .../ProfileLifecycleTests.cs | 32 + .../UpdatePatientTests.cs | 71 + 24 files changed, 3056 insertions(+), 3 deletions(-) create mode 100644 ImplementationPlan/evidence/b-trx/_Sil3ntDragon_2026-10-14_11_33_57.trx create mode 100644 ImplementationPlan/evidence/b-trx/_Sil3ntDragon_2026-10-14_11_35_56.trx create mode 100644 src/HealthApp.Contracts/AuthorizedPatientContext.cs create mode 100644 src/HealthApp.Contracts/CreatePatientRequest.cs create mode 100644 src/HealthApp.Contracts/PatientDto.cs create mode 100644 src/HealthApp.Contracts/UpdatePatientRequest.cs create mode 100644 src/HealthApp.Infrastructure/HealthApp.Infrastructure.csproj create mode 100644 src/HealthApp.Infrastructure/RequestTransaction.cs create mode 100644 src/HealthApp/Controllers/PatientController.cs create mode 100644 src/HealthApp/Security/AccessPolicy.cs create mode 100644 src/Modules/Profile/AssemblyInfo.cs create mode 100644 src/Modules/Profile/Domain/Patient.cs create mode 100644 src/Modules/Profile/Migrations/001-profile.sql create mode 100644 src/Modules/Profile/Persistence/PatientDbContext.cs create mode 100644 src/Modules/Profile/Profile.csproj create mode 100644 src/Modules/Profile/ProfileFacade.cs create mode 100644 tests/HealthApp.AcceptanceTests/CreatePatientTests.cs create mode 100644 tests/HealthApp.AcceptanceTests/PatientApiFixture.cs create mode 100644 tests/HealthApp.AcceptanceTests/ProfileLifecycleTests.cs create mode 100644 tests/HealthApp.AcceptanceTests/UpdatePatientTests.cs diff --git a/HealthApp.slnx b/HealthApp.slnx index a31f78e..aa5aa84 100644 --- a/HealthApp.slnx +++ b/HealthApp.slnx @@ -1 +1 @@ - + diff --git a/ImplementationPlan/evidence/b-trx/_Sil3ntDragon_2026-10-14_11_33_57.trx b/ImplementationPlan/evidence/b-trx/_Sil3ntDragon_2026-10-14_11_33_57.trx new file mode 100644 index 0000000..4729f0f --- /dev/null +++ b/ImplementationPlan/evidence/b-trx/_Sil3ntDragon_2026-10-14_11_33_57.trx @@ -0,0 +1,1219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Assert.Equal() Failure: Strings differ + ↓ (pos 0) +Expected: "/api/patients/d6ec802a-2972-4dca-96b2-831"··· +Actual: "http://127.0.0.1:44789/api/patients/d6ec8"··· + ↑ (pos 0) + at PatientProfile.AcceptanceTests.CreatePatientTests.Valid_profile_is_assigned_an_identifier_and_can_be_retrieved_after_restart() in /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/tests/HealthApp.AcceptanceTests/CreatePatientTests.cs:line 29 +--- End of stack trace from previous location --- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.5+1b188a7b0a (64-bit .NET 10.0.0) +[xUnit.net 00:00:00.04] Discovering: HealthApp.AcceptanceTests +[xUnit.net 00:00:00.07] Discovered: HealthApp.AcceptanceTests +[xUnit.net 00:00:00.08] Starting: HealthApp.AcceptanceTests +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {3f9a161e-3795-465b-8164-e28fcb56a47c} with creation date 2026-10-14 09:33:57Z, activation date 2026-10-14 09:33:57Z, and expiration date 2027-01-12 09:33:57Z. +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {fe553868-d5c0-4ee6-ba24-672ac7e227b7} with creation date 2026-10-14 09:33:57Z, activation date 2026-10-14 09:33:57Z, and expiration date 2027-01-12 09:33:57Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {3f9a161e-3795-465b-8164-e28fcb56a47c} may be persisted to storage in unencrypted form. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {fe553868-d5c0-4ee6-ba24-672ac7e227b7} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-1b7497cd-0f90-4879-99d9-79bb93746d3f/key-fe553868-d5c0-4ee6-ba24-672ac7e227b7.xml'. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-f3306a5b-21dd-4794-b52e-96096f2e2cf5/key-3f9a161e-3795-465b-8164-e28fcb56a47c.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?activityCondition=Unsupported - - - +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://localhost/api/authentication/login - application/json;+charset=utf-8 65 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing ObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ProblemDetails'. +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {d3facfb4-9739-47f0-a165-1aa3e53b67ca} with creation date 2026-10-14 09:33:57Z, activation date 2026-10-14 09:33:57Z, and expiration date 2027-01-12 09:33:57Z. +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {e20e7f60-79bb-4dd8-ae89-7e9a8ed3c653} with creation date 2026-10-14 09:33:57Z, activation date 2026-10-14 09:33:57Z, and expiration date 2027-01-12 09:33:57Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {e20e7f60-79bb-4dd8-ae89-7e9a8ed3c653} may be persisted to storage in unencrypted form. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {d3facfb4-9739-47f0-a165-1aa3e53b67ca} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-6a1a1472-faea-4026-b76f-16b8b41f7b43/key-d3facfb4-9739-47f0-a165-1aa3e53b67ca.xml'. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-0e16fb66-07e7-464c-ba6a-760936a513e3/key-e20e7f60-79bb-4dd8-ae89-7e9a8ed3c653.xml'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 16.6107ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?activityCondition=Unsupported - 400 - application/problem+json;+charset=utf-8 48.7780ms +info: Microsoft.Hosting.Lifetime[14] + Now listening on: http://127.0.0.1:44789 +info: Microsoft.Hosting.Lifetime[14] + Now listening on: http://127.0.0.1:43279 +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 39.7512ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://localhost/api/authentication/login - 200 - application/json;+charset=utf-8 55.3198ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://localhost/api/authentication/login - application/json;+charset=utf-8 60 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing UnauthorizedObjectResult, writing value of type '<>f__AnonymousType0`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 29.5643ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://localhost/api/authentication/login - 401 - application/json;+charset=utf-8 30.7013ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://localhost/api/authentication/login - application/json;+charset=utf-8 41 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing UnauthorizedObjectResult, writing value of type '<>f__AnonymousType0`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 27.7184ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://localhost/api/authentication/login - 401 - application/json;+charset=utf-8 29.3592ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/professionals/me/patients - - - +info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2] + Authorization failed. These requirements were not met: + RolesAuthorizationRequirement:User.IsInRole must be true for one of the following roles: (HealthcareProfessional) + ClaimsAuthorizationRequirement:Claim.Type=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier +info: Microsoft.AspNetCore.Authentication.BearerToken.BearerTokenHandler[12] + AuthenticationScheme: Bearer was challenged. +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/professionals/me/patients - 401 - - 2.1917ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {21d8af1c-74a1-46a5-b479-7f5f1ce0a162} with creation date 2026-10-14 09:33:57Z, activation date 2026-10-14 09:33:57Z, and expiration date 2027-01-12 09:33:57Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {21d8af1c-74a1-46a5-b479-7f5f1ce0a162} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-acd96b70-2034-4c5e-8202-30a5b57c33f1/key-21d8af1c-74a1-46a5-b479-7f5f1ce0a162.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Unsupported - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing ObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 2.4332ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Unsupported - 400 - application/problem+json;+charset=utf-8 4.1087ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {fdafbb6d-e016-47d4-b4a0-ccb42e3a8be2} with creation date 2026-10-14 09:33:57Z, activation date 2026-10-14 09:33:57Z, and expiration date 2027-01-12 09:33:57Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {fdafbb6d-e016-47d4-b4a0-ccb42e3a8be2} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-612f47a4-65e3-49f7-b8b2-a128fd8ded63/key-fdafbb6d-e016-47d4-b4a0-ccb42e3a8be2.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Home&activityCondition=DuringActivity - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 3.7772ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Home&activityCondition=DuringActivity - 200 - application/json;+charset=utf-8 4.9913ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {b9c62785-ab2a-4590-9b37-f6952719adee} with creation date 2026-10-14 09:33:57Z, activation date 2026-10-14 09:33:57Z, and expiration date 2027-01-12 09:33:57Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {b9c62785-ab2a-4590-9b37-f6952719adee} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-8a980fa3-9260-4612-aff6-fa8f74d2fbcb/key-b9c62785-ab2a-4590-9b37-f6952719adee.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Home&activityCondition=AfterActivity - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 1.1093ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Home&activityCondition=AfterActivity - 200 - application/json;+charset=utf-8 2.1628ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {d9c6a80f-8ad2-452e-a624-e515316cfb51} with creation date 2026-10-14 09:33:57Z, activation date 2026-10-14 09:33:57Z, and expiration date 2027-01-12 09:33:57Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {d9c6a80f-8ad2-452e-a624-e515316cfb51} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-8be13b14-f20a-49cb-9eee-cab65c9ad189/key-d9c6a80f-8ad2-452e-a624-e515316cfb51.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 0.6697ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance - 200 - application/json;+charset=utf-8 1.9363ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:43279/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {82f77d37-1deb-49c8-b674-f1ef1c4cfc7d} with creation date 2026-10-14 09:33:57Z, activation date 2026-10-14 09:33:57Z, and expiration date 2027-01-12 09:33:57Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {82f77d37-1deb-49c8-b674-f1ef1c4cfc7d} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-fbf06e42-7ec8-465c-b1a6-f4b9d44e4620/key-82f77d37-1deb-49c8-b674-f1ef1c4cfc7d.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Home - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 0.886ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Home - 200 - application/json;+charset=utf-8 2.1325ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 37.7126ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 37.7313ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:43279/api/authentication/login - 200 - application/json;+charset=utf-8 39.9356ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - 200 - application/json;+charset=utf-8 39.9447ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/patients - application/json;+charset=utf-8 26 +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 PUT http://127.0.0.1:43279/api/patients/f8b57b95-57ca-497d-be3c-7fc504a92a9e - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Update", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Update(System.Guid, HealthApp.Contracts.UpdatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 5.6343ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/patients - 400 - application/problem+json;+charset=utf-8 27.9233ms +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {3a193a17-f358-40bd-8110-2d9405267d0e} with creation date 2026-10-14 09:33:57Z, activation date 2026-10-14 09:33:57Z, and expiration date 2027-01-12 09:33:57Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {3a193a17-f358-40bd-8110-2d9405267d0e} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-22219c77-135f-4c6d-a78c-a40932d5f67a/key-3a193a17-f358-40bd-8110-2d9405267d0e.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Unknown - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 0.6241ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Unknown - 200 - application/json;+charset=utf-8 1.7967ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.2312ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - 200 - application/json;+charset=utf-8 29.8901ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/patients - application/json;+charset=utf-8 40 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 1.7756ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/patients - 400 - application/problem+json;+charset=utf-8 2.6610ms +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing ObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ProblemDetails'. +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Update (HealthApp) in 74.3766ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 PUT http://127.0.0.1:43279/api/patients/f8b57b95-57ca-497d-be3c-7fc504a92a9e - 404 - application/problem+json;+charset=utf-8 92.2731ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:43279/api/patients/f8b57b95-57ca-497d-be3c-7fc504a92a9e - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing ObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 4.5034ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:43279/api/patients/f8b57b95-57ca-497d-be3c-7fc504a92a9e - 404 - application/problem+json;+charset=utf-8 10.3449ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:43279/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {c954c38f-4b4b-4501-ae04-a592bf098574} with creation date 2026-10-14 09:33:57Z, activation date 2026-10-14 09:33:57Z, and expiration date 2027-01-12 09:33:57Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {c954c38f-4b4b-4501-ae04-a592bf098574} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-3bff3744-d086-4eb6-8352-01b0c9620c9d/key-c954c38f-4b4b-4501-ae04-a592bf098574.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.1148ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - 200 - application/json;+charset=utf-8 28.2641ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Other - - - +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/patients - application/json;+charset=utf-8 28 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 1.2297ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/patients - 400 - application/problem+json;+charset=utf-8 1.7693ms +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 0.7417ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Other - 200 - application/json;+charset=utf-8 2.0858ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.7944ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:43279/api/authentication/login - 200 - application/json;+charset=utf-8 28.9541ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:43279/api/patients - application/json;+charset=utf-8 86 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 29.9434ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - 200 - application/json;+charset=utf-8 30.0498ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/patients - application/json;+charset=utf-8 38 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 0.3206ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/patients - 400 - application/problem+json;+charset=utf-8 0.8734ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.6012ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - 200 - application/json;+charset=utf-8 28.7436ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/patients - application/json;+charset=utf-8 41 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 0.9861ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/patients - 400 - application/problem+json;+charset=utf-8 1.4876ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {87a75b01-fac8-49cb-8825-1b877ead52c8} with creation date 2026-10-14 09:33:57Z, activation date 2026-10-14 09:33:57Z, and expiration date 2027-01-12 09:33:57Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {87a75b01-fac8-49cb-8825-1b877ead52c8} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-2993f9ef-2cd7-426c-82f9-3b25ab5b7530/key-87a75b01-fac8-49cb-8825-1b877ead52c8.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Clinic - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 0.6555ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Clinic - 200 - application/json;+charset=utf-8 1.9357ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 29.7447ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - 200 - application/json;+charset=utf-8 29.8941ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/patients - application/json;+charset=utf-8 45 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 0.3162ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/patients - 400 - application/problem+json;+charset=utf-8 0.7941ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedAtActionResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 100.2143ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:43279/api/patients - 201 - application/json;+charset=utf-8 103.9019ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 PUT http://127.0.0.1:43279/api/patients/f3a619e1-638e-41e9-80f4-0a6205119b24 - application/json;+charset=utf-8 44 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Update", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Update(System.Guid, HealthApp.Contracts.UpdatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Update (HealthApp) in 0.6562ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 PUT http://127.0.0.1:43279/api/patients/f3a619e1-638e-41e9-80f4-0a6205119b24 - 400 - application/problem+json;+charset=utf-8 1.1704ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:43279/api/patients/f3a619e1-638e-41e9-80f4-0a6205119b24 - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.5024ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - 200 - application/json;+charset=utf-8 28.6399ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/patients - application/json;+charset=utf-8 53 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 1.1075ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/patients - 400 - application/problem+json;+charset=utf-8 1.4883ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 37.0914ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:43279/api/patients/f3a619e1-638e-41e9-80f4-0a6205119b24 - 200 - application/json;+charset=utf-8 37.3532ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:43279/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.3114ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - 200 - application/json;+charset=utf-8 28.4730ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/patients - application/json;+charset=utf-8 50 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 0.3828ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/patients - 400 - application/problem+json;+charset=utf-8 0.8861ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 27.634ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:43279/api/authentication/login - 200 - application/json;+charset=utf-8 27.7734ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:43279/api/patients - application/json;+charset=utf-8 86 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedAtActionResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 3.9268ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:43279/api/patients - 201 - application/json;+charset=utf-8 4.1497ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 PUT http://127.0.0.1:43279/api/patients/ca23b98e-7d51-4f85-b039-6106299f1d87 - application/json;+charset=utf-8 46 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Update", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Update(System.Guid, HealthApp.Contracts.UpdatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Update (HealthApp) in 0.3068ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 PUT http://127.0.0.1:43279/api/patients/ca23b98e-7d51-4f85-b039-6106299f1d87 - 400 - application/problem+json;+charset=utf-8 0.6842ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:43279/api/patients/ca23b98e-7d51-4f85-b039-6106299f1d87 - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 1.2942ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:43279/api/patients/ca23b98e-7d51-4f85-b039-6106299f1d87 - 200 - application/json;+charset=utf-8 1.4703ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:43279/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.081ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - 200 - application/json;+charset=utf-8 28.2173ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/patients - application/json;+charset=utf-8 1 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 1.0692ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/patients - 400 - application/problem+json;+charset=utf-8 1.5284ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.531ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:43279/api/authentication/login - 200 - application/json;+charset=utf-8 28.6424ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:43279/api/patients - application/json;+charset=utf-8 86 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedAtActionResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 2.4244ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:43279/api/patients - 201 - application/json;+charset=utf-8 2.7123ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 PUT http://127.0.0.1:43279/api/patients/0378dd82-58e1-4265-b864-8924848897b4 - application/json;+charset=utf-8 47 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Update", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Update(System.Guid, HealthApp.Contracts.UpdatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Update (HealthApp) in 0.2638ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 PUT http://127.0.0.1:43279/api/patients/0378dd82-58e1-4265-b864-8924848897b4 - 400 - application/problem+json;+charset=utf-8 0.6136ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:43279/api/patients/0378dd82-58e1-4265-b864-8924848897b4 - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 1.3696ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:43279/api/patients/0378dd82-58e1-4265-b864-8924848897b4 - 200 - application/json;+charset=utf-8 1.6607ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:43279/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 27.5491ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - 200 - application/json;+charset=utf-8 27.6450ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:44789/api/patients/4e693d11-9cd5-4ae6-b0ca-44426ba6ee67 - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing ObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 1.7504ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:44789/api/patients/4e693d11-9cd5-4ae6-b0ca-44426ba6ee67 - 404 - application/problem+json;+charset=utf-8 5.4961ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - application/json;+charset=utf-8 60 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.0773ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:43279/api/authentication/login - 200 - application/json;+charset=utf-8 28.1841ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:43279/api/patients - application/json;+charset=utf-8 86 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedAtActionResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 2.4671ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:43279/api/patients - 201 - application/json;+charset=utf-8 2.7378ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 PUT http://127.0.0.1:43279/api/patients/8348aa47-242b-4d55-91f7-081dcafd1075 - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Update", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Update(System.Guid, HealthApp.Contracts.UpdatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 27.5523ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - 200 - application/json;+charset=utf-8 27.6691ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/patients - application/json;+charset=utf-8 53 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedAtActionResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 3.3577ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/patients - 201 - application/json;+charset=utf-8 3.5856ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - application/json;+charset=utf-8 60 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Update (HealthApp) in 13.6709ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 PUT http://127.0.0.1:43279/api/patients/8348aa47-242b-4d55-91f7-081dcafd1075 - 200 - application/json;+charset=utf-8 13.9056ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.2451ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - 200 - application/json;+charset=utf-8 28.3805ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/patients - application/json;+charset=utf-8 53 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedAtActionResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 2.7542ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/patients - 201 - application/json;+charset=utf-8 3.0110ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:44789/api/patients/01d4294f-d34d-4ca9-8e99-e8d183a973fa - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 1.5953ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:44789/api/patients/01d4294f-d34d-4ca9-8e99-e8d183a973fa - 200 - application/json;+charset=utf-8 1.8837ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - application/json;+charset=utf-8 60 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.Hosting.Lifetime[14] + Now listening on: http://127.0.0.1:43159 +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:43159/api/patients/8348aa47-242b-4d55-91f7-081dcafd1075 - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 2.2951ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:43159/api/patients/8348aa47-242b-4d55-91f7-081dcafd1075 - 200 - application/json;+charset=utf-8 12.5433ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.5619ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/authentication/login - 200 - application/json;+charset=utf-8 28.6669ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:44789/api/patients - application/json;+charset=utf-8 90 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedAtActionResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 2.5433ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:44789/api/patients - 201 - application/json;+charset=utf-8 2.7981ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +[xUnit.net 00:00:01.28] Assert.Equal() Failure: Strings differ +[xUnit.net 00:00:01.28] ↓ (pos 0) +[xUnit.net 00:00:01.28] Expected: "/api/patients/d6ec802a-2972-4dca-96b2-831"··· +[xUnit.net 00:00:01.28] Actual: "http://127.0.0.1:44789/api/patients/d6ec8"··· +[xUnit.net 00:00:01.28] ↑ (pos 0) +[xUnit.net 00:00:01.28] Stack Trace: +[xUnit.net 00:00:01.28] /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/tests/HealthApp.AcceptanceTests/CreatePatientTests.cs(29,0): at PatientProfile.AcceptanceTests.CreatePatientTests.Valid_profile_is_assigned_an_identifier_and_can_be_retrieved_after_restart() +[xUnit.net 00:00:01.28] --- End of stack trace from previous location --- +[xUnit.net 00:00:01.32] Finished: HealthApp.AcceptanceTests + + + + + [xUnit.net 00:00:01.28] PatientProfile.AcceptanceTests.CreatePatientTests.Valid_profile_is_assigned_an_identifier_and_can_be_retrieved_after_restart [FAIL] + + + + \ No newline at end of file diff --git a/ImplementationPlan/evidence/b-trx/_Sil3ntDragon_2026-10-14_11_35_56.trx b/ImplementationPlan/evidence/b-trx/_Sil3ntDragon_2026-10-14_11_35_56.trx new file mode 100644 index 0000000..c36c01d --- /dev/null +++ b/ImplementationPlan/evidence/b-trx/_Sil3ntDragon_2026-10-14_11_35_56.trx @@ -0,0 +1,1326 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v3.1.5+1b188a7b0a (64-bit .NET 10.0.0) +[xUnit.net 00:00:00.04] Discovering: HealthApp.AcceptanceTests +[xUnit.net 00:00:00.07] Discovered: HealthApp.AcceptanceTests +[xUnit.net 00:00:00.08] Starting: HealthApp.AcceptanceTests +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {be99afd2-6efe-4aa2-9d73-cb5f4c648857} with creation date 2026-10-14 09:35:56Z, activation date 2026-10-14 09:35:56Z, and expiration date 2027-01-12 09:35:56Z. +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {f7de7f06-b9d9-45b1-a169-0dc5e4922055} with creation date 2026-10-14 09:35:56Z, activation date 2026-10-14 09:35:56Z, and expiration date 2027-01-12 09:35:56Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {be99afd2-6efe-4aa2-9d73-cb5f4c648857} may be persisted to storage in unencrypted form. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {f7de7f06-b9d9-45b1-a169-0dc5e4922055} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-9dec6088-605e-4918-be18-99f041de7785/key-be99afd2-6efe-4aa2-9d73-cb5f4c648857.xml'. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-811d1866-4d7d-48f9-9a6f-c9c94f421d21/key-f7de7f06-b9d9-45b1-a169-0dc5e4922055.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://localhost/api/authentication/login - application/json;+charset=utf-8 65 +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?activityCondition=Unsupported - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing ObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 17.8929ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?activityCondition=Unsupported - 400 - application/problem+json;+charset=utf-8 59.9024ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 42.0399ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://localhost/api/authentication/login - 200 - application/json;+charset=utf-8 76.2507ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://localhost/api/authentication/login - application/json;+charset=utf-8 60 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {50bbbf2f-af25-4cf5-83fe-470ab6844920} with creation date 2026-10-14 09:35:56Z, activation date 2026-10-14 09:35:56Z, and expiration date 2027-01-12 09:35:56Z. +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {4fa3c27f-dbf4-45e3-b507-c66dd0b99b0b} with creation date 2026-10-14 09:35:56Z, activation date 2026-10-14 09:35:56Z, and expiration date 2027-01-12 09:35:56Z. +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {9eccd96f-c849-4718-af70-a34cf290059c} with creation date 2026-10-14 09:35:56Z, activation date 2026-10-14 09:35:56Z, and expiration date 2027-01-12 09:35:56Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {9eccd96f-c849-4718-af70-a34cf290059c} may be persisted to storage in unencrypted form. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {50bbbf2f-af25-4cf5-83fe-470ab6844920} may be persisted to storage in unencrypted form. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {4fa3c27f-dbf4-45e3-b507-c66dd0b99b0b} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-4cc957b8-8420-409a-aa5d-b78758c62b66/key-9eccd96f-c849-4718-af70-a34cf290059c.xml'. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-7cd5f43d-26bc-4054-949d-f62557ec6335/key-50bbbf2f-af25-4cf5-83fe-470ab6844920.xml'. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-ad4bf8cb-ef4c-4fb1-b2f1-12f47374cba6/key-4fa3c27f-dbf4-45e3-b507-c66dd0b99b0b.xml'. +info: Microsoft.Hosting.Lifetime[14] + Now listening on: http://127.0.0.1:37877 +info: Microsoft.Hosting.Lifetime[14] + Now listening on: http://127.0.0.1:33779 +info: Microsoft.Hosting.Lifetime[14] + Now listening on: http://127.0.0.1:36421 +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing UnauthorizedObjectResult, writing value of type '<>f__AnonymousType0`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.5865ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://localhost/api/authentication/login - 401 - application/json;+charset=utf-8 29.4789ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://localhost/api/authentication/login - application/json;+charset=utf-8 41 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:33779/api/authentication/login - application/json;+charset=utf-8 61 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing UnauthorizedObjectResult, writing value of type '<>f__AnonymousType0`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 30.7578ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://localhost/api/authentication/login - 401 - application/json;+charset=utf-8 32.4427ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/professionals/me/patients - - - +info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2] + Authorization failed. These requirements were not met: + RolesAuthorizationRequirement:User.IsInRole must be true for one of the following roles: (HealthcareProfessional) + ClaimsAuthorizationRequirement:Claim.Type=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier +info: Microsoft.AspNetCore.Authentication.BearerToken.BearerTokenHandler[12] + AuthenticationScheme: Bearer was challenged. +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/professionals/me/patients - 401 - - 15.1087ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {00e0f474-9afe-443d-b9be-327e1b4bfa33} with creation date 2026-10-14 09:35:56Z, activation date 2026-10-14 09:35:56Z, and expiration date 2027-01-12 09:35:56Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {00e0f474-9afe-443d-b9be-327e1b4bfa33} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-e483dc79-2d55-49d2-8065-6f9ea167a0f5/key-00e0f474-9afe-443d-b9be-327e1b4bfa33.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Unsupported - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing ObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 1.0711ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Unsupported - 400 - application/problem+json;+charset=utf-8 2.2892ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 31.7072ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:33779/api/authentication/login - 200 - application/json;+charset=utf-8 34.6588ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:33779/api/patients - application/json;+charset=utf-8 48 +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:33779/api/patients - application/json;+charset=utf-8 48 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {9dfdf317-0e78-44e8-93e0-f68902eace20} with creation date 2026-10-14 09:35:56Z, activation date 2026-10-14 09:35:56Z, and expiration date 2027-01-12 09:35:56Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {9dfdf317-0e78-44e8-93e0-f68902eace20} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-8d12dbb9-0af3-4c1b-8be2-9908c92265ea/key-9dfdf317-0e78-44e8-93e0-f68902eace20.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Home&activityCondition=DuringActivity - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 4.0995ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Home&activityCondition=DuringActivity - 200 - application/json;+charset=utf-8 5.9543ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {7b413c19-459c-4bca-b55c-e41a11544e3a} with creation date 2026-10-14 09:35:56Z, activation date 2026-10-14 09:35:56Z, and expiration date 2027-01-12 09:35:56Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {7b413c19-459c-4bca-b55c-e41a11544e3a} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-c57d1fbd-3352-4dd0-bca1-ed9afc012367/key-7b413c19-459c-4bca-b55c-e41a11544e3a.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Home&activityCondition=AfterActivity - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 1.1245ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Home&activityCondition=AfterActivity - 200 - application/json;+charset=utf-8 2.7271ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {5fede3bf-919b-4678-8f1d-d7db3f91d702} with creation date 2026-10-14 09:35:56Z, activation date 2026-10-14 09:35:56Z, and expiration date 2027-01-12 09:35:56Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {5fede3bf-919b-4678-8f1d-d7db3f91d702} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-1b5e89c4-b907-430d-b86c-46d0e73fbc08/key-5fede3bf-919b-4678-8f1d-d7db3f91d702.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 0.6725ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance - 200 - application/json;+charset=utf-8 3.1598ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:37877/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {72ffb702-483b-446f-b676-b4a16297330f} with creation date 2026-10-14 09:35:56Z, activation date 2026-10-14 09:35:56Z, and expiration date 2027-01-12 09:35:56Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {72ffb702-483b-446f-b676-b4a16297330f} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-0249bba4-40be-4412-a72d-c901bd6aab64/key-72ffb702-483b-446f-b676-b4a16297330f.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Home - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 0.6264ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Home - 200 - application/json;+charset=utf-8 1.8538ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 30.1153ms +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - 200 - application/json;+charset=utf-8 31.6601ms +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 30.3428ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:37877/api/authentication/login - 200 - application/json;+charset=utf-8 31.9487ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/patients - application/json;+charset=utf-8 26 +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 PUT http://127.0.0.1:37877/api/patients/544ad890-ec36-47f5-9944-9e6335d3254c - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Update", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Update(System.Guid, HealthApp.Contracts.UpdatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 3.1655ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/patients - 400 - application/problem+json;+charset=utf-8 20.6032ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing ConflictObjectResult, writing value of type '<>f__AnonymousType0`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 375.5097ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 376.7182ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:33779/api/patients - 201 - application/json;+charset=utf-8 391.9483ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:33779/api/patients - 409 - application/json;+charset=utf-8 392.6260ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:33779/api/patients - application/json;+charset=utf-8 48 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {9bcc244b-3f33-44cc-ae30-72cd793f1eea} with creation date 2026-10-14 09:35:56Z, activation date 2026-10-14 09:35:56Z, and expiration date 2027-01-12 09:35:56Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {9bcc244b-3f33-44cc-ae30-72cd793f1eea} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-1905d2db-a99c-4c27-bd43-7aa131a6e94e/key-9bcc244b-3f33-44cc-ae30-72cd793f1eea.xml'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing ConflictObjectResult, writing value of type '<>f__AnonymousType0`1[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing ObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 2.6563ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:33779/api/patients - 409 - application/json;+charset=utf-8 3.5916ms +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Update (HealthApp) in 43.638ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 PUT http://127.0.0.1:37877/api/patients/544ad890-ec36-47f5-9944-9e6335d3254c - 404 - application/problem+json;+charset=utf-8 55.2849ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Unknown - - - +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:37877/api/patients/544ad890-ec36-47f5-9944-9e6335d3254c - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 0.5072ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Unknown - 200 - application/json;+charset=utf-8 1.6660ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing ObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 2.5256ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:37877/api/patients/544ad890-ec36-47f5-9944-9e6335d3254c - 404 - application/problem+json;+charset=utf-8 7.4032ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:37877/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.8466ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - 200 - application/json;+charset=utf-8 30.4427ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/patients - application/json;+charset=utf-8 40 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 0.9691ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/patients - 400 - application/problem+json;+charset=utf-8 1.3132ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 34.8815ms +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 42.0907ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - 200 - application/json;+charset=utf-8 34.9901ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:37877/api/authentication/login - 200 - application/json;+charset=utf-8 42.2155ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/patients - application/json;+charset=utf-8 28 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:37877/api/patients - application/json;+charset=utf-8 86 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 1.3147ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/patients - 400 - application/problem+json;+charset=utf-8 1.8590ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.Hosting.Lifetime[14] + Now listening on: http://127.0.0.1:40449 +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:40449/api/patients/me - - - +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 5.0323ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:37877/api/patients - 201 - application/json;+charset=utf-8 10.0207ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Me (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 PUT http://127.0.0.1:37877/api/patients/31b20063-9642-4f2d-9475-cd862a204b98 - application/json;+charset=utf-8 44 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Update", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Update(System.Guid, HealthApp.Contracts.UpdatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Update (HealthApp) in 0.8364ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 PUT http://127.0.0.1:37877/api/patients/31b20063-9642-4f2d-9475-cd862a204b98 - 400 - application/problem+json;+charset=utf-8 1.2280ms +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Me", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Me(System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:37877/api/patients/31b20063-9642-4f2d-9475-cd862a204b98 - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 29.5327ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - 200 - application/json;+charset=utf-8 29.6757ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/patients - application/json;+charset=utf-8 38 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 0.2793ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/patients - 400 - application/problem+json;+charset=utf-8 0.6988ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 22.613ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:37877/api/patients/31b20063-9642-4f2d-9475-cd862a204b98 - 200 - application/json;+charset=utf-8 22.8476ms +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Me (HealthApp) in 23.2714ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Me (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:40449/api/patients/me - 200 - application/json;+charset=utf-8 34.8694ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:37877/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {61e71235-3002-46f5-8aba-9d81fdfa2962} with creation date 2026-10-14 09:35:57Z, activation date 2026-10-14 09:35:57Z, and expiration date 2027-01-12 09:35:57Z. +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {61e71235-3002-46f5-8aba-9d81fdfa2962} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-a0342457-0849-4e27-9550-a85261df96b8/key-61e71235-3002-46f5-8aba-9d81fdfa2962.xml'. +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Other - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 0.7807ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Other - 200 - application/json;+charset=utf-8 2.4379ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.0724ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - 200 - application/json;+charset=utf-8 28.2022ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/patients - application/json;+charset=utf-8 41 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 0.3655ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/patients - 400 - application/problem+json;+charset=utf-8 0.8876ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 33.7119ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:37877/api/authentication/login - 200 - application/json;+charset=utf-8 33.9090ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:37877/api/patients - application/json;+charset=utf-8 86 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 4.5232ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:37877/api/patients - 201 - application/json;+charset=utf-8 4.7258ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 PUT http://127.0.0.1:37877/api/patients/dfdfae8f-395a-473d-8f1e-24f508acb4c2 - application/json;+charset=utf-8 46 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Update", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Update(System.Guid, HealthApp.Contracts.UpdatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Update (HealthApp) in 0.2049ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 PUT http://127.0.0.1:37877/api/patients/dfdfae8f-395a-473d-8f1e-24f508acb4c2 - 400 - application/problem+json;+charset=utf-8 0.4801ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:37877/api/patients/dfdfae8f-395a-473d-8f1e-24f508acb4c2 - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 2.057ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:37877/api/patients/dfdfae8f-395a-473d-8f1e-24f508acb4c2 - 200 - application/json;+charset=utf-8 2.2176ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:37877/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.0724ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - 200 - application/json;+charset=utf-8 28.2260ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/patients - application/json;+charset=utf-8 45 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 0.2093ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/patients - 400 - application/problem+json;+charset=utf-8 0.5059ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.9852ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:37877/api/authentication/login - 200 - application/json;+charset=utf-8 29.0809ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:37877/api/patients - application/json;+charset=utf-8 86 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 3.1198ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:37877/api/patients - 201 - application/json;+charset=utf-8 3.4041ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 PUT http://127.0.0.1:37877/api/patients/cc406d8a-2e0d-4222-b92e-d5da68f02859 - application/json;+charset=utf-8 47 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Update", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Update(System.Guid, HealthApp.Contracts.UpdatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] + Creating key {2892e4ca-3109-490b-8c19-e901ad44296a} with creation date 2026-10-14 09:35:57Z, activation date 2026-10-14 09:35:57Z, and expiration date 2027-01-12 09:35:57Z. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Update (HealthApp) in 0.2491ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] + No XML encryptor configured. Key {2892e4ca-3109-490b-8c19-e901ad44296a} may be persisted to storage in unencrypted form. +info: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[39] + Writing data to file '/tmp/healthapp-keys-7db8551e-22c9-4ff7-a4fe-a30685cb306b/key-2892e4ca-3109-490b-8c19-e901ad44296a.xml'. +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 PUT http://127.0.0.1:37877/api/patients/cc406d8a-2e0d-4222-b92e-d5da68f02859 - 400 - application/problem+json;+charset=utf-8 0.5846ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:37877/api/patients/cc406d8a-2e0d-4222-b92e-d5da68f02859 - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Clinic - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 1.6355ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:37877/api/patients/cc406d8a-2e0d-4222-b92e-d5da68f02859 - 200 - application/json;+charset=utf-8 1.8028ms +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "MeasurementGuidance"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Get(System.String, System.String) on controller HealthApp.Controllers.MeasurementGuidanceController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType0`12[[System.Boolean, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceStep[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[HealthApp.Guidance.GuidanceQueries+GuidanceSource[], Guidance, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp) in 1.0078ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.MeasurementGuidanceController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://localhost/api/measurement-guidance?setting=Clinic - 200 - application/json;+charset=utf-8 2.2015ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:37877/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.6079ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - 200 - application/json;+charset=utf-8 28.7490ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/patients - application/json;+charset=utf-8 53 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 1.15ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/patients - 400 - application/problem+json;+charset=utf-8 1.6718ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.1335ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:37877/api/authentication/login - 200 - application/json;+charset=utf-8 28.2480ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:37877/api/patients - application/json;+charset=utf-8 86 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 3.3186ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:37877/api/patients - 201 - application/json;+charset=utf-8 3.6706ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 PUT http://127.0.0.1:37877/api/patients/6af9445e-31ee-49c7-9521-6efc770d4f77 - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Update", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Update(System.Guid, HealthApp.Contracts.UpdatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.3832ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - 200 - application/json;+charset=utf-8 28.5054ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/patients - application/json;+charset=utf-8 50 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 0.5568ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/patients - 400 - application/problem+json;+charset=utf-8 1.0162ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Update (HealthApp) in 15.5044ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Update (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 PUT http://127.0.0.1:37877/api/patients/6af9445e-31ee-49c7-9521-6efc770d4f77 - 200 - application/json;+charset=utf-8 15.7674ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.8285ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - 200 - application/json;+charset=utf-8 28.9898ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/patients - application/json;+charset=utf-8 1 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing BadRequestObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ValidationProblemDetails'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 1.1853ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/patients - 400 - application/problem+json;+charset=utf-8 1.6626ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - application/json;+charset=utf-8 59 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.Hosting.Lifetime[14] + Now listening on: http://127.0.0.1:39789 +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:39789/api/patients/6af9445e-31ee-49c7-9521-6efc770d4f77 - - - +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 32.7506ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - 200 - application/json;+charset=utf-8 32.9099ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:36421/api/patients/a1898182-f919-4c88-b663-01060b46d0ba - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing ObjectResult, writing value of type 'Microsoft.AspNetCore.Mvc.ProblemDetails'. +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 1.7859ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:36421/api/patients/a1898182-f919-4c88-b663-01060b46d0ba - 404 - application/problem+json;+charset=utf-8 5.5340ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - application/json;+charset=utf-8 60 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 2.2512ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:39789/api/patients/6af9445e-31ee-49c7-9521-6efc770d4f77 - 200 - application/json;+charset=utf-8 13.2943ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 28.6145ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - 200 - application/json;+charset=utf-8 28.7723ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/patients - application/json;+charset=utf-8 53 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 3.1283ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/patients - 201 - application/json;+charset=utf-8 3.4555ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - application/json;+charset=utf-8 60 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 27.8346ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - 200 - application/json;+charset=utf-8 27.9760ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/patients - application/json;+charset=utf-8 53 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 3.2174ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/patients - 201 - application/json;+charset=utf-8 3.6040ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:36421/api/patients/24504ae5-e798-4c5a-baaf-f30ac6bdca69 - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 1.6671ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:36421/api/patients/24504ae5-e798-4c5a-baaf-f30ac6bdca69 - 200 - application/json;+charset=utf-8 1.9395ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - application/json;+charset=utf-8 60 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Login", controller = "Authentication"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult Login(LoginRequest) on controller HealthApp.Controllers.AuthenticationController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type '<>f__AnonymousType1`5[[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.Int64, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.AuthenticationController.Login (HealthApp) in 27.8601ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.AuthenticationController.Login (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/authentication/login - 200 - application/json;+charset=utf-8 27.9974ms +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 POST http://127.0.0.1:36421/api/patients - application/json;+charset=utf-8 90 +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Create", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Create(HealthApp.Contracts.CreatePatientRequest, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing CreatedResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Create (HealthApp) in 2.4718ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Create (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 POST http://127.0.0.1:36421/api/patients - 201 - application/json;+charset=utf-8 2.7598ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +info: Microsoft.Hosting.Lifetime[14] + Now listening on: http://127.0.0.1:44967 +info: Microsoft.Hosting.Lifetime[0] + Application started. Press Ctrl+C to shut down. +info: Microsoft.Hosting.Lifetime[0] + Hosting environment: Development +info: Microsoft.Hosting.Lifetime[0] + Content root path: /home/steffen/Nextcloud/Documents/Master Thesis/HealthAppRepositoryB/src/HealthApp +info: Microsoft.AspNetCore.Hosting.Diagnostics[1] + Request starting HTTP/1.1 GET http://127.0.0.1:44967/api/patients/88c496e0-d5b6-4f1c-8fd7-0a233af2ab6d - - - +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] + Executing endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[102] + Route matched with {action = "Get", controller = "Patient"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.Guid, System.Threading.CancellationToken) on controller HealthApp.Controllers.PatientController (HealthApp). +info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] + Executing OkObjectResult, writing value of type 'HealthApp.Contracts.PatientDto'. +info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[105] + Executed action HealthApp.Controllers.PatientController.Get (HealthApp) in 3.288ms +info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] + Executed endpoint 'HealthApp.Controllers.PatientController.Get (HealthApp)' +info: Microsoft.AspNetCore.Hosting.Diagnostics[2] + Request finished HTTP/1.1 GET http://127.0.0.1:44967/api/patients/88c496e0-d5b6-4f1c-8fd7-0a233af2ab6d - 200 - application/json;+charset=utf-8 14.9121ms +info: Microsoft.Hosting.Lifetime[0] + Application is shutting down... +[xUnit.net 00:00:01.35] Finished: HealthApp.AcceptanceTests + + + + \ No newline at end of file diff --git a/ImplementationPlan/implementation-log.md b/ImplementationPlan/implementation-log.md index 7e403ec..c0a3e42 100644 --- a/ImplementationPlan/implementation-log.md +++ b/ImplementationPlan/implementation-log.md @@ -27,3 +27,7 @@ Read authoritative approval completely. Q1–Q5 resolved; Q5 overrides Ubuntu-on ### Stage 1 checkpoint — passed Single ASP.NET host, Contracts and Guidance projects; framework login/accounts/assignments and identical guidance content relocated. No business HTTP clients, service-key authentication or extra listeners. Original guidance suite: only host namespace changed; functional assertions unchanged, existing upstream traps still prove zero calls. Added framework login/generic failure/no-store/service-key rejection check. 10/10 cases passed; TRX `stage1-trx` records initial configuration timing failure followed by successful correction. Commit Stage 0: `cee98e7`. + +### Stage 2 — Profile checkpoint + +Profile facade/owned schema/immutable DTOs; account unique/non-null, durable atomic insert and locked updates. Shared request transaction uses repeatable-read for reads and read-committed for locked writes. Runtime DB role restricted to DML, no runtime migration. Module-owned versioned SQL migration (applied twice) implements schema lifecycle; EF Core retains data access. Original create/update tests copied with namespace adaptation only; relative Location regression fixed in production controller, not assertions. Added concurrent create/retry/restart/persistent-ticket and runtime DDL-denial tests. 29/29 cases passed. Remaining all-endpoint authorization and Observation schema checks proceed with Stage 3. Stage 1 commit `523cfbf`. diff --git a/src/HealthApp.Contracts/AuthorizedPatientContext.cs b/src/HealthApp.Contracts/AuthorizedPatientContext.cs new file mode 100644 index 0000000..8c44d35 --- /dev/null +++ b/src/HealthApp.Contracts/AuthorizedPatientContext.cs @@ -0,0 +1,22 @@ +using System.Runtime.CompilerServices; +[assembly:InternalsVisibleTo("HealthApp")] +namespace HealthApp.Contracts; +// Only the API/access assembly issues this request-local capability after policy checks. +public sealed class AuthorizedPatientContext +{ + internal AuthorizedPatientContext(Guid patientId, bool canWrite){PatientId=patientId;CanWrite=canWrite;} + public Guid PatientId {get;} + public bool CanWrite {get;} + public void RequireWrite(){if(!CanWrite)throw new UnauthorizedAccessException("Read-only scope.");} +} +public interface ProfileQueries +{ + Task ResolveAccountAsync(string accountId,CancellationToken ct); + Task GetAsync(AuthorizedPatientContext scope,CancellationToken ct); +} +public interface ProfileCommands +{ + Task CreateAsync(string trustedAccountId,CreatePatientRequest request,CancellationToken ct); + Task UpdateAsync(AuthorizedPatientContext scope,UpdatePatientRequest request,CancellationToken ct); +} +public sealed class ProfileAlreadyExistsException : Exception; diff --git a/src/HealthApp.Contracts/CreatePatientRequest.cs b/src/HealthApp.Contracts/CreatePatientRequest.cs new file mode 100644 index 0000000..9b106b8 --- /dev/null +++ b/src/HealthApp.Contracts/CreatePatientRequest.cs @@ -0,0 +1,14 @@ +using System.ComponentModel.DataAnnotations; + +namespace HealthApp.Contracts; + +public sealed record CreatePatientRequest +{ + [Required] + public string? Name { get; init; } + + [Required] + public DateOnly? DateOfBirth { get; init; } + + public string? ContactInfo { get; init; } +} diff --git a/src/HealthApp.Contracts/PatientDto.cs b/src/HealthApp.Contracts/PatientDto.cs new file mode 100644 index 0000000..cc25fce --- /dev/null +++ b/src/HealthApp.Contracts/PatientDto.cs @@ -0,0 +1,3 @@ +namespace HealthApp.Contracts; + +public sealed record PatientDto(Guid PatientId, string Name, DateOnly DateOfBirth, string? ContactInfo); diff --git a/src/HealthApp.Contracts/UpdatePatientRequest.cs b/src/HealthApp.Contracts/UpdatePatientRequest.cs new file mode 100644 index 0000000..8e5d55c --- /dev/null +++ b/src/HealthApp.Contracts/UpdatePatientRequest.cs @@ -0,0 +1,11 @@ +using System.ComponentModel.DataAnnotations; + +namespace HealthApp.Contracts; + +public sealed record UpdatePatientRequest +{ + [Required] + public string? Name { get; init; } + + public string? ContactInfo { get; init; } +} diff --git a/src/HealthApp.Infrastructure/HealthApp.Infrastructure.csproj b/src/HealthApp.Infrastructure/HealthApp.Infrastructure.csproj new file mode 100644 index 0000000..f134f79 --- /dev/null +++ b/src/HealthApp.Infrastructure/HealthApp.Infrastructure.csproj @@ -0,0 +1,4 @@ + +net10.0enableenable + + diff --git a/src/HealthApp.Infrastructure/RequestTransaction.cs b/src/HealthApp.Infrastructure/RequestTransaction.cs new file mode 100644 index 0000000..c77fe62 --- /dev/null +++ b/src/HealthApp.Infrastructure/RequestTransaction.cs @@ -0,0 +1,34 @@ +using System.Data; +using Microsoft.EntityFrameworkCore; +using Npgsql; +namespace HealthApp.Infrastructure; +// Coordinates mechanics only; it has no health table/query or access-policy knowledge. +public sealed class RequestTransaction(NpgsqlDataSource source) : IAsyncDisposable +{ + public NpgsqlConnection? Connection {get;private set;} + public NpgsqlTransaction? Transaction {get;private set;} + public bool Active=>Transaction is not null; + public async Task BeginAsync(bool write,CancellationToken ct) + { + if(Active)return; + Connection=await source.OpenConnectionAsync(ct); + Transaction=await Connection.BeginTransactionAsync(write?IsolationLevel.ReadCommitted:IsolationLevel.RepeatableRead,ct); + } + public async Task EnlistAsync(DbContext context,CancellationToken ct) + { + if(Transaction is null || Connection is null)throw new InvalidOperationException("No request transaction."); + if(context.Database.GetDbConnection()!=Connection)context.Database.SetDbConnection(Connection,false); + await context.Database.UseTransactionAsync(Transaction,ct); + } + public async Task FinishAsync(CancellationToken ct) + { + if(Transaction is null)return; + await Transaction.CommitAsync(ct);await Transaction.DisposeAsync();Transaction=null; + await Connection!.DisposeAsync();Connection=null; + } + public async ValueTask DisposeAsync() + { + if(Transaction is not null)await Transaction.DisposeAsync(); + if(Connection is not null)await Connection.DisposeAsync(); + } +} diff --git a/src/HealthApp/Controllers/PatientController.cs b/src/HealthApp/Controllers/PatientController.cs new file mode 100644 index 0000000..d1a3dc7 --- /dev/null +++ b/src/HealthApp/Controllers/PatientController.cs @@ -0,0 +1,29 @@ +using System.Security.Claims; +using HealthApp.Contracts; +using HealthApp.Infrastructure; +using HealthApp.Security; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +namespace HealthApp.Controllers; +[ApiController,Route("api/patients")] +public sealed class PatientController(ProfileQueries queries,ProfileCommands commands,AccessPolicy access,RequestTransaction tx) : ControllerBase +{ + [HttpPost,Authorize(Policy="Patient")] + public async Task Create(CreatePatientRequest r,CancellationToken ct) + { + try{var p=await commands.CreateAsync(User.FindFirstValue(ClaimTypes.NameIdentifier)!,r,ct);await tx.FinishAsync(ct);return Created($"/api/patients/{p.PatientId}",p);} + catch(ProfileAlreadyExistsException){return Conflict(new{title="A profile already exists for this account."});} + } + [HttpGet("me"),Authorize(Policy="Patient")] + public async Task Me(CancellationToken ct) + { + var id=await queries.ResolveAccountAsync(User.FindFirstValue(ClaimTypes.NameIdentifier)!,ct);if(id is null)return NotFound(); + var scope=await access.AuthorizeAsync(User,id.Value,false,ct);var p=await queries.GetAsync(scope!,ct);await tx.FinishAsync(ct);return p is null?NotFound():Ok(p); + } + [HttpGet("{patientId:guid}")] + public async Task Get(Guid patientId,CancellationToken ct) + {var scope=await access.AuthorizeAsync(User,patientId,false,ct);if(scope is null)return NotFound();var p=await queries.GetAsync(scope,ct);await tx.FinishAsync(ct);return p is null?NotFound():Ok(p);} + [HttpPut("{patientId:guid}"),Authorize(Policy="Patient")] + public async Task Update(Guid patientId,UpdatePatientRequest r,CancellationToken ct) + {var scope=await access.AuthorizeAsync(User,patientId,true,ct);if(scope is null)return NotFound();var p=await commands.UpdateAsync(scope,r,ct);await tx.FinishAsync(ct);return p is null?NotFound():Ok(p);} +} diff --git a/src/HealthApp/HealthApp.csproj b/src/HealthApp/HealthApp.csproj index 153b747..0373287 100644 --- a/src/HealthApp/HealthApp.csproj +++ b/src/HealthApp/HealthApp.csproj @@ -1,4 +1,4 @@ net10.0enableenable - + diff --git a/src/HealthApp/Program.cs b/src/HealthApp/Program.cs index f6c5a88..4e26651 100644 --- a/src/HealthApp/Program.cs +++ b/src/HealthApp/Program.cs @@ -1,4 +1,7 @@ using HealthApp.Guidance; +using HealthApp.Infrastructure; +using HealthApp.Profile; +using Npgsql; using HealthApp.Security; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.DataProtection; @@ -14,6 +17,14 @@ public class Program builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); + builder.Services.AddSingleton(sp=> { + var c=sp.GetRequiredService(); + var text=c.GetConnectionString("HealthDatabase"); + if(string.IsNullOrWhiteSpace(text))throw new InvalidOperationException("HealthDatabase connection is required."); + var options=new NpgsqlConnectionStringBuilder(text){Pooling=true,MaxPoolSize=c.GetValue("Resources:MaxPoolSize",32)}; + return NpgsqlDataSource.Create(options.ConnectionString); + }); + builder.Services.AddScoped();builder.Services.AddProfile();builder.Services.AddScoped(); builder.Services.AddDataProtection().SetApplicationName("HealthApp.ApiGateway"); builder.Services.AddOptions().Configure((o,c,l)=> { var keys=c["Authentication:KeyDirectory"]; @@ -37,7 +48,15 @@ public class Program if(!ctx.Request.Path.StartsWithSegments("/api/measurement-guidance"))ctx.Response.Headers.CacheControl="no-store"; await next(ctx); }); - app.UseAuthentication();app.UseAuthorization();app.MapControllers(); + app.UseAuthentication();app.UseAuthorization(); + app.Use(async(ctx,next)=> { + if(ctx.GetEndpoint()?.Metadata.GetMetadata() is not null || ctx.Request.Path.StartsWithSegments("/api/professionals")){await next(ctx);return;} + if(ctx.User.Identity?.IsAuthenticated!=true){await next(ctx);return;} + if(ctx.User.IsInRole("HealthcareProfessional") && ctx.Request.Method!="GET"){ctx.Response.StatusCode=403;return;} + var tx=ctx.RequestServices.GetRequiredService(); + try{await tx.BeginAsync(ctx.Request.Method!="GET",ctx.RequestAborted);await next(ctx);} + catch(NpgsqlException){if(ctx.Response.HasStarted)ctx.Abort();else {ctx.Response.Clear();await Results.Problem(statusCode:503,title:"Health data dependency is unavailable.").ExecuteAsync(ctx);}} + });app.MapControllers(); await app.RunAsync(); } } diff --git a/src/HealthApp/Security/AccessPolicy.cs b/src/HealthApp/Security/AccessPolicy.cs new file mode 100644 index 0000000..81e6791 --- /dev/null +++ b/src/HealthApp/Security/AccessPolicy.cs @@ -0,0 +1,12 @@ +using System.Security.Claims; +using HealthApp.Contracts; +namespace HealthApp.Security; +public sealed class AccessPolicy(ProfileQueries profiles,ProfessionalAssignments assignments) +{ + public async Task AuthorizeAsync(ClaimsPrincipal user,Guid actualPatient,bool write,CancellationToken ct) + { + var account=user.FindFirstValue(ClaimTypes.NameIdentifier)!; + bool allowed=user.IsInRole("HealthcareProfessional") ? !write&&assignments.IsAssigned(account,actualPatient) : user.IsInRole("Patient")&&await profiles.ResolveAccountAsync(account,ct)==actualPatient; + return allowed?new AuthorizedPatientContext(actualPatient,write):null; + } +} diff --git a/src/Modules/Profile/AssemblyInfo.cs b/src/Modules/Profile/AssemblyInfo.cs new file mode 100644 index 0000000..f136d84 --- /dev/null +++ b/src/Modules/Profile/AssemblyInfo.cs @@ -0,0 +1,2 @@ +using System.Runtime.CompilerServices; +[assembly:InternalsVisibleTo("HealthApp.AcceptanceTests")] diff --git a/src/Modules/Profile/Domain/Patient.cs b/src/Modules/Profile/Domain/Patient.cs new file mode 100644 index 0000000..6e9743c --- /dev/null +++ b/src/Modules/Profile/Domain/Patient.cs @@ -0,0 +1,12 @@ +namespace HealthApp.Profile.Domain; + +internal sealed class Patient +{ + public string? AccountId { get; set; } + public Guid PatientId { get; set; } + public string Name { get; set; } = ""; + public DateOnly DateOfBirth { get; set; } + public string? ContactInfo { get; set; } + public DateTime CreatedAt { get; set; } + public DateTime UpdatedAt { get; set; } +} diff --git a/src/Modules/Profile/Migrations/001-profile.sql b/src/Modules/Profile/Migrations/001-profile.sql new file mode 100644 index 0000000..d8f253b --- /dev/null +++ b/src/Modules/Profile/Migrations/001-profile.sql @@ -0,0 +1,7 @@ +CREATE SCHEMA IF NOT EXISTS profile; +CREATE TABLE IF NOT EXISTS profile.schema_version(version integer PRIMARY KEY); +CREATE TABLE IF NOT EXISTS profile.patient ( + patient_id uuid PRIMARY KEY, account_id text NOT NULL, name varchar NOT NULL, + date_of_birth date NOT NULL,contact_info varchar,created_at timestamp without time zone NOT NULL,updated_at timestamp without time zone NOT NULL); +CREATE UNIQUE INDEX IF NOT EXISTS "IX_patient_account_id" ON profile.patient(account_id); +INSERT INTO profile.schema_version VALUES(1) ON CONFLICT DO NOTHING; diff --git a/src/Modules/Profile/Persistence/PatientDbContext.cs b/src/Modules/Profile/Persistence/PatientDbContext.cs new file mode 100644 index 0000000..8a2bb64 --- /dev/null +++ b/src/Modules/Profile/Persistence/PatientDbContext.cs @@ -0,0 +1,24 @@ +using Microsoft.EntityFrameworkCore; +using HealthApp.Profile.Domain; + +namespace HealthApp.Profile.Persistence; + +internal sealed class PatientDbContext(DbContextOptions options) : DbContext(options) +{ + public DbSet Patients => Set(); + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + var patient = modelBuilder.Entity(); + patient.ToTable("patient", "profile"); + patient.HasKey(p => p.PatientId); + patient.Property(p => p.AccountId).HasColumnName("account_id").IsRequired(); + patient.HasIndex(p => p.AccountId).IsUnique(); + patient.Property(p => p.PatientId).HasColumnName("patient_id").ValueGeneratedNever(); + patient.Property(p => p.Name).HasColumnName("name").HasColumnType("character varying").IsRequired(); + patient.Property(p => p.DateOfBirth).HasColumnName("date_of_birth").HasColumnType("date"); + patient.Property(p => p.ContactInfo).HasColumnName("contact_info").HasColumnType("character varying"); + patient.Property(p => p.CreatedAt).HasColumnName("created_at").HasColumnType("timestamp without time zone"); + patient.Property(p => p.UpdatedAt).HasColumnName("updated_at").HasColumnType("timestamp without time zone"); + } +} diff --git a/src/Modules/Profile/Profile.csproj b/src/Modules/Profile/Profile.csproj new file mode 100644 index 0000000..b205ee6 --- /dev/null +++ b/src/Modules/Profile/Profile.csproj @@ -0,0 +1,4 @@ + +net10.0enableenable + + diff --git a/src/Modules/Profile/ProfileFacade.cs b/src/Modules/Profile/ProfileFacade.cs new file mode 100644 index 0000000..fe554bf --- /dev/null +++ b/src/Modules/Profile/ProfileFacade.cs @@ -0,0 +1,40 @@ +using System.ComponentModel.DataAnnotations; +using HealthApp.Contracts; +using HealthApp.Infrastructure; +using HealthApp.Profile.Domain; +using HealthApp.Profile.Persistence; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.DependencyInjection; +using Npgsql; +namespace HealthApp.Profile; +internal sealed class ProfileFacade(PatientDbContext db,RequestTransaction tx) : ProfileQueries,ProfileCommands +{ + public async Task ResolveAccountAsync(string id,CancellationToken ct) + {await tx.EnlistAsync(db,ct);return await db.Patients.AsNoTracking().Where(p=>p.AccountId==id).Select(p=>(Guid?)p.PatientId).SingleOrDefaultAsync(ct);} + public async Task GetAsync(AuthorizedPatientContext scope,CancellationToken ct) + {await tx.EnlistAsync(db,ct);var p=await db.Patients.AsNoTracking().SingleOrDefaultAsync(p=>p.PatientId==scope.PatientId,ct);return p is null?null:Dto(p);} + public async Task CreateAsync(string trustedAccountId,CreatePatientRequest r,CancellationToken ct) + { + ArgumentException.ThrowIfNullOrWhiteSpace(trustedAccountId);Validator.ValidateObject(r,new ValidationContext(r),true); + await tx.EnlistAsync(db,ct);if(await db.Patients.AnyAsync(p=>p.AccountId==trustedAccountId,ct))throw new ProfileAlreadyExistsException(); + var now=DateTime.SpecifyKind(DateTime.UtcNow,DateTimeKind.Unspecified); + var p=new Patient{PatientId=Guid.NewGuid(),AccountId=trustedAccountId,Name=r.Name!,DateOfBirth=r.DateOfBirth!.Value,ContactInfo=r.ContactInfo,CreatedAt=now,UpdatedAt=now};db.Patients.Add(p); + try{await db.SaveChangesAsync(ct);}catch(DbUpdateException e) when(e.InnerException is PostgresException {SqlState:"23505",ConstraintName:"IX_patient_account_id"}){throw new ProfileAlreadyExistsException();} + return Dto(p); + } + public async Task UpdateAsync(AuthorizedPatientContext scope,UpdatePatientRequest r,CancellationToken ct) + { + scope.RequireWrite();Validator.ValidateObject(r,new ValidationContext(r),true);await tx.EnlistAsync(db,ct); + var p=await db.Patients.FromSqlInterpolated($"SELECT * FROM profile.patient WHERE patient_id={scope.PatientId} FOR UPDATE").SingleOrDefaultAsync(ct); + if(p is null)return null;p.Name=r.Name!;p.ContactInfo=r.ContactInfo;p.UpdatedAt=DateTime.SpecifyKind(DateTime.UtcNow,DateTimeKind.Unspecified);await db.SaveChangesAsync(ct);return Dto(p); + } + private static PatientDto Dto(Patient p)=>new(p.PatientId,p.Name,p.DateOfBirth,p.ContactInfo); +} +public static class ProfileModule +{ + public static IServiceCollection AddProfile(this IServiceCollection services) + { + services.AddScoped(sp=>new PatientDbContext(new DbContextOptionsBuilder().UseNpgsql(sp.GetRequiredService().Connection ?? throw new InvalidOperationException("Request transaction must begin before module activation.")).Options)); + services.AddScoped();services.AddScoped(sp=>sp.GetRequiredService());services.AddScoped(sp=>sp.GetRequiredService());return services; + } +} diff --git a/tests/HealthApp.AcceptanceTests/CreatePatientTests.cs b/tests/HealthApp.AcceptanceTests/CreatePatientTests.cs new file mode 100644 index 0000000..ae804c1 --- /dev/null +++ b/tests/HealthApp.AcceptanceTests/CreatePatientTests.cs @@ -0,0 +1,99 @@ +using System.Net; +using System.Net.Http.Json; +using System.Text; +using System.Text.Json; +using Microsoft.EntityFrameworkCore; +using Xunit; + +namespace PatientProfile.AcceptanceTests; + +public sealed class CreatePatientTests(PatientApiFixture fixture) : IClassFixture +{ + // This HTTP contract is independent of the service's implementation DTOs. + public sealed record Profile(Guid PatientId, string Name, DateOnly DateOfBirth, string? ContactInfo); + + [Fact] + public async Task Valid_profile_is_assigned_an_identifier_and_can_be_retrieved_after_restart() + { + using var response = await fixture.Client.PostAsJsonAsync("/api/patients", new + { + name = "Steffen Example", dateOfBirth = "1980-01-01", contactInfo = "steffen@example.test" + }); + Assert.Equal(HttpStatusCode.Created, response.StatusCode); + var created = await response.Content.ReadFromJsonAsync(); + Assert.NotNull(created); + Assert.NotEqual(Guid.Empty, created.PatientId); + Assert.Equal("Steffen Example", created.Name); + Assert.Equal(new DateOnly(1980, 1, 1), created.DateOfBirth); + Assert.Equal("steffen@example.test", created.ContactInfo); + Assert.Equal($"/api/patients/{created.PatientId}", response.Headers.Location!.ToString()); + + await fixture.RestartHostsAsync(); + using var retrieved = await fixture.Client.GetAsync(response.Headers.Location); + Assert.Equal(HttpStatusCode.OK, retrieved.StatusCode); + Assert.Equal(created, await retrieved.Content.ReadFromJsonAsync()); + + await using var db = fixture.CreateDbContext(); + var stored = await db.Patients.SingleAsync(p => p.PatientId == created.PatientId); + Assert.Equal(created.Name, stored.Name); + Assert.Equal(created.DateOfBirth, stored.DateOfBirth); + Assert.Equal(created.ContactInfo, stored.ContactInfo); + Assert.NotEqual(default, stored.CreatedAt); + Assert.Equal(stored.CreatedAt, stored.UpdatedAt); + } + + [Theory] + [InlineData("{\"dateOfBirth\":\"1980-01-01\"}", "Name")] + [InlineData("{\"name\":null,\"dateOfBirth\":\"1980-01-01\"}", "Name")] + [InlineData("{\"name\":\"\",\"dateOfBirth\":\"1980-01-01\"}", "Name")] + [InlineData("{\"name\":\" \",\"dateOfBirth\":\"1980-01-01\"}", "Name")] + [InlineData("{\"name\":\"Steffen Example\"}", "DateOfBirth")] + [InlineData("{\"name\":\"Steffen Example\",\"dateOfBirth\":null}", "DateOfBirth")] + public async Task Missing_required_information_is_rejected_without_persisting(string json, string field) + { + await using var db = fixture.CreateDbContext(); + var countBefore = await db.Patients.CountAsync(); + using var content = new StringContent(json, Encoding.UTF8, "application/json"); + using var response = await fixture.Client.PostAsync("/api/patients", content); + Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); + using var problem = JsonDocument.Parse(await response.Content.ReadAsStringAsync()); + Assert.True(problem.RootElement.GetProperty("errors").TryGetProperty(field, out _)); + Assert.Equal(countBefore, await db.Patients.CountAsync()); + } + + [Theory] + [InlineData("{\"name\":\"Steffen Example\",\"dateOfBirth\":\"invalid\"}")] + [InlineData("{\"name\":\"Steffen Example\",\"dateOfBirth\":\"1980-02-30\"}")] + [InlineData("{")] + public async Task Malformed_information_is_rejected(string json) + { + await using var db = fixture.CreateDbContext(); + var countBefore = await db.Patients.CountAsync(); + using var content = new StringContent(json, Encoding.UTF8, "application/json"); + using var response = await fixture.Client.PostAsync("/api/patients", content); + Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); + Assert.Equal(countBefore, await db.Patients.CountAsync()); + } + + [Fact] + public async Task Separate_creations_have_distinct_identifiers_and_contact_information_is_optional() + { + var request = new { name = "Steffen Example", dateOfBirth = "1980-01-01" }; + using var first = await fixture.Client.PostAsJsonAsync("/api/patients", request); + using var second = await fixture.Client.PostAsJsonAsync("/api/patients", request); + Assert.Equal(HttpStatusCode.Created, first.StatusCode); + Assert.Equal(HttpStatusCode.Created, second.StatusCode); + var firstProfile = await first.Content.ReadFromJsonAsync(); + var secondProfile = await second.Content.ReadFromJsonAsync(); + Assert.NotEqual(firstProfile!.PatientId, secondProfile!.PatientId); + Assert.Null(firstProfile.ContactInfo); + Assert.Equal(firstProfile, await fixture.Client.GetFromJsonAsync(first.Headers.Location)); + } + + [Fact] + public async Task Unknown_identifier_returns_not_found() + { + using var response = await fixture.Client.GetAsync($"/api/patients/{Guid.NewGuid()}"); + Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); + } +} diff --git a/tests/HealthApp.AcceptanceTests/PatientApiFixture.cs b/tests/HealthApp.AcceptanceTests/PatientApiFixture.cs new file mode 100644 index 0000000..c630e32 --- /dev/null +++ b/tests/HealthApp.AcceptanceTests/PatientApiFixture.cs @@ -0,0 +1,65 @@ +using System.Net; +using HealthApp.Infrastructure; +using HealthApp.Profile.Persistence; +using HealthApp.TestSupport; +using Microsoft.AspNetCore.Authentication.BearerToken; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Mvc.Testing; +using Microsoft.EntityFrameworkCore; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Npgsql; +using Xunit; +namespace PatientProfile.AcceptanceTests; +public class PatientApiFixture : IAsyncLifetime +{ + private readonly string databaseName="architecture_b_"+Guid.NewGuid().ToString("N"); + private readonly string runtimeRole="b_runtime_"+Guid.NewGuid().ToString("N"); + private string admin=""; + private WebApplicationFactory? host; + public string ConnectionString {get;private set;}=""; + public string RuntimeConnectionString {get;private set;}=""; + public HttpClient Client {get;private set;}=null!; + public HttpClient RawClient {get;private set;}=null!; + public AuthenticatedTestClient Authentication {get;}=new(); + public Dictionary AdditionalGatewayConfiguration {get;}=new(); + public async Task InitializeAsync() + { + admin=Environment.GetEnvironmentVariable("TEST_POSTGRES_CONNECTION")??throw new InvalidOperationException("TEST_POSTGRES_CONNECTION required."); + await using var c=new NpgsqlConnection(admin);await c.OpenAsync(); + await new NpgsqlCommand($"CREATE DATABASE {databaseName}; CREATE ROLE {runtimeRole} LOGIN PASSWORD 'test-runtime-only';",c).ExecuteNonQueryAsync(); + ConnectionString=new NpgsqlConnectionStringBuilder(admin){Database=databaseName,SearchPath="profile,observations"}.ConnectionString; + await using var db=new NpgsqlConnection(ConnectionString);await db.OpenAsync(); + var root=FindRoot(); + foreach(var _ in new[]{0,1}) + foreach(var script in Directory.GetFiles(Path.Combine(root,"src/Modules/Profile/Migrations"),"*.sql").Order()) + await new NpgsqlCommand(await File.ReadAllTextAsync(script),db).ExecuteNonQueryAsync(); + await new NpgsqlCommand($"REVOKE CREATE ON SCHEMA public FROM PUBLIC; GRANT CONNECT ON DATABASE {databaseName} TO {runtimeRole}; GRANT USAGE ON SCHEMA profile TO {runtimeRole}; GRANT SELECT,INSERT,UPDATE ON profile.patient TO {runtimeRole}; GRANT SELECT ON profile.schema_version TO {runtimeRole};",db).ExecuteNonQueryAsync(); + RuntimeConnectionString=new NpgsqlConnectionStringBuilder(ConnectionString){Username=runtimeRole,Password="test-runtime-only"}.ConnectionString; + Start(); + } + public static string FindRoot() + { + var d=new DirectoryInfo(AppContext.BaseDirectory); + while(d is not null && !File.Exists(Path.Combine(d.FullName,"HealthApp.slnx")))d=d.Parent; + return d?.FullName??throw new InvalidOperationException("root missing"); + } + internal PatientDbContext CreateDbContext()=>new(new DbContextOptionsBuilder().UseNpgsql(ConnectionString).Options); + private void Start() + { + host=new WebApplicationFactory().WithWebHostBuilder(b=>{ + b.UseEnvironment("Development");b.ConfigureKestrel(k=>k.Listen(IPAddress.Loopback,0)); + b.ConfigureAppConfiguration((_,c)=>c.AddInMemoryCollection(Authentication.Configuration()).AddInMemoryCollection(AdditionalGatewayConfiguration).AddInMemoryCollection(new Dictionary{["ConnectionStrings:HealthDatabase"]=RuntimeConnectionString})); + b.ConfigureServices(s=>s.PostConfigure("Bearer",o=>o.TimeProvider=Authentication.Clock)); + }); + host.UseKestrel(0);RawClient=host.CreateClient();Client=Authentication.Wrap(RawClient); + } + public async Task RestartHostsAsync(){Client.Dispose();RawClient.Dispose();if(host is not null)await host.DisposeAsync();Start();} + public async Task DisposeAsync() + { + Client?.Dispose();RawClient?.Dispose();if(host is not null)await host.DisposeAsync(); + NpgsqlConnection.ClearAllPools(); + if(admin.Length>0){await using var c=new NpgsqlConnection(admin);await c.OpenAsync();await new NpgsqlCommand($"DROP DATABASE IF EXISTS {databaseName} WITH(FORCE); DROP ROLE IF EXISTS {runtimeRole};",c).ExecuteNonQueryAsync();} + if(Directory.Exists(Authentication.KeyDirectory))Directory.Delete(Authentication.KeyDirectory,true); + } +} diff --git a/tests/HealthApp.AcceptanceTests/ProfileLifecycleTests.cs b/tests/HealthApp.AcceptanceTests/ProfileLifecycleTests.cs new file mode 100644 index 0000000..d9309ab --- /dev/null +++ b/tests/HealthApp.AcceptanceTests/ProfileLifecycleTests.cs @@ -0,0 +1,32 @@ +using System.Net; +using System.Net.Http.Headers; +using System.Net.Http.Json; +using HealthApp.TestSupport; +using Microsoft.EntityFrameworkCore; +using Npgsql; +using PatientProfile.AcceptanceTests; +using Xunit; +namespace HealthApp.AcceptanceTests; +public sealed class ProfileLifecycleTests(PatientApiFixture fixture) : IClassFixture +{ + [Fact] + public async Task Concurrent_creation_lost_response_and_restart_preserve_one_accessible_profile() + { + var token=await AuthenticatedTestClient.LoginAsync(fixture.RawClient,"test-200"); + async Task Create(){using var r=new HttpRequestMessage(HttpMethod.Post,"/api/patients"){Content=JsonContent.Create(new{name="Concurrent",dateOfBirth="1980-01-01"})};r.Headers.Authorization=new AuthenticationHeaderValue("Bearer",token);return await fixture.RawClient.SendAsync(r);} + var responses=await Task.WhenAll(Create(),Create()); + Assert.Single(responses,r=>r.StatusCode==HttpStatusCode.Created);Assert.Single(responses,r=>r.StatusCode==HttpStatusCode.Conflict); + using var retry=await Create();Assert.Equal(HttpStatusCode.Conflict,retry.StatusCode); + await using(var db=fixture.CreateDbContext()){Assert.Equal(1,await db.Patients.CountAsync(p=>p.AccountId=="test-200"));} + await fixture.RestartHostsAsync();using var read=new HttpRequestMessage(HttpMethod.Get,"/api/patients/me");read.Headers.Authorization=new AuthenticationHeaderValue("Bearer",token); + using var found=await fixture.RawClient.SendAsync(read);Assert.Equal(HttpStatusCode.OK,found.StatusCode); + foreach(var response in responses)response.Dispose(); + } + [Fact] + public async Task Runtime_role_cannot_create_or_drop_health_objects() + { + await using var c=new NpgsqlConnection(fixture.RuntimeConnectionString);await c.OpenAsync(); + var e=await Assert.ThrowsAsync(()=>new NpgsqlCommand("CREATE TABLE profile.forbidden(id integer)",c).ExecuteNonQueryAsync());Assert.Equal("42501",e.SqlState); + e=await Assert.ThrowsAsync(()=>new NpgsqlCommand("DROP TABLE profile.patient",c).ExecuteNonQueryAsync());Assert.Equal("42501",e.SqlState); + } +} diff --git a/tests/HealthApp.AcceptanceTests/UpdatePatientTests.cs b/tests/HealthApp.AcceptanceTests/UpdatePatientTests.cs new file mode 100644 index 0000000..60713a8 --- /dev/null +++ b/tests/HealthApp.AcceptanceTests/UpdatePatientTests.cs @@ -0,0 +1,71 @@ +using System.Net; +using System.Net.Http.Json; +using Microsoft.EntityFrameworkCore; +using Xunit; + +namespace PatientProfile.AcceptanceTests; + +public sealed class UpdatePatientTests(PatientApiFixture fixture) : IClassFixture +{ + private sealed record Profile(Guid PatientId, string Name, DateOnly DateOfBirth, string? ContactInfo); + + [Fact] + public async Task Updated_profile_preserves_identity_and_date_of_birth_and_survives_restart() + { + using var createdResponse = await fixture.Client.PostAsJsonAsync("/api/patients", new + { + name = "Steffen Example", dateOfBirth = "1980-01-01", contactInfo = "old@example.test" + }); + Assert.Equal(HttpStatusCode.Created, createdResponse.StatusCode); + var created = (await createdResponse.Content.ReadFromJsonAsync())!; + var path = $"/api/patients/{created.PatientId}"; + + using var response = await fixture.Client.PutAsJsonAsync(path, new + { + name = "Steffen Updated", contactInfo = "new@example.test" + }); + Assert.Equal(HttpStatusCode.OK, response.StatusCode); + var expected = created with { Name = "Steffen Updated", ContactInfo = "new@example.test" }; + Assert.Equal(expected, await response.Content.ReadFromJsonAsync()); + + await fixture.RestartHostsAsync(); + Assert.Equal(expected, await fixture.Client.GetFromJsonAsync(path)); + } + + [Fact] + public async Task Updating_a_missing_patient_is_rejected_without_creating_a_profile() + { + await using var db = fixture.CreateDbContext(); + var countBefore = await db.Patients.CountAsync(); + var path = $"/api/patients/{Guid.NewGuid()}"; + using var response = await fixture.Client.PutAsJsonAsync(path, new + { + name = "Steffen Example", contactInfo = "new@example.test" + }); + Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); + Assert.Equal(countBefore, await db.Patients.CountAsync()); + using var retrieval = await fixture.Client.GetAsync(path); + Assert.Equal(HttpStatusCode.NotFound, retrieval.StatusCode); + } + + [Theory] + [InlineData(null)] + [InlineData("")] + [InlineData(" ")] + public async Task Invalid_name_is_rejected_without_changing_the_profile(string? name) + { + using var createdResponse = await fixture.Client.PostAsJsonAsync("/api/patients", new + { + name = "Steffen Example", dateOfBirth = "1980-01-01", contactInfo = "old@example.test" + }); + Assert.Equal(HttpStatusCode.Created, createdResponse.StatusCode); + var created = (await createdResponse.Content.ReadFromJsonAsync())!; + var path = $"/api/patients/{created.PatientId}"; + using var response = await fixture.Client.PutAsJsonAsync(path, new + { + name, contactInfo = "new@example.test" + }); + Assert.Equal(HttpStatusCode.BadRequest, response.StatusCode); + Assert.Equal(created, await fixture.Client.GetFromJsonAsync(path)); + } +}