Written by

ICT healthcare consultant at Healthy Reply
Question Riccardo Villa · Mar 4, 2025

PROTECT Error on POST request to FHIR server

Hello,

I'm trying to POST a Location resource to a FHIR Server, but I get this error:
{
    "errors": [
        {
            "code": 5002,
            "domain": "%ObjectErrors",
            "error": "ERRORE #5002: Errore di Cach�: <PROTECT>zNewInteractionsInstance+1^HS.FHIRServer.Storage.Json.InteractionsStrategy.1",
            "id": "ObjectScriptError",
            "params": [
                "<PROTECT>zNewInteractionsInstance+1^HS.FHIRServer.Storage.Json.InteractionsStrategy.1"
            ]
        }
    ],
    "summary": "ERRORE #5002: Errore di Cach�: <PROTECT>zNewInteractionsInstance+1^HS.FHIRServer.Storage.Json.InteractionsStrategy.1"
}
This is the URL: http://localhost:1999/csp/healthshare/fhir030704/fhir/r4/Location
and the body of the request:
{
    "resourceType": "Location",
    "id": "a80e071e-578d-4df3-9e0e-d2264ae558ee",
    "meta": {
        "lastUpdated": "2025-03-04T11:27:14Z",
        "profile": [
            "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLLocationPL…"
        ],
        "versionId": "1"
    },
    "identifier": [
        {
            "value": "03091100-ND-ND-701-1"
        }
    ],
    "operationalStatus": {
        "system": "http://terminology.hl7.org/ValueSet/v2-0116",
        "code": "O",
        "display": "Occupied"
    },
    "physicalType": {
        "coding": [
            {
                "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                "code": "bd",
                "display": "Bed"
            }
        ]
    },
    "managingOrganization": {
        "reference": "Organization/cb0f913b-1caa-4f94-8f33-b3b59686cd3b",
        "display": "ASST GAETANO PINI"
    },
    "partOf": {
        "reference": "Location/d3dbc567-fa1e-4fbd-a093-9540439179b0"
    },
    "extension": [
        {
            "url": "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLLocationRe…",
            "valueString": "6701"
        },
        {
            "url": "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLLocationAr…",
            "valueString": "LIBERA PROFESSIONE PINI (BLOCCO B PIANO 7)"
        },
        {
            "url": "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLLocationRe…",
            "valueCodeableConcept": {
                "coding": [
                    {
                        "system": "https://fhir.siss.regione.lombardia.it/ValueSet/RegimeRicovero",
                        "code": "2",
                        "display": "Day-hospital"
                    }
                ]
            }
        },
        {
            "url": "https://fhir.siss.regione.lombardia.it/StructureDefinition/RLLocationDa…",
            "valueDateTime": "2025-03-04T00:00:00Z"
        }
    ]
}
Thank you!

Product version: IRIS 2021.1
$ZV: IRIS for UNIX (Red Hat Enterprise Linux for x86-64) 2021.1 (Build 215U) Wed Jun 9 2021 09:48:12 EDT [HealthConnect:3.3.0] [HealthConnect:3.3.0]

Comments

Enrico Parisi · Mar 4, 2025

Ciao Riccardo,

<PROTECT> error, evidently the caller or the web application does not have enough permission.

Is the caller being authenticated? How? What user? What roles has the user?

Check the associated Web Application authentication and the user used by the caller to connect to your (FHIR) Web Application.

0
Riccardo Villa  Mar 4, 2025 to Enrico Parisi

Thank you Enrico! The error arose from the permission of the web app. After changing it, it worked! 

0