ministero-salute / it-fse-support

https://ministero-salute.github.io/it-fse-support/
34 stars 20 forks source link

CRASH PROGRAM: Problema Aggiornamento Metadati dalla Lombardia #712

Open EugenioGuagliardi opened 8 months ago

EugenioGuagliardi commented 8 months ago

Per il caso d'uso UC3 con RDE=RDA= Lombardia ed Servizio di Aggiornamento Metadati (oscuramento di un DCE) abbiamo un esito KO. Questo è l’errore che vediamo dallo stato tramite la TraceID ottenuta in risposta:

{
    "traceID": "9177799800adcaa0",
    "spanID": "cc43dc2b7b3cacba",
    "transactionData": [
        {
            "eventType": "RIFERIMENTI_INI",
            "eventDate": "2024-04-02T10:24:50.451+00:00",
            "eventStatus": "BLOCKING_ERROR",
            "message": "Error while merge metadati:BusinessException: Error while perform build submit object request : ",
            "identificativoDocumento": "2.16.840.1.113883.2.9.2.30.4.4^030703.RRDOCU.099c2f74-f0da-11ee-a9d8-0242a89a8ac7",
            "subject": "KRNBRS53A21L817D^^^&2.16.840.1.113883.2.9.4.3.2&ISO",
            "organizzazione": "030",
            "workflowInstanceId": "dfac805517f2578e30063251556954cbbf9afb3714debc8048c5eeadd58c3467.93e3ec1d95^^^^urn:ihe:iti:xdw:2013:workflowInstanceId",
            "traceId": "1aae321d20de4294",
            "issuer": "integrity:S1#030#REGIONELOMBARDIA-TEST",
            "expiringDate": "2025-04-02T10:24:50.463+00:00"
        }
    ]
}

Segnaliamo che la fase di consultazione da parte di INI ha dato esito positivo . Di seguito la nostra risposta:

dataOra=2024-04-02 12:24:50:382|flow_name=document-registry-service|ID_DC=3b4cff70-f0db-11ee-91f9-06f610e1c2f6|ID_COOP=2a265772-575e-448a-8325-8a58867a32a1|timestamp=1712053490382|elapsed=2524|server=ITFSE03|sequenza=4|payload=<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <soap:Header>
        <Action xmlns="http://www.w3.org/2005/08/addressing">urn:ihe:iti:xds-b:2007:DocumentRegistry_PortType:DocumentRegistry_RegistryStoredQueryResponse</Action>
        <MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:8b704801-31bb-4f29-82d7-9d13aa47b037</MessageID>
        <To xmlns="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymous</To>
        <RelatesTo xmlns="http://www.w3.org/2005/08/addressing">2a265772-575e-448a-8325-8a58867a32a1</RelatesTo>
    </soap:Header>
    <soap:Body>
        <ns4:AdhocQueryResponse xmlns="urn:hl7-org:v3" xmlns:ns2="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0" xmlns:ns3="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:ns4="urn:oasis:names:tc:ebxml-regrep:xsd:query:3.0" xmlns:ns5="urn:oasis:names:tc:ebxml-regrep:xsd:lcm:3.0" status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Success">
            <ns2:RegistryObjectList>
                <ns2:ExtrinsicObject mimeType="application/pdf+text/x-cda-r2+xml" isOpaque="false" lid="urn:uuid:52f93e4d-4ffd-3ded-b521-5df0e53040f2" objectType="urn:uuid:7edca82f-054d-47f2-a032-9b2a5b5186c1" status="urn:oasis:names:tc:ebxml-regrep:StatusType:Approved" id="urn:uuid:52f93e4d-4ffd-3ded-b521-5df0e53040f2">
                    <ns2:Slot name="creationTime">
                        <ns2:ValueList>
                            <ns2:Value>20240402121606</ns2:Value>
                        </ns2:ValueList>
                    </ns2:Slot>
                    <ns2:Slot name="size">
                        <ns2:ValueList>
                            <ns2:Value>142888</ns2:Value>
                        </ns2:ValueList>
                    </ns2:Slot>
                    <ns2:Slot name="hash">
                        <ns2:ValueList>
                            <ns2:Value>TEEVIf4xuC0aHv2tiFrwnKcfxL0=</ns2:Value>
                        </ns2:ValueList>
                    </ns2:Slot>
                    <ns2:Slot name="languageCode">
                        <ns2:ValueList>
                            <ns2:Value>it-IT</ns2:Value>
                        </ns2:ValueList>
                    </ns2:Slot>
                    <ns2:Slot name="sourcePatientId">
                        <ns2:ValueList>
                            <ns2:Value>KRNBRS53A21L817D^^^&amp;2.16.840.1.113883.2.9.4.3.2&amp;ISO</ns2:Value>
                        </ns2:ValueList>
                    </ns2:Slot>
                    <ns2:Slot name="repositoryUniqueId">
                        <ns2:ValueList>
                            <ns2:Value>2.16.840.1.113883.2.9.2.30.4.5.30703</ns2:Value>
                        </ns2:ValueList>
                    </ns2:Slot>
                    <ns2:VersionInfo versionName="1"/>
                    <ns2:Classification classificationScheme="urn:uuid:93606bcf-9494-43ec-9b4e-a7748d1a838d" classifiedObject="52f93e4d-4ffd-3ded-b521-5df0e53040f2" nodeRepresentation="" lid="urn:uuid:a4eef737-7f58-488b-9f0f-9824e931a11b" objectType="urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:Classification" id="urn:uuid:a4eef737-7f58-488b-9f0f-9824e931a11b">
                        <ns2:Slot name="authorPerson">
                            <ns2:ValueList>
                                <ns2:Value>PRPSSO80T15F205H^PURPLE^OSS^^^^^^&amp;2.16.840.1.113883.2.9.4.3.2&amp;ISO</ns2:Value>
                            </ns2:ValueList>
                        </ns2:Slot>
                        <ns2:Slot name="authorSpecialty">
                            <ns2:ValueList>
                                <ns2:Value/>
                            </ns2:ValueList>
                        </ns2:Slot>
                        <ns2:Slot name="authorTelecommunication">
                            <ns2:ValueList>
                                <ns2:Value/>
                            </ns2:ValueList>
                        </ns2:Slot>
                        <ns2:Slot name="authorRole">
                            <ns2:ValueList>
                                <ns2:Value>AAS</ns2:Value>
                            </ns2:ValueList>
                        </ns2:Slot>
                        <ns2:Slot name="authorInstitution">
                            <ns2:ValueList>
                                <ns2:Value>OSPEDALE L. SACCO - MILANO^^^^^&amp;2.16.840.1.113883.2.9.4.1.2&amp;ISO^^^^03091600</ns2:Value>
                            </ns2:ValueList>
                        </ns2:Slot>
                        <ns2:VersionInfo versionName="1"/>
                    </ns2:Classification>
                    <ns2:Classification classificationScheme="urn:uuid:f33fb8ac-18af-42cc-ae0e-ed0b0bdb91e1" classifiedObject="52f93e4d-4ffd-3ded-b521-5df0e53040f2" nodeRepresentation="Ospedale" objectType="urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:Classification" id="urn:uuid:297eb6cc-6ac2-406a-a71e-5e2e19aeb79a">
                        <ns2:Slot name="codingScheme">
                            <ns2:ValueList>
                                <ns2:Value>2.16.840.1.113883.2.9.3.3.6.1.1</ns2:Value>
                            </ns2:ValueList>
                        </ns2:Slot>
                        <ns2:Name>
                            <ns2:LocalizedString value="Ospedale"/>
                        </ns2:Name>
                    </ns2:Classification>
                    <ns2:Classification classificationScheme="urn:uuid:a09d5840-386c-46f2-b5ad-9c3699a4309d" classifiedObject="52f93e4d-4ffd-3ded-b521-5df0e53040f2" nodeRepresentation="2.16.840.1.113883.2.9.10.1.1" objectType="urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:Classification" id="urn:uuid:70d0567e-0455-47d5-88fb-8681372865ce">
                        <ns2:Slot name="codingScheme">
                            <ns2:ValueList>
                                <ns2:Value>2.16.840.1.113883.2.9.3.3.6.1.6</ns2:Value>
                            </ns2:ValueList>
                        </ns2:Slot>
                        <ns2:Name>
                            <ns2:LocalizedString value="Referto di laboratorio"/>
                        </ns2:Name>
                    </ns2:Classification>
                    <ns2:Classification classificationScheme="urn:uuid:41a5887f-8865-4c09-adf7-e362475b143a" classifiedObject="52f93e4d-4ffd-3ded-b521-5df0e53040f2" nodeRepresentation="REF" objectType="urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:Classification" id="urn:uuid:872ed050-1ba3-4f61-a7ee-af984d96cba3">
                        <ns2:Slot name="codingScheme">
                            <ns2:ValueList>
                                <ns2:Value>2.16.840.1.113883.2.9.3.3.6.1.5</ns2:Value>
                            </ns2:ValueList>
                        </ns2:Slot>
                        <ns2:Name>
                            <ns2:LocalizedString value="Referto"/>
                        </ns2:Name>
                    </ns2:Classification>
                    <ns2:Classification classificationScheme="urn:uuid:f0306f51-975f-434e-a61c-c59651d33983" classifiedObject="52f93e4d-4ffd-3ded-b521-5df0e53040f2" nodeRepresentation="11502-2" objectType="urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:Classification" id="urn:uuid:885dc2e3-6cc0-4771-9469-44fda84971c1">
                        <ns2:Slot name="codingScheme">
                            <ns2:ValueList>
                                <ns2:Value>2.16.840.1.113883.6.1</ns2:Value>
                            </ns2:ValueList>
                        </ns2:Slot>
                        <ns2:Name>
                            <ns2:LocalizedString value="Referto di laboratorio"/>
                        </ns2:Name>
                    </ns2:Classification>
                    <ns2:Classification classificationScheme="urn:uuid:cccf5598-8b07-4b77-a05e-ae952c785ead" classifiedObject="52f93e4d-4ffd-3ded-b521-5df0e53040f2" nodeRepresentation="AD_PSC100" objectType="urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:Classification" id="urn:uuid:17c59ec5-6998-4883-8953-6928b47d5449">
                        <ns2:Slot name="codingScheme">
                            <ns2:ValueList>
                                <ns2:Value>2.16.840.1.113883.2.9.3.3.6.1.2</ns2:Value>
                            </ns2:ValueList>
                        </ns2:Slot>
                        <ns2:Name>
                            <ns2:LocalizedString value="Laboratorio analisi chimico cliniche"/>
                        </ns2:Name>
                    </ns2:Classification>
                    <ns2:Classification classificationScheme="urn:uuid:f4f85eac-e6cb-4883-b524-f2705394840f" classifiedObject="52f93e4d-4ffd-3ded-b521-5df0e53040f2" nodeRepresentation="N" objectType="urn:oasis:names:tc:ebxml-regrep:ObjectType:RegistryObject:Classification" id="urn:uuid:0df24748-90df-4359-a3a8-29b9db6274db">
                        <ns2:Slot name="codingScheme">
                            <ns2:ValueList>
                                <ns2:Value>2.16.840.1.113883.5.25</ns2:Value>
                            </ns2:ValueList>
                        </ns2:Slot>
                        <ns2:Name>
                            <ns2:LocalizedString value="Normal"/>
                        </ns2:Name>
                    </ns2:Classification>
                    <ns2:ExternalIdentifier registryObject="52f93e4d-4ffd-3ded-b521-5df0e53040f2" identificationScheme="urn:uuid:58a6f841-87b3-4a3e-92fd-a8ffeff98427" value="KRNBRS53A21L817D^^^&amp;2.16.840.1.113883.2.9.4.3.2&amp;ISO" lid="urn:uuid:8fbd24f5-fdaf-4653-a1ec-f19405d6db14" id="urn:uuid:8fbd24f5-fdaf-4653-a1ec-f19405d6db14">
                        <ns2:Name>
                            <ns2:LocalizedString value="XDSDocumentEntry.patientId"/>
                        </ns2:Name>
                        <ns2:VersionInfo versionName="1"/>
                    </ns2:ExternalIdentifier>
                    <ns2:ExternalIdentifier registryObject="52f93e4d-4ffd-3ded-b521-5df0e53040f2" identificationScheme="urn:uuid:2e82c1f6-a085-4c72-9da3-8640a32e42ab" value="2.16.840.1.113883.2.9.2.30.4.4^030703.RRDOCU.099c2f74-f0da-11ee-a9d8-0242a89a8ac7" lid="urn:uuid:3d0db516-c647-49af-9459-75d8f88823f5" id="urn:uuid:3d0db516-c647-49af-9459-75d8f88823f5">
                        <ns2:Name>
                            <ns2:LocalizedString value="XDSDocumentEntry.uniqueId"/>
                        </ns2:Name>
                        <ns2:VersionInfo versionName="1"/>
                    </ns2:ExternalIdentifier>
                </ns2:ExtrinsicObject>
                <ns2:ObjectRef id="urn:uuid:93606bcf-9494-43ec-9b4e-a7748d1a838d"/>
                <ns2:ObjectRef id="urn:uuid:f33fb8ac-18af-42cc-ae0e-ed0b0bdb91e1"/>
                <ns2:ObjectRef id="urn:uuid:a09d5840-386c-46f2-b5ad-9c3699a4309d"/>
                <ns2:ObjectRef id="urn:uuid:41a5887f-8865-4c09-adf7-e362475b143a"/>
                <ns2:ObjectRef id="urn:uuid:f0306f51-975f-434e-a61c-c59651d33983"/>
                <ns2:ObjectRef id="urn:uuid:cccf5598-8b07-4b77-a05e-ae952c785ead"/>
                <ns2:ObjectRef id="urn:uuid:f4f85eac-e6cb-4883-b524-f2705394840f"/>
                <ns2:ObjectRef id="urn:uuid:58a6f841-87b3-4a3e-92fd-a8ffeff98427"/>
                <ns2:ObjectRef id="urn:uuid:2e82c1f6-a085-4c72-9da3-8640a32e42ab"/>
            </ns2:RegistryObjectList>
        </ns4:AdhocQueryResponse>
    </soap:Body>
</soap:Envelope>
pFonziSogei commented 8 months ago

@EugenioGuagliardi stiamo facendo delle verifiche e probabilmente introdurremo una fix (ci aspettavamo popolato il campo serviceStartTime quando invece non è obbligatorio). Mentre facciamo la fix, se volete proseguire con i test, potete popolare sia in creazione che in aggiornamento il tag serviceStartTime nella request

pFonziSogei commented 8 months ago

Modifiche rilasciate in ambiente di pre produzione, potete eseguire un test?

EugenioGuagliardi commented 8 months ago

Buonasera, abbiamo eseguito un nuovo test sull'aggiornamento con questo timestamp

2024-04-04 16:34:24.558 INFO [fsegtw.fsegtw,ead1666abe03c610,ead1666abe03c610] 3022069 --- [sendMessageListenerContainer-49] piClient$ApiClientHttpRequestInterceptor : URI: https://modipa-val.fse.salute.gov.it/govway/rest/in/FSE/gateway/v1/documents/2.16.840.1.113883.2.9.2.30.4.4%5E030703.RRDOCU.1712c558-f280-11ee-a9d8-0242a89a8ac7/metadata

con questo esito:

2024-04-04 16:34:31.320 INFO [fsegtw.fsegtw,ead1666abe03c610,ead1666abe03c610] 3022069 --- [sendMessageListenerContainer-49] piClient$ApiClientHttpRequestInterceptor : Response Body: {"traceID":"ead1666abe03c610","spanID":"ead1666abe03c610","type":"/msg/ini-error","title":"Ini error.","detail":"{\"traceID\":\"0000000000000000ead1666abe03c610\",\"spanID\":\"3e81aa5f6a0e6684\",\"type\":\"/errors/fields\",\"title\":\"Missing\",\"detail\":\"No results from the query\",\"instance\":\"/ini\"}","status":404,"instance":"/msg/service-error/ini"}

Evidenziamo che l'identificativo UniqueId è inserito nel blocco EntryUUID, come riportato di seguito :

...

('2.16.840.1.113883.2.9.2.30.4.4^030703.RRDOCU.1712c558-f280-11ee-a9d8-0242a89a8ac7') ... invece che nel blocco "" Potete verificare? Grazie mille
Ser-ena commented 7 months ago

Buonasera, è stata rilasciata una fix, è possibile riprovare

EugenioGuagliardi commented 7 months ago

Salve, abbiamo effettuato una nuova prova ma otteniamo questo errore ... {"traceID":"653e37fecc382600","spanID":"653e37fecc382600","type":"/msg/ini-error","title":"Ini error.","detail":"{\"traceID\":\"0000000000000000653e37fecc382600\", \"spanID\":\"1104c6c6fbddaeb9\",\"type\":\"/errors\",\"title\":\"Generic\",\"detail\":\"com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: This role has not the rights to access the service Please see the server log to find more detail regarding exact cause of the failure.\",\"instance\":\"error/generic\"}", "status":500,"instance":"/msg/service-error/ini"} ...

Il servizio dello stato per traceID risponde con success:

... { "traceID": "d1d947b295938161", "spanID": "3581ea9c308e3cbc", "transactionData": [ { "eventType": "RIFERIMENTI_INI", "eventDate": "2024-04-08T08:54:09.670+00:00", "eventStatus": "SUCCESS", "message": "Merge metadati effettuato correttamente", "identificativoDocumento": "2.16.840.1.113883.2.9.2.30.4.4^030703.RRDOCU.1a5fdf82-f584-11ee-a9d8-0242a89a8ac7", "subject": "KRNLXD01R50A946E^^^&2.16.840.1.113883.2.9.4.3.2&ISO", "organizzazione": "030", "workflowInstanceId": "2ef7dd5288b00fe832e5d4bc48a12d777e2abc8b13b718b969f452713ebb657e.971721bae6^^^^urn:ihe:iti:xdw:2013:workflowInstanceId", "traceId": "653e37fecc382600", "issuer": "integrity:S1#030#REGIONELOMBARDIA-TEST", "expiringDate": "2025-04-08T08:54:09.682+00:00" }, { "eventType": "EDS_UPDATE", "eventDate": "2024-04-08T08:54:09.867+00:00", "eventStatus": "SUCCESS", "message": "Update EDS effettuato correttamente", "identificativoDocumento": "2.16.840.1.113883.2.9.2.30.4.4^030703.RRDOCU.1a5fdf82-f584-11ee-a9d8-0242a89a8ac7", "subject": "KRNLXD01R50A946E^^^&2.16.840.1.113883.2.9.4.3.2&ISO", "organizzazione": "030", "workflowInstanceId": "2ef7dd5288b00fe832e5d4bc48a12d777e2abc8b13b718b969f452713ebb657e.971721bae6^^^^urn:ihe:iti:xdw:2013:workflowInstanceId", "traceId": "653e37fecc382600", "issuer": "integrity:S1#030#REGIONELOMBARDIA-TEST", "expiringDate": "2025-04-08T08:54:09.875+00:00" } ] } ...

Però non capiamo dall'errore in quale fase ci blocchiamo. Potete cortesemente verificare nei vostri log?

Grazie per la collaborazione.

IStacchiotti commented 7 months ago

Buonasera, al fine di sbloccare i test, potrebbe cortesemente riprovare cambiando il ruolo, ricorrendo ad esempio a AAS o DRS? Le facciamo presente che al momento sono in corso delle verifiche in merito all'errore riscontrato con il ruolo impiegato. Grazie